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
0
votes
1 answer

Convert datetime and timedelta from Python to IDL

Please does anyone know how to convert the following python script to IDL, hours = list(Timed) start_date = datetime(year=1800, month=1, day=1, hour=0, minute=0, second=0) days =[] Months =[] Years =[] for hour in hours: date = start_date +…
TThoye
  • 25
  • 5
0
votes
1 answer

Automatically Read Array Size into IDL

I am trying to automate a code in IDL that takes a few .dat files created and reads them into an array. Each of these files has 4 columns but a different number of rows, and I am not sure how to set it such that it automatically fits the array to…
0
votes
1 answer

Is there a way to run IDL code without paying for license?

I have to convert some code from IDL to Python as a part of a project. The problem is that to convert it I need to learn IDL first and I can't seem to find a compiler for it nor can I find any tutorials. Is there any other way to run the code? Any…
SMA
  • 1
  • 2
0
votes
0 answers

Trying to plot one image above the other using LAYOUT[1,2,1] and LAYOUT[1,2,2], but the x-axis of the two plots aren't aligned

In IDL, I tried to plot one image above the other using LAYOUT[1,2,1] and LAYOUT[1,2,2], but the x-axis of the two plots aren't aligned. I tried to fix it using POSITION[x0,y0] instead of LAYOUT, but for some reason POSITION[x0,y0] doesn't seem to…
0
votes
1 answer

Add variable to structure tag in IDL

I was wondering if someone knew how to add more values to a structure variable in IDL? For example, if we have the structure 'struct' struct = {structname, x:[1,2,3], y:[10,11,12]} And I specifically wanted to add [4,5,6] to x, something…
0
votes
1 answer

Plot a fieldline onto 2D magnetic field components in IDL

I would like to overplot a single fieldline at some radius or starting point, onto a contour of a magnetic field model without using the streamline function. For example, here are the cartesian components of a dipole in the xz-plane: N=20 …
freja
  • 47
  • 1
  • 6
0
votes
1 answer

Could someone give me a good explanation of the "high_low" value in IDL contour programming?

the "A byte that is 1 if the contour is above its surroundings, and is 0 if the contour is below." explanation does not make sense to me at all. :-( the context of what i am trying to program is that i am plotting kelvin-helmholtz vortices and i…
0
votes
1 answer

IDL - saving loop data

I am trying to calculate correlations for chosen intervals and then save the calculated correlations into an array to save them. But I was not succesful to safe the results after every iterration. My testing…
Leif
  • 187
  • 1
  • 2
  • 11
0
votes
1 answer

Creating a 2D array in IDL starting from an equation

I'm trying to make a contour plot in IDL of quantity described by and equation, which here I'll take to be x^2 + y. In order to do that, I first need to create a 2D array ("pxx"). Being a novice, I'm currently just moving my fist step into this…
0
votes
1 answer

"Gtk WARNING: gtk_disable_setlocale() must be called before gtk_init()" on calling plot in gdl (gnu data language)

I installed GDL, the IDL alternative, to run some IDL code for my project. But when I try to call plot function in GDL it gives the following error and exits: *(gdl:1003695): Gtk-WARNING *: 22:57:44.888: gtk_disable_setlocale() must be called before…
0
votes
1 answer

Im having running IDL code in Python, or just running the code

I am trying to run IDL I will attach it bellow code in python, I have tried idlmagic but nothing seems to work, is there maybe a different environment I should use? import idlpy wdir5='/C:/Users/Desktop/Task/Data/'#choose the right…
Alucard
  • 1
  • 1
0
votes
1 answer

How can I calculate square root of a matrix using IDL?

I am trying to calculate square root of a large dimension matrix using IDL but failed. Any solution or tips would be highly appreciated.
Orpheus
  • 329
  • 6
  • 21
0
votes
0 answers

Run IDL .pro from python Popen?

Using a shell the following command works: idl -e 'eventtester, "TEST123", config_file="path/to/configuration.ini"' But when it is run from python through pipes = subprocess.Popen('idl -e \'eventtester, "TEST123",…
0
votes
1 answer

Comprehensive guide to manipulating axes in idl

I am trying to have 4 plots in the same window using !p.multi=[0,2,2] !p.position=[0.11,0.5,0.5,0.9] ...some code !p.position=[0.5,0.5,0.9,0.9] ...some code !p.position=[0.11,0.1,0.5,0.5] ...some code …
SnowFrog
  • 1,162
  • 4
  • 19
  • 38
0
votes
1 answer

IDL lambda: Attempt to subscript is out of range

idl 8.4 introduced the lambda function. I have IDL 8.6.1 and the lambda function does not fully work as documented: IDL> f = lambda(x : x * x) IDL> print, call_function(f, findgen(10)) 0.00000 1.00000 4.00000 9.00000 …