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

K-mean Clustering in IDL

I am an IDL beginner and I was wondering if I could get some help on clustering in IDL. I found a good example on Harris Geospatial that explains the method, however, I am confused on how to run the clustering on my own data (ASCII) to perform the…
Dan
  • 11
  • 3
0
votes
1 answer

Is IDL 8.5 able to read tables with strings, dates and values in it?

I am very new in the IDL scene and I am struggling for hours with a problem and I hope you can help me: So right now I am trying to read data from a table ("file.txt"). I would like, that every column is saved in a variable (I thought about using…
TheHeroOfTime
  • 751
  • 4
  • 9
  • 23
0
votes
1 answer

Reading and Writing Arrays from Multiple HDF Files in IDL

I am fairly new to IDL, and I am trying to write a code that will take a MODIS HDF file (level three data MOD14A1 and MYD14A1 to be specific), read the array, and then write the data from the array preferably to a csv file, but ASCII would work,…
wbeck
  • 1
  • 2
0
votes
1 answer

Reading an array from .dat style file in idl

I have a series of arrays stored within files, which I read in IDL via: openr,1,file.100 a=assoc(1,fltarr(nptx,npty,nptz)) variable=a(0) close,1 While this works fine if I know the array size (nptx, npty, nptz), I do not know how to get the…
0
votes
1 answer

IDL RDFLOAT Undefined

I am a beginner in IDL. I am trying to use RDFLOAT in the following format in a terminal: rdfloat,'filename.dat',d,sf,wts this is the error I get, % Attempt to call undefined procedure/function: 'RDFLOAT'. % Execution halted at: $MAIN$ Kindly help…
0
votes
2 answers

IDL compilation doesnt return failure status

I dont have much experience with IDL but i need to fix a bug where in the compilation failure status needs to be returned to the calling script. cat << ENDCAT > something.pro PRINT, "Start" PRINT, "Compiling functions needing early…
Onkar
  • 25
  • 6
0
votes
1 answer

IDL-Python bridge fails due to SIP on OSX El Capitan

I'm attempting to utilize the new IDL-Python bridge in IDL 8.5.1 on OSX El Capitan 10.11.5. I have used this feature on Windows since it was launched, which works beautifully, but it simply doesn't work on OSX. I have installed Anaconda Python…
spacemanjosh
  • 641
  • 1
  • 5
  • 14
0
votes
1 answer

Syntax error on FOREACH ... ENDFOREACH loop

I've got what seems like a simple FOREACH loop in IDL (version 8.2.2). For the life of me I can't see why I'm getting a syntax error. I tried replacing the FOREACH with a simple FOR loop with the same results. Removing the for loop and running the…
David Parks
  • 30,789
  • 47
  • 185
  • 328
0
votes
2 answers

Append new variables to IDL for loop array

If I have the following array: x = double([1, 1, 1, 10, 1, 1, 50, 1, 1, 1 ]) I want to do the following: Group the array into groups of 5 which will each be evaluated separately. Identify the MAX value each of the groups of the array Remove…
jenn
  • 11
  • 1
  • 5
0
votes
2 answers

Runnning an IDL code with text file output in Python

I have a number of different codes which all take a text file with data as input and write to a different one as output. Three of these codes are written in Python 2.7, but one is written in IDL. My goal is to create one "master" python program…
TheBoro
  • 223
  • 1
  • 2
  • 11
0
votes
2 answers

In IDL, how can I access a variable given its name?

I would like to convert a string to a variablename, so it can be read as a already restored variable. So, I look through a file, and look at all the files. I use RESTORE to use the file in IDL, restore names this object as something slightly…
Tomi
  • 179
  • 1
  • 13
0
votes
1 answer

idl radius of each pixel

I'm completely new to coding and have almost no idea what I'm doing. Currently I'm trying to find the radius of each pixel from the center of a galaxy in a fits file. I was told to try this by creating a blank array the same size as the fits file…
LexieStark
  • 11
  • 3
0
votes
1 answer

IDL Integration

I'm looking to integrate a function I am building, but the function would change each iteration based on a given input. For instance: y=4e^(mx/4) I would want to integrate with respect to x with a lower and upper bound, but the value of m…
Cam
  • 93
  • 1
  • 5
0
votes
1 answer

Skip first row of data in IDL

I have a dataset that looks like this 0.000000 0.000000 1123.65 9.86156 1123.91 11.6620 1124.17 11.0899 1124.43 12.7743 1124.69 13.1157 1124.94 12.4047 1125.20 14.4865 1125.46 9.71926 1125.72 …
0
votes
1 answer

Pass Array to Subroutine IDL

I have a very long lookup table (~40,000 lines) that I am using for my code. Currently, I have it set to grab 4 arrays from my lookup table in the subroutine that uses it, but I call that subroutine ~3,000 times. I would rather not waste processing…