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
14
votes
13 answers

Interactive Data Language, IDL: Does anybody care?

Anyone use a language called Interactive Data Language, IDL? It is popular with scientists. I think it is a poor language because it is proprietary (every terminal running it has to have an expensive license purchased) and it has minimal support…
Alex
  • 8,521
  • 6
  • 31
  • 33
8
votes
8 answers

Python equivalent of IDL's stop and .reset

I'm relatively new to python but have a bit of experience using IDL. I was wondering if anyone knows if there are equivalent commands in python for IDL's stop and .reset commands. If I'm running some IDL script I wrote that I put a stop command in,…
Jamie
  • 579
  • 1
  • 9
  • 15
8
votes
5 answers

python scipy.stats.powerlaw negative exponent

I want to supply a negative exponent for the scipy.stats.powerlaw routine, e.g. a=-1.5, in order to draw random samples: """ powerlaw.pdf(x, a) = a * x**(a-1) """ from scipy.stats import powerlaw R = powerlaw.rvs(a, size=100) Why is a > 0…
jtlz2
  • 7,700
  • 9
  • 64
  • 114
8
votes
1 answer

Notepad++ IDL Syntax Highlighting?

I was about to create a user-defined language file for Notepad++ to syntax-highlight IDL (Interactive Data Language). But before I went and spent the time creating one, I wanted to check with the "community" to see if anyone else has one that's…
Nate
  • 18,892
  • 27
  • 70
  • 93
7
votes
2 answers

Running IDL program from bash with variables

I've written a program in IDL to generate scatter plots based on command line arguments. I can successfully call the program directly in the terminal like this: idl -e "scatterplot_1_2d_file.pro" $infile $outfile $title $xtitle $ytitle $xmin $xmax…
Frank Harris
  • 305
  • 1
  • 6
  • 16
6
votes
1 answer

IDL: Accessing struct fields using field names stored in variables?

If I have a struct with a fieldname 'fieldname', is it possible to access the data in that field using only the variable? ie. x = 'fieldname' is it possible to do data = struct.(x) in some way? I want to use the string in x as the field name.
Carthage
  • 77
  • 1
  • 6
5
votes
2 answers

define array name within a loop

I may be going about this the wrong way, but I'm trying define and fill arrays within a loop. for i = 0,39 do begin xx = long(findgen(n+1l)*sx + line1x[i]) sz = size(xx) arrayname = 'line' + strtrim(i,2) arrayname = findgen(3,sz[1]) arrayname[0,*]…
Mike
  • 51
  • 1
  • 2
5
votes
1 answer

How can I best optimize a matrix multiply in IDL that uses a diagonally-oriented (not diagonal) matrix

I am looking for most efficient IDL code to replace the IDL matrix multiply (#) operator for a specific, diagonally-oriented (not diagonal, or diagonally-symmetric) matrix with 3 distinct values: unity on the diagonal; unity plus a delta to the…
5
votes
1 answer

Scipy map_coordinates bilinear interpolation compared to interp and IDL interpolate

I'm in the process of rewriting a coworkers IDL code into python and am coming up with some differences that I'm confused about. According to other SO questions and mailing list threads I've found if you use…
4
votes
3 answers

reading a binary file in python

I have to read a binary file in python. This is first written by a Fortran 90 program in this…
Brian
  • 13,996
  • 19
  • 70
  • 94
4
votes
2 answers

IDL: Accessing a structure tag with a variable name

In a previous function, I create and return a hash. Upon doing this, it returns the hash as a structure, and I use this as an input to this following function. myStruct's tags are each a structure, each with a name and dataType tag. I'm trying to…
Lauren R.
  • 41
  • 2
4
votes
2 answers

What is the Python numpy equivalent of the IDL # operator?

I am looking for the Python numpy equivalent of the IDL # operator. Here is what the # operator does: Computes array elements by multiplying the columns of the first array by the rows of the second array. The second array must have the same …
4
votes
2 answers

How to bitshift integer value in c++

I know this is a common problem, and I cannot figure out why I am having so much trouble. I am trying to convert a line from an IDL code to c++ IDL: for i = 0,7 do begin b = ishfy(b,1) print,b endfor My C++ code: for(int i = 0; i <…
user2761933
  • 179
  • 1
  • 4
  • 15
4
votes
1 answer

Difference in FFT between IDL and Python

I'm passing some simple IDL code to Python. However the returned FFT values form the SciPy/NumPy packages is different than the IDL one and I can't find out why. Reducing it all to a simple example of 8 elements I found that the SciPy/NumPy…
fffff
  • 83
  • 9
3
votes
3 answers

Ensuring user inputs only whole numbers when using BMI Analyzer

# This program calculates a person's BMI after # user inputs their height and weight, it then converts # the data from inches to meters and pounds to kilograms. # Based on findings the program displays persons BMI # Display welcome…
1
2 3
21 22