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

checking if a value is greater than another and if not replacing with the smaller value idl to python

Hi so I am working on switching over some code from IDL to python and there's this one function shown here: for i=0l,dim[0]-1 do begin for j=0l,dim[1]-1 do begin y = reform(image[i,j,0:nchannels-1]) > 0 This makes essentially a list…
0
votes
1 answer

IDL compare 1000 tifs from Meteosat and create a new one

I need to compare the bands 2,3,6 and 9 of the Meteosat-8 all 15min. I already did the calculation for the brightness temperature and I managed to read all Tifs into IDL. Now i did some Ratios. Like B6-B4, B9-3... Now I want to create a new Tif,…
bumi
  • 1
  • 1
0
votes
1 answer

IDL syntax error in genrand2d.pro

I'm not very familiar with IDL, but am trying to run a code given to me by a colleague. I'm getting strange syntax errors in the generic code snippet genrand2d.pro (downloaded from here) which is preventing the whole thing from running. It's…
Astrobot
  • 3
  • 1
0
votes
1 answer

Counting islands in a matrix (preferably in IDL)

How can I count the number of values that are contiguous in an matrix? For example, if A= [ 1 0 1 0 0 0 0 \ 1 1 1 0 0 0 1\ 1 1 0 1 1 1 1] is a 7 by 3 matrix then the result should indicate that there are 12 contiguous values that are "1"…
cmicro
  • 3
  • 2
0
votes
1 answer

Get variable value in IDL without using "print," sentence

In IDL console I want another way in order to obtain variable value, for debug purpose. This is how I do now: IDL> cvel=299.792458e6 IDL> print, cvel 2.99792e+008 There is a easy and quick way to obtain cvel value in console? Like for example in…
eduardosufan
  • 1,441
  • 2
  • 23
  • 51
0
votes
2 answers

IDL:How to divide FOR loop in N parts for parallel execution?

I have a time consuming loop of length 300. I would like to execute in parallel. Pseudocode: for t=0, 300 do begin output_data[t] = function(input_data(t)) endfor • The function() for each iteration is completely the same • The input_data(t)) is…
0
votes
1 answer

Syntax error caused by using different version of IDL

I am new in IDL. When I use IDL version 8, my program run successfully. But when I use IDL Version 7.1 I get a syntax error that you can see below. How can I fix this issue? IDL> .com schwmodfirstiter_box.pro str…
Bezi
  • 45
  • 7
0
votes
1 answer

How can I make a “color map” plot in idl?

I would like to be able to make a graph as produced by the code shown below (but using logarithmic axes). I have a 2D matrix containing the data and I know the separation positions between one cell and the other (equispaced if viewed in logarithmic…
AstroCab
  • 11
  • 4
0
votes
3 answers

How do you label output variables in an IDL FOR loop for further processing outside the loop in the same program?

I have a FOR loop like this: FOR k = 1,216 DO atom = G[*,0:*:(215+k)] END What I would like to be able to do is to store in memory the array for each atom, say, atom_k and then call these different variables to perform further operations outside…
0
votes
1 answer

Using IDL in the command line on mac

I am trying to run a simple IDL program from this website: https://www.colorado.edu/physics/phys4810/phys4810_sp08/tutorial.htm here is the code: PRO example a=5 ;sets a to 5 b=13.5 ;and b to 13.5 c=a+b …
Mathew
  • 1,116
  • 5
  • 27
  • 59
0
votes
0 answers

Windows 7 set environment variable using Cygwin

I'm trying to use Cygwin to run some astrophysics code called FAST through a program called IDL. In order to do this, I need to set environment variables for the installation path of IDL and the directory of IDL. When I go to the system variables…
0
votes
2 answers

Open CSV files from a directory with IDL

I am trying to open with a for loop 25 csv file one after the other in IDL I have the following code:- The_file_list=FILE_SEARCH('D:/MapsCharts/PairedStations/','*.csv',/FOLD_CASE) FOR Filein = 0, N_ElEMENTS (The_file_list)-1 DO BEGIN Print,…
0
votes
1 answer

Exception in thread "IDL" java.lang.UnsatisfiedLinkError: no idl_ips in java.library.path

I'm trying to run IDL on linux, but the result is Exception in thread "IDL" java.lang.UnsatisfiedLinkError: no idl_ips in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) at…
0
votes
4 answers

IDL variable name based on input file name

I'm trying to load multiple images and want to automate the variable naming to make the variable name = the file input name. For example: image1=read_binary('image1.img',DATA_START=0,DATA_TYPE=1,DATA_DIMS=[450, 750,3], ENDIAN=native) Just…
wilfred202
  • 31
  • 1
  • 2
0
votes
1 answer

IDL: How do I loop through all possible values of shift without using a loop?

I have a 3 dimensional array which I am seeking to shift, multiply (element wise) with the un-shifted array, and sum all the products. For a given set of the three integers defining the shift (i,j,k) the sum corresponding to this triple will be…