X
Search this forum:
Search
You are not authorized to create a new topic
Page 14 of 126 << < 1213141516 > >>
Topics
 Replies
 Views
 Last Post
1 Replies and 3447 Views write a binary file  3447  1 Started by  Deleted User dear all I have a density file ( array file) with x-dimension=300 and y-demnsion=240, density=array &91300,240&93. i want to write it as a binary file with the double precesion format. i used the following commands: openw, lun, 'density.dat', /get_lun writeu, lun, density close, lun but the problem is that if I open the binary file with the MATLAB the dimension of the density, now, is density=array &916,12000&93. I know I have to do some manipulation for writing the binary file to k...
1 3447
14 Feb 2017 09:08 AM
2 Replies and 2991 Views Spectral Math  2991  2 Started by  Deleted User Hello, Is spectral math possible in IDL If so, how I need to divide hyperspectral images by a white reference. Thanks!
2 2991
10 Feb 2017 10:47 AM
2 Replies and 2724 Views Metadata update  2724  2 Started by  Deleted User Is it possible to update metadata of a raster file without exporting I would like to change band names and save the raster without creating new file by ENVIRaster::Export. After using the ENVIRasterMetadata::UpdateItem I cannot just save the raster with ENVIRaster::Save It says: Raster is open for read. Please use Export Raster to save.
2 2724
08 Feb 2017 02:59 AM
2 Replies and 3131 Views Patterns and EPS output  3131  2 Started by  Deleted User Hello everyone, I can't get IDL (8.5.1) to output any figure containing patterns correctly. To illustrate my problem, we can use the code from the polygon manual page : IDL Polygon data = RANDOMU(s,51)*15-5 upper = data RANDOMU(s,51)*2 6 bottom = data - RANDOMU(s,51)*3 - 7 year = INDGEN(51) 1950 p = PLOT(year, data, XRANGE=&911950,2000&93, YRANGE=&91-15,20&93, $ YTITLE='Soil Heat Accumulation &91MJ m$^{-2}$&93', THICK=2) poly = POLYGON(&91year,reverse(year)&93, &91upper,reve...
2 3131
07 Feb 2017 08:19 AM
1 Replies and 3064 Views Layer stacking from metadata  3064  1 Started by  Deleted User Hi everyone, I want to layer stack from the metadata file, is it possible I already read the metadata using this code: pro landsat8 e = ENVI() ; Open a Landsat-8 file file = 'F:\Citra\LANDSAT\\20140127\LC81190652014027LGN00\LC81190652014027LGN00_MTL.txt' raster = e.OpenRaster(file) ; Landsat-8 images are stored in a five-element array. ; Multispectral bands from the OLI sensor are stored in ; the first array element. You do not need to perform this ; step with most mult...
1 3064
06 Feb 2017 08:47 PM
2 Replies and 2818 Views ENVIGainOffsetRaster  2818  2 Started by  Deleted User Dear Sir or Mam I am using envi api programming with envi 5.3 and idl 8.5. But ENVIGainOffsetRaster doesn't work in my envi/idl programming. in other wods whenever I open it's result in my software, it's information about gain and offsets are empty. could you help me please sincerely,
2 2818
03 Feb 2017 10:28 AM
1 Replies and 2740 Views LEGEND function  2740  1 Started by  Deleted User I'm using IDL 8.5.1. I'm using the PLOT function, and making several curves in it (that is, invoking PLOT several times, using CURRENT to point to the original, and /OVER). In creating the legend, I'd like some parts of the legend to respect the Tex-Like typesetting that is now available in IDLs TEXT objects. However, when I use the TARGET keyword to LEGEND, and appropriate mathematical construct in the NAME property of the plots, they are not typeset at all, just printed directly. I can get ...
1 2740
27 Jan 2017 07:47 AM
1 Replies and 2908 Views Problem with idlpy executing a simple ENVI task  2908  1 Started by  Deleted User Hi all, i have an working IDL code to elaborate the TOA reflectance reading the metadata file MTL.txt. The asset is Landsat 8. Now, i am trying to execute the same code from python, using idlpy and IDL.run('expression') sintax. Here my code: from idlpy import IDL i also tryed from idlpy import * passing parameters to IDL function IDL.root_path = root_path the directory where the MTL.txt file is saved IDL.TOA_Dir = TOA_Dir the directory where will be saved the toa_files IDL.subdir = ...
1 2908
24 Jan 2017 11:04 AM
1 Replies and 3012 Views masking pixels in multiple bands that match range of values  3012  1 Started by  Deleted User I have a Landsat image with six bands stack stored into a single file (an array of three dimensions). I want to create a mask for those pixels if all bands match a value “zero”. I know how to do this in ENVI. MaskingàBuild maskà Options àImport Data Range then determine data range (min and max values) and select “Mask pixel if all bands match range”. Now can you tell me how I can translate this task in IDL I have an array of (ns, nb, nb=6).
1 3012
23 Jan 2017 08:55 AM
1 Replies and 2917 Views JSON_SERIALIZE precision  2917  1 Started by  Deleted User JSON_SERIALIZE(x) will produce radically different output depending on the value of x. For example: IDL> a = 19.05 IDL> print, JSON_SERIALIZE(a) 19.04999923706055 IDL> a = 19.75 IDL> print, JSON_SERIALIZE(a) 19.75 Can anyone explain this enormous difference. System settings Bug Not acceptable -- producing huge JSON file output when I am supplying 2-decimal place precision input. C. Wallace
1 2917
22 Jan 2017 09:26 AM
0 Replies and 2356 Views detection of an abrupt change point(s) in a signal series  2356  0 Started by  Deleted User Hello, IDL colleagues: I need to detect an abrupt change(s) in a signal series. The concept is similar to: "https://www.r-bloggers.com/a-simple-intro-to-bayesian-change-point-analysis/" or "https://de.mathworks.com/help/signal/ref/findchangepts.html". I cannot find any applicable IDL functions for my purpose. Does anyone have some comments or suggestions to me. Thanks a lot in advance. Best regards, Chia-Hsiang Yang
0 2356
20 Jan 2017 12:02 PM
0 Replies and 2393 Views How execute idl .pro filefrom another .pro file  2393  0 Started by  Deleted User Hello, I need to execute a .pro file from inside another .pro file. And one more question: can i execute every idl command line instruction (idl, ENVI api, envi classic api) using the idlpy module using the IDL.run('instruction') sintax Thank you for any feedback.
0 2393
12 Jan 2017 09:58 AM
2 Replies and 2219 Views How delete a specific record from an ESRI Shapefile in IDL  2219  2 Started by  Deleted User Hello, i need to delete a specific feature from a shapefile using IDL but i do not find any usefull tool or function. That is my simplified code: myshape = OBJ_NEW('IDLffShape', file); Get the number of entities so we can parse through them myshape->GetProperty, N_ENTITIES=num_ent; Parsing through the entities FOR x=0, (num_ent-1) DO begin ; Get the Attributes for entity x attr = myshape->GetAttributes(x) IF attr.ATTRIBUTE_0 EQ 'Roi_Test_v2 &91RECORD=2&93' THEN BEG...
2 2219
12 Jan 2017 08:52 AM
0 Replies and 2412 Views OpenRaster Error  2412  0 Started by  Deleted User Hi All, I'm getting a silly error when I try to inital a raster result after running a task. I'm currently using ENVI 5.3 IDL 8.5. Below is my code. The error happens after the first file in filelist, its the second one in the batch that hangs up on e.openraster(). The error is: Attempt to call undefined method: 'IDL_LONG::OPENRASTER'. Very weird and a bit frustrating because it runs beauifully on the first image but bombs on the scecond, I have 50 imgs to batch through this pro. pro sieveC...
0 2412
11 Jan 2017 03:18 PM
1 Replies and 2730 Views "Dummies" guide to IDL  2730  1 Started by  Deleted User My grandchildren want to use a couple of my IDL licenses, and for the sake of harmony I do not want to be their initial tutor. ;-) Is their anything resembling an IDL Dummies guide available please Thanks, Ian
1 2730
09 Jan 2017 11:18 AM
1 Replies and 2512 Views license error  2512  1 Started by  Deleted User I just reposted IDL 8.5 on my MAC Pro workstation running OS X El Capitan and I have received my new license.dat file but am unable to get the license activated. When I double click on the LicenseWizard an xQuartz windows opens but closely immediately and when i try to use the command line prompts i get the following errors. bash-3.2$ cd /Applications/exelis/idl85/bin bash-3.2$ . ./idl_setup.bash bash-3.2$ sudo ./lmgrd_install Password: bash-3.2$ sudo ./exelislicense IDL Version 8.5,...
1 2512
04 Jan 2017 02:42 PM
1 Replies and 2525 Views ENVI_DEFINE_MENU_BUTTON  2525  1 Started by  Deleted User Hello, I try to add a button to the ENVI classic menu system from a defined procedure. I put the procedure files within the save_add directory but that didn't work, I can't have the defined button on the ENVI menu. I have ENVI 5.3 version.
1 2525
28 Dec 2016 03:48 PM
1 Replies and 2245 Views Getting Lat/Lon from object based map function  2245  1 Started by  Deleted User In direct graphics I could use the CONVERT_COORD function to return the lat/lon, in degrees, of a pixel after I had set a map projection in MAP_SET. The new object-oriented MAP function shows provides a ConverCoord method but what it returns is a mystery. For example if I set a map with: m = map('Mercator', limit=&9159, -170, 74, -135&93, dimensions = &91640, 640&93) and then query the coordinates near the center I get print, m.convertcoord(320,320,/device,/to_data) ...
1 2245
27 Dec 2016 03:35 PM
1 Replies and 2187 Views 3D mesh visualizations new graphics  2187  1 Started by  Deleted User Hi! Currently I'm using old routines like SCALE3 & POLYSHADE to visualize a 3D surface mesh in IDL. Is there a way to do this using the new graphics methods If not, wouldn't that be a nice feature for an upcoming release Thanks! Wouter
1 2187
21 Dec 2016 05:50 AM
1 Replies and 2231 Views Keyword syntax for ENVI_FX_RULEBASED_DOIT  2231  1 Started by  Deleted User We are using ENVI_FX_RULEBASED_DOIT to classify large TIF files into preselected classes. We need to speed up the processing time by not exporting the vector attributes. What is the syntax for suppressing EXPORT_VECTOR_ATTRIBUTES When we don't include that Keyword the vector attributes are exported anyway. Thank you! envi_doit, 'envi_fx_rulebased_doit', $ fid=fid, pos=pos, dims=dims, $ r_fid=r_fid, merge_level=80.0, $ scale_level=10.0, $ rule_filename=ru...
1 2231
20 Dec 2016 09:45 AM
You are not authorized to create a new topic
Page 14 of 126 << < 1213141516 > >>