|
|
|
|
|
2 Replies and 1977 Views
Trailing Singleton Dimensions of Structure Fields 1977 2
Started by Deleted User
Is there a *good* way to programmatically determine whether or not a structure field contains trailing singleton dimensions The HELP procedure correctly lists the trailing dimensions, but when you access the field it is stripped of those dimensions. I could use the OUTPUT keyword to HELP, however that is not ideal and not recommended by IDL. Here is an example:
; Create structure with a 5x1 field.
; Inspect the structure and its field.
IDL> a = {field:reform(lindgen(5),5,1)}
IDL> help,...
|
|
|
|
2 |
1977 |
18 Sep 2015 11:15 AM |
|
1 Replies and 2043 Views
Odd indexing in IDL 2043 1
Started by Zachary Norman
I was wondering if someone might be able to explain what’s happening here. I am trying to create an array of values (A) and use a second array of values (B) to determine which values to read from A and return a vector (C) whose length is equal to that of B and has the values from A that correspond to the index values provided in B. Say I do the following:
A = &910,1,2,3&93
B = &911,2,3,4,5,6,7,8,9&93
I’d expect:
C = A&911,2,3,4,5,6,7,8,9&93 to ...
|
|
|
|
1 |
2043 |
18 Sep 2015 08:43 AM |
|
4 Replies and 2353 Views
IDL call function &39;s error tips 2353 4
Started by Deleted User
I have one problem about IDL call function. convert_modis_data is a MODIS projective transformation provided by NASA. modis_conversion_toolkit.sav is placed at E:\ENVI\ENVI50\classic\save_add. The problem is that some MODIS data is unvaild(like MOD02HKM.A2015126.0340.006.2015126133248),Procedural error cant be jumped over by ‘catch’way,The program can not be carried out next cycle
. This affect work efficiency. so does anyone can know how to solve this peoblemthanks
PRO BATCH_...
|
|
|
|
4 |
2353 |
18 Sep 2015 07:00 AM |
|
2 Replies and 1701 Views
Sharing Memory: Structures 1701 2
Started by Deleted User
Hello,
I'm trying to figure out the proper syntax for assigning a structure to shared memory. The SHMMAP documentation (http://www.exelisvis.com/docs/SHMMAP.html) states:
"The array can be of any type except pointer, object reference, or string. (Structure types are allowed as long as they do not contain any pointers, object references, or strings.)"
But there are no examples for sharing structures.
My basic method for initializing shared memory is:
ShFixVardim = size(ShFixVar, /dim)...
|
|
|
|
2 |
1701 |
14 Sep 2015 01:17 AM |
|
1 Replies and 2086 Views
Problem with read_tiff 2086 1
Started by Deleted User
I am trying to use simple operation read_tiff(myfile, r, g, b). After the read variables r,g and b remain undefined so I can not use them. So even TVLCT, red, green, blue gives the message : "TVLCT: Variable is undefined: R. Execution halted at: $MAIN$". What might be the problem
|
|
|
|
1 |
2086 |
11 Sep 2015 03:05 PM |
|
1 Replies and 2370 Views
IDL startup issue - starting up older version, rather than newer one. 2370 1
Started by Zachary Norman
Hello,
I have run into a little issue. I had the IDL version 8.2 with an expired license. However, I had to download the IDL 8.5 version that runs with Yosemite (10.10.2). I upgraded my mac system to Yosemite last night and then downloaded the newest version of IDL 8.5. I have also installed the newest version of X11. However, when I do go back into the command line and type in "idl" at the -bash prompt I get the error message below. Basically it is still calling the older ...
|
|
|
|
1 |
2370 |
11 Sep 2015 10:16 AM |
|
3 Replies and 3061 Views
spawn through cygwin 3061 3
Started by Deleted User
I have a Windows 7 computer running IDL 8.4 and have cygwin installed as a linux emulator. I want to send a command through to cygwin and have tried two things:
spawn through cmd.exe which then calls cygwin to execute command
spawn through cygwin to execute command
I cannot get spawn to do anything, how do I set the shell to open cmd.exe
The command I want to pass works in both cygwin and the command line independently.
I've tried SETENV,'SHELL=cmd.exe'
SETENV,'SHELL...
|
|
|
|
3 |
3061 |
08 Sep 2015 07:05 PM |
|
1 Replies and 2200 Views
license issue. error -96,7 2200 1
Started by Deleted User
I am trying install license to my IDL 8.5 on my macbook pro.
Then the following error happened.
FLEXnet error: -96,7. System Error:2 "No such file or directory"
I tried many ways and many times to make sure the manager works well.
http://www.exelisvis.com/Support/HelpArticlesDetail/TabId/219/ArtMID/900/ArticleID/4097/4097.aspx
I got help from the website above and follow the instruction. Then it works.
But the problem is, while I changed the IP, like change from office to home, it r...
|
|
|
|
1 |
2200 |
03 Sep 2015 02:36 PM |
|
1 Replies and 2088 Views
Could not add IDL environment variable to PTVS of visual studio 2088 1
Started by Deleted User
I installed the Anaconda, now I'm trying to config PTVS 2.2 of visual studio to accomplish IDL-PYTHON bridge. I set the PYTHONPATH variable, but IDL PATH could not be detected by PTVS.
it works well under Spyder IDE. How could I config this in PTVS
thanks.
|
|
|
|
1 |
2088 |
30 Aug 2015 10:11 PM |
|
3 Replies and 3160 Views
"Unable to find a valid Python installation" in IDL 8.5 3160 3
Started by Deleted User
Hello,
I added my python installation "C:\python34" to PATH system environment variable, but it shows like this:
IDL> PRINT, Python.Run('&91x*x for x in range(1,11)&93')
PYTHON::LOAD: Unable to find a valid Python installation.
Execution halted at: $MAIN$
IDL helping doc says "You should ensure that your Python executable is on the Windows system PATH environment variable. IDL will use the first Python executable that it finds on the system path."
...
|
|
|
|
3 |
3160 |
28 Aug 2015 10:27 AM |
|
1 Replies and 3038 Views
For loop problem in Fedora 22 3038 1
Started by Deleted User
Dear all, I have a problem with a for loop that I think is not a syntax problem.
For example if I run this simple loop:
for i = 0, 4 DO BEGIN
PRINT, i
ENDFOR
I get this error:
5
ENDFOR
^
Syntax error.
I am running IDL 8.4 in Fedora 22 and I recently upgraded from fedora 19 using fedup. Before upgrade I didn't have problems, but now I get this errors. I also noted that the last display of "i" is 5 and not 4 as I indicated in the loop. I tried to reinstall ...
|
|
|
|
1 |
3038 |
26 Aug 2015 11:23 AM |
|
1 Replies and 3171 Views
Batch converting .sta to .txt files 3171 1
Started by Deleted User
I have a couple hundred .sta files generated using ROI's, and I would like to convert all of them to text files. I know I can create text files of stats based on individual ROI's in the GUI but it is rather time consuming. I also know you can save all stats from individual ROI's into just 1 text file, but the way ENVI outputs it is incredibly messy and the individual files are easier to work with. Is there a way to convert .sta to .txt or .csv in IDL
EDIT:
I am trying to use something li...
|
|
|
|
1 |
3171 |
26 Aug 2015 10:22 AM |
|
1 Replies and 1759 Views
Polynomial surface fit with different degrees in x and y 1759 1
Started by Deleted User
Is there any IDL function available, which performs a surface fit to a 2-dim array with different polynomial degrees in x and y direction
That means, the routine should work like the SFIT function, but with 2 types of polynomial degrees: one degree for the x direction and the other one for y direction. E.g. degree 3 (cubic) in x direction and degree 2 (parabolic) in y direction.
Ideally the polynomial fit function could also be applied to irregular data (see SFIT keyword "/irreg...
|
|
|
|
1 |
1759 |
26 Aug 2015 09:30 AM |
|
3 Replies and 2100 Views
Plot and Legend problem 2100 3
Started by Deleted User
I encountered this problem in my project, not quite sure it is due to my mistake or my system/environment or IDL bug. I plotted charts on a widget_window, and draw a legend on it. It works fine if I don't touch the legend. However, if I move the legend window to another place. Then redraw the chart will cause an error saying:
Unable to invoke method on NULL object reference: )>.
Execution halted at: TESTAPP_EVENT 27 /home/MyProject/TestApp.pro
I extract the problematic portion of the ...
|
|
|
|
3 |
2100 |
20 Aug 2015 10:31 PM |
|
6 Replies and 1918 Views
Batch processing script error 1918 6
Started by Deleted User
I am trying to do exactly what is outline below, but to no avail.
http://www.exelisvis.com/Home/NewsUpdates/TabId/170/ArtMID/735/ArticleID/14068/Batch-Processing-using-an-ENVITask.aspx
Here is my code, updated from the example above for use with 5.2:
pro batch_radiometric_calib
compile_opt idl2
e = envi(/headless)
task = ENVITask('RadiometricCalibration')
task.CALIBRATION_TYPE = 'top-of-atmosphere reflectance'
search_dir = '/users/ben/desktop/image'
filelist = file_search(search_di...
|
|
|
|
6 |
1918 |
18 Aug 2015 05:17 PM |
|
2 Replies and 1640 Views
Is there a way to batch edit header files? 1640 2
Started by Deleted User
I have 80 Landsat scenes with each band stacked, and for each scene I want to input what the wavelengths are for each band so that ENVI can recognize it. This is straight forward to do in the GUI, but is there a way to do using IDL I have come across ENVI_SETUP_HEAD, but I just want to edit a header file that is already present.
|
|
|
|
2 |
1640 |
17 Aug 2015 11:35 AM |
|
1 Replies and 2428 Views
IDL 8.3 on Windows 10 2428 1
Started by Zachary Norman
I often use IDL 8.3 on my laptop which runs Windows 8.1. I was thinking of upgrading to Window 10; however, I'm a little concerned with the operation of some of my programs. I was curious how IDL 8.3 works on windows 10 (for example, if there are any known problems or if the program has been tested yet with windows 10)
|
|
|
|
1 |
2428 |
14 Aug 2015 11:45 AM |
|
2 Replies and 1893 Views
I require to input pixel coordinates to spit out lat-long of the same 1893 2
Started by Deleted User
Hi, Having a projection and datum for an image in Geotiff ,I would like to input specific pixel location(x,y) to obtain lat-long (or UTM coordinates) of the same.Can any please suggest me how this could be achieved.Is there a function that is present that I'm unable to find out ! Regards, Puneeth
|
|
|
|
2 |
1893 |
14 Aug 2015 01:37 AM |
|
2 Replies and 2100 Views
Layer Stacking based on filenames 2100 2
Started by Deleted User
I have in one folder 80 Landsat scenes, each with 6 bands for a total of 480 .tif files. I want to stack bands 3 and 4 for each scene to create an NDVI, but I am not sure how to make IDL recognize to only stack the appropriate .tif files.
The naming nomenclature is like this:
LT50290282011268PAC01_sr_band3.tif
LT50290282011268PAC01_sr_band4.tif
LT50300281984185XXX15_sr_band3.tif
LT50300281984185XXX15_sr_band4.tif
so I want the first two files stacked together and the second two files stacked ...
|
|
|
|
2 |
2100 |
12 Aug 2015 03:03 PM |
|
2 Replies and 1943 Views
libidl SONAME issue 1943 2
Started by Zachary Norman
I'm having an issue with libidl in that its SONAME refers to specific minor versions (i.e. 8.3, 8.4, etc). This means that my software will not load correctly at run-time if the target user does not use the same version (major AND minor) of IDL that I used to link the application. It also means that even if the user has the correct version initially, any upgrades of IDL on the user's end will cause my software to no longer load properly at run-time.
What is the recommended solution for this We ...
|
|
|
|
2 |
1943 |
12 Aug 2015 10:50 AM |