X
Search this forum:
Search
You are not authorized to create a new topic
Page 3 of 126 << < 12345 > >>
Topics
 Replies
 Views
 Last Post
1 Replies and 848 Views IDL 8.8 not compatible with 8.6 code  848  1 Started by  Deleted User Hi, in IDL 8.6.1 list({a:&91;1&93;}) eq list({a:&91;'1'&93;}) returns 1. In IDL 8.8.1 the same returns 0. This breaks my code that determines whether two structures are equal (as IDL cannot say {a:1} eq {a:1}). This (among other issues - see topic 'Fatal error with restored structure from sav file') definitely prevents me and my working group from updating IDL beyond 8.6. Will this be changed eventually to assure backward compatibility Thanks a lot! Achim
1 848
by  Ben CastellaniJump to last post
24 Aug 2022 07:03 AM
3 Replies and 969 Views Need Optiminization help!  969  3 Started by  Deleted User I've been working at this dilemma for quite a while and thought I would ask my fellow IDL experts. I am processing an image by taking sequential 3x3 2D subsets from it and calculating the following: 1) Subtracting the center point from the surrounding elements, 2) Calculating the absolute value of (1), and then summing all of those deltas. The problem is I can't figure out how to efficiently do this with IDL without loops. Here is some code: n = statboxsize - 2 temp = INTARR(statboxsize, ...
3 969
by  Ben CastellaniJump to last post
10 Aug 2022 01:44 PM
3 Replies and 1531 Views .RUN not working w/o options in idl 8.8.2  1531  3 Started by  Deleted User Using .RUN in idl 8.8.2 does not give me a '-' prompt, just goes right back to IDL> . However if I do '.RUN --' then I get the '-' prompt. I do not see this issue with IDL 8.8.1 . Any ideas on how to setup 8.8.2 so I don't need to add '--' to use .RUN . Same happens to .RNEW . Thanks Chris
3 1531
by  Ben CastellaniJump to last post
10 Aug 2022 08:57 AM
2 Replies and 2080 Views How to download IDL Virtual Machine  2080  2 Started by  Deleted User Hello, I need the IDL VM to run a .sav file that has been given to me. I have completed the registration process, but I don't understand how to download IDL. If I go to download and licensing center, it says that I need to enter a specific username and password (not the same one used to register on the main website), but there is no link to create such account. I have tried to download old versions, but it says that the page is temporarily unavailable. It's very disappointing that l3harri...
2 2080
by  MariMJump to last post
28 Jul 2022 08:06 AM
2 Replies and 1193 Views Fatal error with restored structure from sav file  1193  2 Started by  Deleted User Hi, I use list(struct) eq list(struct) to compare structures. This works fine mostly but the code below produces a fatal error (IDL Workbench closes). Note that this only happens when the structure is set up in a certain way, e.g., with only the first two tags, it does work. s = {l: 1l, s: '', s2: ''} list(s) eq list(s) ; This returns 1 as expected save, s, FILENAME='s.sav' restore, 's.sav' list(s) eq list(s) ; this produces a fatal error I use IDL 8.8.1 on Linux Mint 20.3 Thanks...
2 1193
by  Ben CastellaniJump to last post
01 Jul 2022 08:16 AM
2 Replies and 1138 Views static variables in class object  1138  2 Started by  Deleted User Hello everybody, i am very new at idl programming but know the principles of OOP. Now i need a class with a few instances where each instance is able to access the same data. I know the concept of static member variables in c classes and thought, there would be an equivalent in idl. But i didn't found any. Is there another concept i could use Thanks, carl
2 1138
by  Deleted UserJump to last post
21 Jun 2022 05:28 AM
0 Replies and 1511 Views UTF-16 Support in IDL  1511  0 Started by  Deleted User In IDL 8.1 version, default encoding for workspace and resource file UTF-8. If we need to support surrogate pair (in Chinese environment), we need UTF-16 encoding. In UTF-8 encoding surrogate pair character is displayed as ''. But we could not change to UTF-16 encoding. If we change to UTF-16 encoding in IDL workspace file entries got messed up or IDL got crashed. Also even if we input surrogate pair character in widget_text control, GET_VALUE returns '' Please give support for UTF-...
0 1511
29 May 2022 12:31 AM
1 Replies and 1081 Views HDF5 Question  1081  1 Started by  Deleted User Does IDL have support for 'dimension scales' in its H5 routines I see it in various Python, Fortran, and C implementations. But I cannot see anything similar in IDL's H5 routines. For example, the calls to H5DS at this thread: https://hdfeos.org/forums/showthread.phpp=1774 . Thanks for any input. -Marcos
1 1081
by  Ben CastellaniJump to last post
25 May 2022 01:09 PM
0 Replies and 1393 Views lamda's as elements of a dictionaries  1393  0 Started by  Deleted User This code simplifies the situation: compile_opt strictarr ec=hash() ec =dictionary('l', lambda('x:x^2') ) a={a:lambda('x:x^2')} scr=ec&91;'l'&93; scr1=a.a print, scr(1), scr1(1) What is the syntax for accessing the lambda expression without the dummy variables scr and scr1. For example ec.l(1), (ec.l)(1), ((ec.1))(1) all return 'undefined method for dictionary' or 'syntax errors.'
0 1393
01 Apr 2022 04:20 PM
1 Replies and 1035 Views Spectral Match  1035  1 Started by  Deleted User Hello, How can I match spectra with IDL like for example with Spectral Analyst Tool in ENVI Thanks, Nathan
1 1035
by  Ben CastellaniJump to last post
30 Mar 2022 09:39 AM
1 Replies and 1276 Views QUERY_DICOM return zero for dicom files  1276  1 Started by  Deleted User I have some dicom files not being recognized as dicom by IDL, but recognized by other dicom readers/viewers. One example is from the newest softwareupdate for an x-ray vendor export raw images in a dicom format where QUERY_DICOM return zero. The file can be read by other software including MicroDicom and ImageJ so the vender claim that there is nothing wrong with the dicom files. Another example: Some processed images, both for old and new gamma camera, return zero on QUERY_DICOM. The files can ...
1 1276
by  Ben CastellaniJump to last post
14 Mar 2022 05:08 PM
0 Replies and 7269 Views How to determine which US state a point is located in?  7269  0 Started by  Ben Castellani There is no routine built into IDL to do this by default. However, it is very simple using the stock states shapefile and the IDLanROI object class: https://www.l3harrisgeospatial.com/docs/idlanroi.html See the provided example function below which can be used to identify the state containing the specified point: function stateFinder, longitude, latitude ; NAME: ; stateFinder ; ; PURPOSE: ; This function returns the name of the US state containing the specified point....
0 7269
14 Mar 2022 11:00 AM
1 Replies and 1438 Views Plot transparency issue IDL8.8.2  1438  1 Started by  Deleted User Hi IDL experts, When I plot symbols with the plot or scatterplot function, the transparency of the symbols is high. I cannot get it to zero, and appears to be transparency=50 by default. I can increase it to values higher than transparency=50. However, the issue only occurs when displaying within IDL and not when I save it to e.g. a png-file. I'd like to see my figures exactly as I would save them, so I'd know what I'm saving. How can I fix this I'm using IDL8.8.2 on Linux Debian 11 Tha...
1 1438
by  Ben CastellaniJump to last post
03 Mar 2022 10:21 AM
1 Replies and 1084 Views Skip images with no pixels  1084  1 Started by  Deleted User I diced some images and then want to extract spectra the spectra from the dices. Because of how I diced the images, there are now dices that have no pixel information. Instead of manually removing those, I want the foreach loop to skip the ones with no pixels. When running this code: 1 foreach file, files do begin 2 raster1 = e.OpenRaster(file) 3 ;Define ROI with Threshold 4 roi = ENVIROI() 5 roi.AddThreshold, raster1, 182, min_value=0, max_value=1 6 7 pixelData = raste...
1 1084
by  Deleted UserJump to last post
21 Feb 2022 10:18 PM
6 Replies and 2570 Views IDl bug  2570  6 Started by  Deleted User I use IDL 8.8, and I recently upgraded my OS to Big Sur. After that I notice that, when I press return on the keyboard to go to the next line, the line below disappears. This happens because the process of creating a new blank line by pressing the return key takes a very long time. After a new line is created, the delated line appears again. I also noticed that if I move the IDL window, the new line appears right away. This is a very annoying problem, how can I solve it
6 2570
by  Deleted UserJump to last post
17 Feb 2022 09:54 AM
0 Replies and 1439 Views calling IDL system routines from DLM  1439  0 Started by  Deleted User I would dearly love to be able to access the NetCDF routines in the NCDF DLM from my own C code packaged in my own DLM. This is a specific case of the more general problem of needing to access IDL system routines from within a user-written DLM. Is there an interface for this One option is to use IDL_ExecuteStr(), but this appears to be discouraged in the IDL documentation (and is really inefficient). I had thought that defining an external function in my DLM code as follows: extern IDL_V...
0 1439
24 Jan 2022 09:55 AM
2 Replies and 2642 Views IDL VM splash screen question  2642  2 Started by  Deleted User Question: The IDL Virtual Machine (IDL VM) displays a splash screen when running a .SAV. We are trying to run this .SAV from another application through a command line shell execute, and it causes the splash screen to appear. Is there an easy way we can suppress this splash screen
2 2642
by  Deleted UserJump to last post
10 Dec 2021 05:20 AM
0 Replies and 1725 Views IDL bug: reading an ENVI file created by Python  1725  0 Started by  Deleted User I have created several classification maps by Python coding and saved them as envi files. I want to assess the classification map and produce confusion matrices. Since I already have an IDL code using ENVI functions for classification assessments, I tried to open the ENVI files in IDL using envi_open_file but it sends r_fid=-1 and can not open them. The files can be directly opened by ENVI and there is no problem. When I have saved the file in ENVI, (using 'save as') as a standard envi file...
0 1725
30 Nov 2021 07:45 AM
5 Replies and 2152 Views Issues Running Code on IDL 8.8  2152  5 Started by  Deleted User I recently downloaded IDL to run some particle tracking scripts and I am having issues running them on IDL 8.8. I can run the scripts on IDL 7.1 without any issues but on 8.8 I see the following code. Any advice on how to solve this and run my this scripts hash((rrimask) mod bignum) = 0 ^ Syntax error. At: /Applications/harris/idl88/lib/IDL kit/kit3d/feature3d.pro, Line 199 if nw gt 0 then hash((rrimask(w) mod bignum)) = 0 ^ Syntax error. At: /A...
5 2152
by  Ben CastellaniJump to last post
19 Nov 2021 11:43 AM
0 Replies and 1654 Views MORPH_DISTANCE  1654  0 Started by  Deleted User The 1D calculation in MORPH_DISTANCE seems off, in that it automatically sets the borders to background, even if not told to. For example: print, Morph_Distance(&91;1,1,1,0,0,0&93;) returns 0 1 1 0 0 0 when the two reasonable answers would seem to be 1 2 1 0 0 0 or 3 2 1 0 0 0 depending on how the edge is treated. But, the second number should be 2 either way. The documentation says 'I...
0 1654
12 Nov 2021 01:02 PM
You are not authorized to create a new topic
Page 3 of 126 << < 12345 > >>