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

Convert HEALPix to cube map

I'm looking for a way to convert fits file using the HEALPix projection to a cube map. I'm particularly interested in converting files from the Planck data release. My question in pictures: I have: I want:
hanno
  • 6,401
  • 8
  • 48
  • 80
1
vote
4 answers

read certain number of lines from a txt file and convert to list in a pythonic way

Suppose I have the following txt file: 0.0163934 6 7.52438e+09 2147483648 6.3002e-06 6.31527e-08 0 0 6 0 0 4.68498e-06 0.00638412 12.6688 6.33438e-06 0 5.99588e-09 0 0 0 0 4.70195e-06 0 12.876 6.36874e-06 0 6.09398e-09 0 0 0 0 4.71894e-06 0…
Santiago
  • 226
  • 2
  • 14
1
vote
1 answer

Difference of spline interpolation in IDL and Python

I wrote IDL code: zz= [ 0, 5, 10, 15, 30, 50, 90, 100, 500] uz= [ 20, 20, 20, 30, 60, 90, 30, -200, -200]*(-1.) zp= findgen(120)*500+500 up= spline((zz-10.),uz,(zp/1000.0)) print, up and IDL gave me the values of up array from about -20 to…
hoang tran
  • 3,918
  • 3
  • 19
  • 21
1
vote
1 answer

python equivalent of idl's journal function?

I am trying to find the equivalent function of idl's journal in python (or ipython). I know ipython has the %logstart function but that only record the input/output in ipython, so if I run my script and it asks me to input values, these don't get…
mjo
  • 133
  • 1
  • 1
  • 7
1
vote
1 answer

IDL cumulative histogram

I have an array of data, and I want to make a cumulative histogram with it in IDL. Is there an input that I can use on a HISTOGRAM, PLOTHIST, PHIST, or HISTO command that will do this for me? If there is, how do I use it? Thank you!
user1558576
  • 149
  • 2
  • 5
1
vote
1 answer

How do I use multiple variables in an IDL plot title?

In IDL I would like to create a title for my plot using variable names and their values computed during the program. For a single variable, TITLE = var_name. How would I list two variable names and their values within the TITLE keyword? Something…
astromonerd
  • 907
  • 1
  • 15
  • 32
1
vote
1 answer

IDL: Automate the changing of variables in a .pro?

I was wondering if there is a way to change the values of variables inside of a compiled IDL .pro file using a bunch of .txt files that contain the values. For example I have 3 .txt files with 2 lines in each file. Lets just call them: 1.…
nori
  • 59
  • 1
  • 2
  • 6
1
vote
2 answers

IDL: read ascii header of binary file

I'm having an enforced introduction to idl trying to debug some old code. I have a binary image file that has an ascii header (It's a THEMIS IR BTR image of Mars, if that is of interest). The code opens the file as unit 1 using OPENR, then reads the…
EddyTheB
  • 3,100
  • 4
  • 23
  • 32
1
vote
1 answer

IDL reading in multiple file

I'm relative new to IDL and I need to achieve the following: Basically all I have to do is to read in different file and create different arrays while reading them. So I was thinking something like: files=dialog_pickfile(/multi, filter=filter,…
user1256539
0
votes
2 answers

Defining an IDL class with an array of unknown size as a member variable

I'm relatively new to IDL, so I'm sure what I want to do is actually quite trivial! I'm creating a class with a few member variables. Two of these will just be floats, but the third I would like to be an 3-dimensional array with unknown size…
tiswas
  • 2,041
  • 7
  • 31
  • 43
0
votes
1 answer

IDL: How to plot simple 2d plot in iplot

Reading from an example (created 2009), I have created a .dat file called temperature_vs_current.dat with 2 columns of data. The example says I should then read the file into IDL via IDL> iplot, temperature_vs_darkcurrent.dat but this returns %…
Tanaerian
0
votes
1 answer

IDL and MatLab getting strange values from NetCDF file

I have a NetCDF file, which contains data representing total precipitation across the globe over several months (so it's stored in a three dimensional array). I first ensured that the data was sensible, and the way it was formed, both in XConv and…
tiswas
  • 2,041
  • 7
  • 31
  • 43
0
votes
1 answer

If condition is met, variable needs to be within a specific range

I am brand new to IDL, and find that the documentation online is lacking in comparison to other languages. This is also my very first post on stackoverflow, so I will do my best to include the proper information necessary to answer my question. I'm…
0
votes
0 answers

Is there an equivalent of the IDL dist() function in Python?

dist(n) generates a (n x n) matrix of elements. Each element is the straight-line "distance" from either element [0, 0] or the element just beyond another corner, whichever is closest. I'm trying to roll the rows and columns to get an array with…
0
votes
0 answers

python equivalent for the IDL expression array > value

What is the most efficient way in python to achieve the same as the following IDL (interactive data language) expression: new_array = array > min_value The result of this IDL expression is an array where each value in the array, which is smaller…
Dunbur
  • 23
  • 5