Questions tagged [idl-programming-language]

Interactive Data Language, a dynamically typed programming language used primarily for image analysis and data visualization. IDL is maintained and licensed by Harris Geospatial Solutions.

IDL (Interactive Data Language) is a dynamically typed programming language intended for processing and visualization of numerical data. IDL is currently maintained and licensed by Harris Geospatial Solutions. It is popular in particular areas of science such as earth science, astronomy, and medical imaging.

Additional information is available on Wikipedia.

Tagging recommendation:

Use the idl-programming-language tag for all IDL related questions. Do not use the idl tag; that is for Interface Description Language.

326 questions
1
vote
1 answer

How to handle data in python similar to IDL structures?

So I am converting some code from IDL to python. In the IDL there are about 50 variables held in a structure of structures; values = { struct1: {a = 1, b = 2}, struct2: {a = 3, b = 4} ... etc } The data can be accessed as follows: print,…
1
vote
1 answer

What is C# equivalent to ATAN(X,Y)?

It looks like there are two parameters inside the atan function, but I'm not sure how to convert this to C#? The IDL reference says "If two parameters are supplied, the angle whose tangent is equal to Y/X is returned. " …
erotavlas
  • 4,274
  • 4
  • 45
  • 104
1
vote
1 answer

calling fortran from IDL by means of C

after a lot of searching, I decided to post my question. I have to pass some arrays (1D and 2D) to IDL to my fortran routines (I'm a "modern fortran" programmer). IDL is a column major language, and I have all the arrays already allocated before…
1
vote
1 answer

Trying to read in a .gda file to IDL

I am trying to read in a .gda file into IDL for plotting purposes. I am not familiar with the format and my research indicates it is an unformatted binary data file type. Anyways, here is what I am doing: pro omidi_contour openr, 1, 'data.gda' a =…
Abhinav Kumar
  • 1,613
  • 5
  • 20
  • 33
1
vote
1 answer

HOW to get the same ENVI result in IDL using CONVOL function?

I am using ENVI to perform a convolution, With Median set, a kernel size of 5, and an Image Add Back value of 0% The results in ENVI are really good, When I try to do the same using CONVOL in IDL I can’t manage to get it to work the same way, Here…
user2333346
  • 1,083
  • 4
  • 21
  • 40
1
vote
1 answer

Interactive Data Language - Array manipulation

I have two arrays of the same length in IDL. I want to combine the two arrays pairwise so that I can then print the two arrays as columns to file. Is this possible?
stars83clouds
  • 795
  • 1
  • 8
  • 25
1
vote
1 answer

IDL and XPA interaction

I'm having a problem getting programs launched by the IDL "spawn" command to be seen by XPA. I'm trying to launch ds9 and then save a region file via IDL. If I open a ds9 window from a terminal window, I can connect just fine with XPA in IDL. …
Doug
  • 387
  • 1
  • 2
  • 15
1
vote
1 answer

Location for the 32bit IDL Virtual Machine version [idlrt.exe ] in Windows registry?

I have IDL 8.2 64bit version, Which comes with 32bit version also, I am looking for the 32bit IDL Virtual Machine version location [idlrt.exe ] in Windows registry: But both these locations only refer to the 64bit…
user2333346
  • 1,083
  • 4
  • 21
  • 40
1
vote
1 answer

Scipy readsav and IDL Types

I am trying to restore a sav file with numpy readsav. The sav file contains an array of idl objects I have defined (with my own types). This type information is completely absent from the recarray I obtain with readsav. The dtype.name property…
LB40
  • 12,041
  • 17
  • 72
  • 107
1
vote
1 answer

3D scatter plot

I want to create a 3D scatter plot. There is a fourth parameter which will be indicated by a colour map. I can program in Python and IDL, but was wondering has anybody created such a scatter plot and what is the best tool to use? Thanks.
stars83clouds
  • 795
  • 1
  • 8
  • 25
1
vote
2 answers

Porting IDL code, lindgen function to Python

Afternoon everyone. I'm currently porting over an IDL code to python and it's been plain sailing up until this point so far. I'm stuck on this section of IDL code: nsteps = 266 ind2 = ((lindgen(nsteps+1,nsteps+1)) mod (nsteps+1)) dk2 =…
Carl M
  • 215
  • 3
  • 10
1
vote
1 answer

idl strange symbols in file

I've written several IDL programs to analyse some data. To keep it simple the programs read in some time varying data and calculate the fourier spectrum. This spectrum is written to file using this code: openw,3,filename …
theotheraussie
  • 495
  • 1
  • 4
  • 14
1
vote
1 answer

IDL CALL_EXTERNAL crashing when passing arguments to C++

I'm trying to run a c++ script from IDL using the CALL_EXTERNAL function. I've been able to get it to work without arguments, but when I try to add an arg, such as a single IDL LONG INT, IDL crashes. with the error: % CALL_EXTERNAL: Error loading…
Kammeot
  • 469
  • 7
  • 18
1
vote
2 answers

Compare the similarity of entities with differing lengths in IDL

Okay so I have an array of objects. Each object has a vector of x and y co-ordinates in pixels. I need to effectively go through and compare them to each other and say they're the same one. (They're spread across several time-frames, so there is a…
IainS
  • 260
  • 3
  • 14
1
vote
3 answers

IDL Check if number in array

I'm very new to IDL. Effectively what i want to do is have an if statement that checks if the current index I is in an array. In Python it would look something like the following: if this_num in xartifact: print 'Is an x artifact' elif this_num…
IainS
  • 260
  • 3
  • 14