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

What's the most basic way to format a 2D matrix of doubles in binary for reading into IDL?

So I have an i by j matrix of doubles in C++ that I want to read into an IDL program. Lets say that the matrix is called data, with size ROWS by COLS, and name string saved to filename. And I just write the values out in a stream to a binary…
Jeremy Gamet
  • 165
  • 7
1
vote
1 answer

Turning thousands of elements from a light curve disk into an array

I am a bit new to this, and have been assigned something quite simple. However, I can't seem to get the job done. I'm working on light curves for a research product and the data has up to 10,000 elements (sometimes more). My professor asked me to…
s.amir
  • 9
  • 2
1
vote
1 answer

Create Empty Array to put new values into IDL

If I have a pre-existing array, X, and I want to extract values from X and put them into a new array, new_x, how do I do that? I understand that I can take parts of the arrays using range functions, but I am extracting data from X using conditions…
jenn
  • 11
  • 1
  • 5
1
vote
0 answers

Large Covariance Matrix

How do I calculate a reliable covariance matrix from a 256x520x218 hyperspectral image? The image has 218 spectral channels so each single band image is 256x520. I'm interested in calculating covariance over each pixel not each band.
cypher
  • 13
  • 1
  • 3
1
vote
1 answer

Incorrect number of articles in IDL

this is my Headline in a IDL-source code: pro gamow,t_plasma,z1=z1,z2=z2,a1=a1,a2=a2 ; displays gamow peak for input value of t (in K) ; default values for protons if not keyword_set(z1) then z1=1. if not keyword_set(z2) then z2=1. if not…
ollowain86
  • 19
  • 4
1
vote
1 answer

How to make the headers of two fits files the same in IDL?

I have to make the header of a fits file called 'exponential.fits' the same as the header of 'empirical.fits'. Is there any way to do it with writefits.pro?
Rian
  • 111
  • 5
1
vote
1 answer

Using astropy.fits and numpy to apply coincidence corrections to SWIFT fits image

This question may be a little specialist, but hopefully someone might be able to help. I normally use IDL, but for developing a pipeline I'm looking to use python to improve running times. My fits file handling setup is as follows: import numpy as…
GCien
  • 2,221
  • 6
  • 30
  • 56
1
vote
0 answers

Interactive Data Language - Heap Buffer Overflow

I am trying to get IDL command line (v8.3) to work on OSX (El Capitan). While the installation was successful, I get the following error every time I start the idl command line: ==1361==ERROR: AddressSanitizer: heap-buffer-overflow on address…
1
vote
1 answer

Defining a function from IDL in Python

I am trying to copy an extensive code from IDL into Python. One issue I believe I am having is with the definition of the function gridgen. Gridgen is a function used to generate a vertical grid with equal log-spaced grid points, where: zmin =…
Rebecca M.
  • 35
  • 1
  • 6
1
vote
0 answers

Bad fit using astropy.modeling compared to MPFIT in IDL

I'm trying to reproduce something in python that works correctly in IDL. (This is part of a larger program, so just using IDL is not an option.) What I'm trying to do is fit a spectrum which has not been wavelength-calibrated, to another which…
1
vote
1 answer

String recognition in idl

I have the following strings: F:\Sheyenne\ROI\SWIR32_subset\SWIR32_2005210_East_A.dat F:\Sheyenne\ROI\SWIR32_subset\SWIR32_2005210_Froemke-Hoy.dat and from each I want to extract the three variables, 1. SWIR32 2. the date and 3. the text following…
Stefano Potter
  • 3,467
  • 10
  • 45
  • 82
1
vote
2 answers

Data mean by intervals in IDL

I did the following script to integrate (average) data by intervals in python: # N = points to mean in the array # data = original data # data_mean = average data each N points data_mean = np.array([np.mean(i) for i in np.array_split(data,…
nandhos
  • 681
  • 2
  • 16
  • 31
1
vote
1 answer

How to use IDL visualization routines in Python

I have a number of IDL visualization routines which I would prefer to be using in Python. These IDL visualization facilities provided a point-and-click interface with the cursor to see values and positions of pixels. Is there a Python equivalent to…
ShanZhengYang
  • 16,511
  • 49
  • 132
  • 234
1
vote
2 answers

Difficulty making Healpix compatible with GDL

PROBLEM: I am having difficulty running Healpix-IDL routines with GDL with the current version of Healpix, Healpix_3.20. The easiest thing to do would be to follow user gilo in this…
EB2127
  • 1,788
  • 3
  • 22
  • 43
1
vote
1 answer

IDL: Can I get the coordinates of a point on my plot's cartesian plane?

I have a plot like this: https://i.stack.imgur.com/zdike.png I need the data coordinates of points in order to plot wind barbs. Now, if I wanted a wind barb to be drawn at x=100, y=20, is there a way I can obtain the data coordinates of that ( or…
Carthage
  • 87
  • 1
  • 7