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

How to translate IDL's SPLINE function to Python [particularly for the case we have 3 data points]

The SPLINE function in IDL allows for cubic interpolation on data (with at at least 3 data points). While the Scipy library in Python can perfomr similar computations with the UnivariateSpline and the splrep functions, these break if the…
Swike
  • 171
  • 8
0
votes
1 answer

Problem with file_lines() function?

I am having issues with the file_lines() function in IDL. I have a ASCII data file which has 27000 lines as I have verified within an emacs buffer and using the command grep -c "."; however, file_lines() returns a value of 81807 lines. The…
astrok
  • 198
  • 1
  • 8
0
votes
1 answer

Plotting in degrees instead of radians

I have plotted a graph that contains a trig function. Instead of having the x-axis be in radians, I would like it to be in degrees. It's a simple task of multiplying the displayed x-axis values by 180/!pi but I can't figure out how to do it. Let's…
Bereket
  • 55
  • 8
0
votes
1 answer

Convert hex string to float

I am trying to read from a file a bunch of hex numbers. lines ='4005297103CE40C040059B532A7472C440061509BB9597D7400696DBCF1E35CC4007206BB5B0A67B4007AF4B08111B87400840D4766460524008D47E0FFB4ABA400969A572EBAFE7400A0107CCFDF50E' dummy =…
bruvio
  • 853
  • 1
  • 9
  • 30
0
votes
1 answer

how to assign multiple titles on a number of plots in IDL programming language

I have to assign 24 titles on 24 graphs with different values and values has a specific interval, how can I create these titles while creating multiple graphs with multiple-valued titles and how to save automatilcally these 24 graphs with different…
0
votes
1 answer

How to add a vertical line to a line plot in IDL?

I have a plot that I have created as such using a vector c hist_c=histogram(c,binsize=0.002,locations=locs_c,min=0.000,max=1.000) pdf_c=float(hist_c)/n_elements(c) ppdf_c=plot(locs_c,pdf_c,xtitle='c',ytitle='freq') I would like to add the vertical…
Bereket
  • 55
  • 8
0
votes
1 answer

how to convert multidimensional array to string in idl

I have an array of floats or doubles lets call it foo. When I do size(foo) I get these 5 dimensions 2 67 52100 4 3498338 I would like to convert it to a string like str="strcture={arr:"+foo+"}" so that I can then…
user2175783
  • 1,291
  • 1
  • 12
  • 28
0
votes
1 answer

How to draw Probability Density Function using line plots in IDL?

I have a vector containing values and I would like to draw a probability density function (PDF) graph for the values contained. Let's say I have a vector given by b=[1,1,3,4,5,2,3,5,1,4,2,4,1,1,4,2,3,5]. I can draw a histogram as…
0
votes
1 answer

Basic data types not recognized in IDL v.8.7.2

My IDL installation (currently v.8.7.2, but the same problem occurred in v.8.5) does not recognize hash, list, dictionary and orderedhash. For example, typing h = HASH('Id', 1234) results in the error "Variable is undefined: HASH.". I am at my wits…
AlinaZ
  • 71
  • 1
  • 7
0
votes
0 answers

How do I check the version of IDL I am using?

Background According to L3Harris, to check the version of IDL you are using, you have to check the /usr/local/ directory as follows: Linux, Solaris, Mac OS X On Linux, Solaris and Mac, you can determine the base product version installed through…
isakbob
  • 1,439
  • 2
  • 17
  • 39
0
votes
0 answers

How to define a subarray efficiently?

I am getting the error Unable to allocate memory: to make array when I try the following: ; A is an array ind = WHERE(A GE 1) A = A[ind] Was wondering what I can do to free up memory? I tried A = temporary(A)[ind] but that gives me a syntax…
laserfart
  • 11
  • 3
0
votes
1 answer

IDL two step graph

I'm struggling with setting a y(x) condition that varies with x range. As an example below, the code wants to plot y=x between x=0 and x=5.1; otherwise y=2x. Upon compilation, the code spits out the following: Expression must be a scalar or 1…
0
votes
1 answer

How to put a byte string into a float in IDL

I am new to the programming language IDL (Interactive Data Language) and am learning to code in it. I'd like to know how to put a byte string into a float in IDL without saving it to a file. Any help would be welcome.
0
votes
0 answers

Is there a Python alternative to IDL's array_indices() function?

I am working on a port of some IDL code to Python (3.7). I have a translation working which uses whatever direct Python alternatives are available, and supplementing what I can with idlwrap. In an effort to eliminate legacy IDL functions from the…
0
votes
2 answers

find in range of a IDL array?

I am trying to find all indices in an array A, where the value larger than time0 and less than time1. In matlab I can do: [M,F] = mode( A((A>=time0) & (A<=time1)) ) %//only interested in range I have something similar in IDL but really…
colddie
  • 1,029
  • 1
  • 15
  • 28