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

IDL - how to write text partially in italics?

How to write text in graphs partially in italics, please? For instance, here: x = 0.01*(FINDGEN(201)) p1 = PLOT(x, EXPINT(1, x), '2', YRANGE=[0,2]) p2 = PLOT(x, EXPINT(2, x), 'r2', /OVERPLOT) p3 = PLOT(x, EXPINT(3, x), 'g2', /OVERPLOT) t1 =…
Elena Greg
  • 1,061
  • 1
  • 11
  • 26
1
vote
1 answer

Converting variable to FID for image in ENVI+IDL?

I'm beginning to use ENVI+IDL (most of this relates to IDL, I think, in case you know one but not the other) at work, completely new to both. Since ENVI isn't an existing tag, I'll explain that it's a toolkit and GUI, integrated with IDL, for…
malenkylizards
  • 223
  • 1
  • 4
  • 13
1
vote
0 answers

Get Xrange of current graphics object in IDL

How do I get the X-range of the "current" graphics object? For example lets assume I create a single plot window: p = plot(/test, xrange=[10,35]) Now, without using the reference to p how do I get the X-range ([10,35]) of this plot window?
jitter
  • 346
  • 5
  • 12
1
vote
2 answers

(Over)plotting points on a line plot

I am trying to plot individual data points on a line plot I already made as follows: p=plot('3.29*exp(-17.4*(x^2))-0.908',xrange=[0.,1.],yrange=[-1.,1.5]) I first tried overplotting a point like this but nothing appears on the…
Bereket
  • 55
  • 8
1
vote
1 answer

reading and writing multiple data files in idl

I'm new to IDL and trying to read multiple binary data files from a certain folder and write them in a text format to a certain folder all at once. I currently have a code that reads and writes only one file at a time and I have to do the naming…
1
vote
1 answer

How to save Python dataset (previously exported from IDL) back to IDL format

I have a file in IDL, I import it to Python using readsav from scipy, I change a parameter in the file and I want to export / save it back to the original format, IDL readable. This is how I import it: from scipy.io.idl import readsav input =…
1
vote
1 answer

Reading binary file using IDL

I have a IDL program which reads data from binary file. I am a newbie in IDL and so I can't help with a few lines in the program. Any help would be appreciated. ''' PRO READTHREEDIMENSIONAL,VAR,singlefname,NX,NY,NZ ; DECLARE VARIABLES VAR =…
avijayan
  • 11
  • 2
1
vote
0 answers

Does the TEPMPORARY function from IDL has an analogue in Python?

In the Interactive Data Language (IDL) there is the function TEMPORARY: https://www.harrisgeospatial.com/docs/TEMPORARY.html This function allows things like the following: A = TEMPORARY(B) Which copies the information from B into A without…
Stefano
  • 359
  • 1
  • 5
  • 16
1
vote
1 answer

How Do I Store An Array Inside An Array In IDL?

I am trying to store a set of 1 dimensional IDL arrays inside a 2-dimensional array in IDL. I cannot find any documentation on Harris Geospatial and I am not having luck just mucking around with syntax. A 3-dimensional array seems the obvious…
Fishbones78
  • 61
  • 11
1
vote
0 answers

Tick marks showing downhill on contour lines

In IDL, tick marks can be used to show the direction of downhill on contour lines. I cannot find a similar command in python, is one available? Thanks!
1
vote
1 answer

Displaying a large .dat binary file in python

I have a large 40 mb (about 173,397 lines) .dat file filled with binary data (random symbols). It is an astronomical photograph. I need to read and display it with Python. I am using a binary file because I will need to extract pixel value data…
John
  • 21
  • 4
1
vote
1 answer

Import Only Necessary CSV Columns In IDL

I am struggling to find a function in IDL that will replicate something I have done in Python with Pandas. I am new to IDL and there is next to nothing resource wise that I can find. In Python, I use the following: pd.read_csv('',…
Fishbones78
  • 61
  • 11
1
vote
1 answer

Read a binary file using unpack in Python compared with a IDL method

I have a IDL procedure reading a binary file and I try to translate it into a Python routine. The IDL code look like : a = uint(0) b = float(0) c = float(0) d = float(0) e =…
dodo27
  • 11
  • 2
1
vote
1 answer

How to calculate the number distribution of data in IDL

I have a data consist of time and flux (4117 rows x 2 columns) I want to calculate and plot the number distribution of brightness variation between all pairs of two consecutive data points same as the picture distribution of brightness…
A.KT
  • 11
  • 4
1
vote
4 answers

Controlling the number of returned variables in a function

Is there a way to define a function which knows how many variables to return based on how many outputs the user expects? Let me illustrate the idea. Assume the following function: def function(): a = 1 b = 2 c = 3 return a, b,…