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

Mean of an array excluding certain columns IDL

Hi I'm trying to write simple for loop with if loop to only calculate the mean of an array column wise (so i end up with just one row array as a mean), except column number 1051 and 1552. Here the input array has 2151 columns and 12 rows. The result…
0
votes
1 answer

IDL: reading multiple DICOM images save them in .dat file

I'm writing a program in IDL to read DICOM images, then store them in a big matrix and finally save them in .dat file. The DICOMs are under the name IM0,IM1,IM2,..IM21777. I wrote the code below but I am getting an error. I am using IDL version 6.4.…
user161260
  • 121
  • 2
0
votes
1 answer

IDL Function Is Reluctant To Define

Happy Monday Everyone! So. I'm really, really new to IDL. I need to translate a program I have written in Python to IDL, and I can barely get it started. I am trying to define a function, but I am given the following error each time I try to compile…
Fishbones78
  • 61
  • 11
0
votes
1 answer

How to access IDL system variables that starts with '!' with IDL-Python bridge?

I am trying to use IDL-Python bridge to call IDL (Interactive Data Language) procedures from Python. Could anybody tell how to access IDL system variables that starts with '!' from Python? For example, a call in Python from idlpy import * d2r =…
0
votes
1 answer

How do I create a space in a print statement?

I have some code that was previously working when I ran IDL on my Linux box. I'm not sure why the format has changed when I run IDL on my Windows box. Specifically, it seems as if the problem is that a print statement is not creating a space…
0
votes
1 answer

How to export complex array from python to tiff file for IDL

I have a complex 2D numpy array and I would like to save it as a tiff file to import it into IDL. What would be the best way to do this? Thanks!
torpedo
  • 283
  • 2
  • 15
0
votes
0 answers

Incorrect number of arguments in IDL procedure

There is a short script that computes a histogram of the input data. data, dmin, dmax, bin are inputs and defined before calling the script; h, x, xmean are outputs. I checked that histo.pro is in the right location.. Calling the script causes error…
0
votes
1 answer

how to add '%' and '+' symbol on an IDL plot?

I am trying to plot the following graph on IDL PRO HMMM a = '+' b = '-' c = '%' x = [b+'20'+c, b+'10'+c, '0', a+'10'+c, a+'20'+c] y = [1.2, 3.2, 4.5, 5.1, 6] plot, x, y END The graph is produced but the '%' and '+' disappear. What is the…
0
votes
1 answer

Calculate a specified period time in idl

I have light curve data consist of time (t) and flux (f) (4067 rows x 2 columns) nx=4067 t=fltarr(nx) f=fltarr(nx) data=read_table('kplr4830001.dat') ;print,data(0,*) ;this is t ;print,data(1,*) ;this is…
A.KT
  • 11
  • 4
0
votes
1 answer

Making array matrix with minimal code in IDL

I am new to IDL. I want to minimize code. I am writing this for x=0,(pixel-1) do begin for y=0,(pixel-1) do begin for z=0,(pixel-1) do begin …
Kartik Chhajed
  • 183
  • 2
  • 10
0
votes
1 answer

Python equivalent to IDL median() and rot()

I'm working with fits images and trying to translate IDL code to python but I'm having trouble understanding how to translate the IDL median() and rot() functions. I have an array im_darksub that is (ny, nx, n_im) where nx,ny is the shape of each…
Courtney
  • 15
  • 4
0
votes
1 answer

Erroneous spaces when concatenating string and integer in IDL

Inputting the following four lines into the IDL console gives the output below. IDL> num=123 IDL> str="bananas" IDL> join=str+string(num) IDL> print,join bananas 123 Why are 5 spaces appearing in the string and how can I stop it happening?
airdas
  • 872
  • 2
  • 11
  • 19
0
votes
1 answer

What is the equivalent IDL rebin and congrid function in matlab?

I am trying to rebin a matrix to a larger size in matlab. In IDL you can always use rebin(matrix,dimension) to generate the new matrix. Is there any equivalent function in matlab, or do I have to manipulate the interp() function in matlab? Thanks
colddie
  • 1,029
  • 1
  • 15
  • 28
0
votes
1 answer

skip missing values in a for loop

I have a folder with 1000 tifs. I'd like to read 4 tifs, do some calculation and read the next 4 tifs. The problem is, that for example tif number 500 is missing. Now my current program stops right bevor tif number 500. So my idea is that I check if…
pampi
  • 37
  • 6
0
votes
1 answer

Area under the curve using idl

I have a curve between dff(x axis) and dc(y axis) and I calculated the area under the curve using IN_TABULATED…
A.KT
  • 11
  • 4