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

Create a code to calculate NDVI in IDL

I am super new to IDL, level 0. I was wondering if anyone can help me calculate NDVI for BIL or BIP file. I have one file. I understand the concept of NDVI, the inverse relationship between NIR and R. I am just not sure how to put that in a code.…
Chyrel
  • 1
  • 1
0
votes
1 answer

Why is IDL adding it's own tick marks to my custom plot tick marks?

I'm trying to specify custom Y axis tick marks, but IDL is not cooperating. In the top left, 1.0000 should be the max value, but IDL puts a 57 there. 57 is the max array dimension of my data. I have an array of eta levels(strings) corresponding…
Carthage
  • 87
  • 1
  • 7
0
votes
1 answer

how can I compute a POLY_FIT with some known coefficient?

let's take this example: we use X and Y data corresponding to the known polynomial f (x) = 0.25 - x + x2. Using POLY_FIT to compute a second degree polynomial fit returns the exact coefficients (to within machine accuracy). ; Define an 11-element…
The Unholy Metal Machine
  • 1,093
  • 2
  • 17
  • 36
0
votes
1 answer

How to use IDL's min() function's min_subscript argument in for loop?

I have experience in python but am new to IDL. I am trying to write a function that will return two bins. I want to use the min function to get my bin edges. My issue is that I am trying to use the min_subscript argument to denote each bin edge, and…
Help
  • 3
  • 1
0
votes
2 answers

Axes on image in IDL

I have an image displayed in an IDL window using the TV command, and would like to add x and y axes to the image. Seems straightforward, but I can't find a way to do it. Can anyone help with this? Thanks
0
votes
1 answer

IDL batch processing: fully automatic input selection

I need to process MODIS ocean level 2 data and I obtained an external plugin for ENVI https://github.com/dawhite/EPOC/releases. Now, I want to batch process hundreds of images for which I modified the code like the following code. The code is…
0
votes
1 answer

Can IDL create a contour plot colorbar like this?

At the bottom of this image, you'll see a nice colorbar that matches the colors of the graph correctly: http://stribog.cc.umanitoba.ca/ceos/20100517_00z_prod/ I couldn't find anything that created a color bar with exactly the colors I wanted, it…
Carthage
  • 77
  • 1
  • 6
0
votes
1 answer

Can IDL evaluate strings as code?

Is there any functionality in IDL that will allow it to evaluate a a string as code? Or, failing that, is there a nice, dynamic way of including /KEYWORD in functions? For example, if I wanted to ask them for what type of map projection the user…
Carthage
  • 77
  • 1
  • 6
0
votes
2 answers

Plotting time series of image slices

I have a dataset of 2D greyscale images (50 x 50 pixels) taken over a time period. As a means of analysing these images I want to take a slice - the central column of pixels from each image - and 'plot' these as a time series. So that I end up with…
0
votes
1 answer

Reading multiple images in IDL

I am writing a program in IDL that requires reading n images (each of m pixels) from a directory, convert them to grayscale, concatenate each image as a single vector, and then form a an m * n matrix from the data. So far I have managed to read and…
0
votes
2 answers

idl: pass keyword dynamically to isa function to test structure read by read_csv

I am using IDL 8.4. I want to use isa() function to determine input type read by read_csv(). I want to use /number, /integer, /float and /string as some field I want to make sure float, other to be integer and other I don't care. I can do like…
yosukesabai
  • 6,184
  • 4
  • 30
  • 42
0
votes
1 answer

IDL command array_indices.pro

I 'm new to IDL and using IDL in command-line. When I want to invoke the function array_indices(), the error comes as: >% Attempt to call undefined procedure/function: 'ARRAY_INDICES'. >% Execution halted at: $MAIN$ But I have checked, under my…
Schawn
  • 57
  • 1
  • 9
0
votes
3 answers

How to correctly implement error handling?

I am calling a function fit_circle that may or may not call the MESSAGE procedure. fit_circle calls a function poly_fit that may call the MESSAGE procedure, but also occasionaly produces a math error (there is nothing I can do about this). Is it…
diestl
  • 2,020
  • 4
  • 23
  • 37
0
votes
1 answer

Using IDL on Windows command line

I am trying to start an IDL programme from the Windows command line. Lets say I have the following programme: PRO hello print, "Hello, I am a IDL script!" a=bytarr(100,200) outname='g:\testimage.tif' WRITE_TIFF, outname, a END I want…
KingLui81
  • 53
  • 1
  • 7
0
votes
1 answer

How can one give command line arguments to variables in a separate procedure using object references?

IDL beginner here! Let's say I have two procedures, PRO1 and PRO2. If I receive a command line argument in PRO2, how can I give the argument value to a variable in PRO1? I have previously tried to make an object reference ,'My', to PRO1, but I…
user49193
  • 3
  • 5