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 do I delete an image from an image sequence in the IDL?

I have an image array with dimensions [491,710,710]. For example. I want to delete the 25th and 30th images from this image. How can I do that ? restore, 'C:\Users\User1\Desktop\TEZ\SUNSPOT_3_Crop\norm_Leke3.sav' dim = SIZE(im8) nfls =…
0
votes
2 answers

How to write more than 7 columns into a csv file by IDL?

I have been tried to write 8 columns in a CSV file by using IDL, but seems the maximum columns that I can wrote is 7? IDL> write_csv,ffout,date_time,tmin_tmax,precp,wind,rh,sun_hrs,glb_rad,net_rad WRITE_CSV: Incorrect number of arguments
Hui
  • 1
  • 1
0
votes
1 answer

Axis scaling is overridden in IDL

The scaling for axes X,Y and Z that I specify in the procedure scale3 is overridden. I don't understand why? Could someone point out what is wrong with my code? The width of a box is n1/2-1(~128 points) and it is more than the height(98 points).…
0
votes
2 answers

My IDL loop only saves the last iteration - how can I fix it?

I am trying to write a loop to process daily data for a whole month. My code works when manually doing 1 day at a time, but something about my loop is failing when i try to loop through every day of the month. Basically I'm looping through n = 1,30…
SofCh
  • 19
  • 2
0
votes
1 answer

Looping through files in an array and executing a command in IDL

I have an array with several files in it. And i want to loop through these files. For each file i want to run a command. result = [rtlvis_20190518_13.35.48_00001.bin, rtlvis_20190518_13.35.48_00002.bin, rtlvis_20190518_13.35.48_00003.bin,…
ColleenB
  • 135
  • 5
  • 19
0
votes
0 answers

How do i pass a variable from python to IDL using pidly

I am using pidly, and i would like to transfer a variable from python into IDL import pidly traj = 'test.traj' idl = pidly.IDL() idl('trajfile = "{0}".format(traj)') I just want to be able to use the variable that i have in python in an IDL…
ColleenB
  • 135
  • 5
  • 19
0
votes
1 answer

How to add elements to an array in IDL that I can use to plot?

I am writing this in IDL. I want to pass a list of numbers in array x that goes through function y, where then all y values go into an array z, that will be plotted x vs. z. I have tried to solve this numerous ways. Initially, I was using lists,…
Nicole I.
  • 87
  • 1
  • 3
  • 10
0
votes
2 answers

Converting the simple IDL argument code to python code

Simply I want to translate the IDL code to python code. This is an easy task for any IDL and Python Expert. But it is not possible for me, if anybody helps me to translate this code then I will thankful to him/her. RelA = ABS((image1 ) -…
0
votes
1 answer

Including fftw in an idl call_external c++ shared library

I am making a c++ shared library to include in an IDL program on linux. I'm using call_external and that is all working fine. However I am used to dynamically linking fftw in the code I wish to include in the library. The code compiles into a…
0
votes
1 answer

Error when using acre.pro routine: "Programs can't be compiled from single statement mode"

I am trying to use acre.pro routine. It is a cosmic ray extraction program used to identify and remove cosmic ray strikes from an image. Here is an excerpt from the documentation of the routine (https://www.boulder.swri.edu/~buie/idl/pro/acre.html)…
Bereket
  • 55
  • 8
0
votes
1 answer

When and how to do zero-padding for a discrete convolution?

I want to take the discrete convolution of two 1-D vectors. The vectors correspond to intensity data as a function of frequency. My goal is to take the convolution of one intensity vector B with itself and then take the convolution of the result…
idladle
  • 43
  • 4
0
votes
2 answers

Multi-line IDL command from a shell script

I'm wondering how to call a multi-line IDL command from a shell script. For example, to call a one-line command idl_dummy.pro I can do: idl -e "idl_dummy" I have a set of codes that take more than one line to execute in IDL. Within IDL I need to…
0
votes
1 answer

How to write units raised to some number in titles of axes in an IDL plot window?

The titles of axes in a plot usually consists of units of some physical parameter. How do we represent such a unit, especially when it contains some letter raised to the power some number? For example, if the x-axis represents velocity, how can we…
SKR
  • 3
  • 3
0
votes
1 answer

Writing fits files in IDL

I am using IDL version 5.5 and trying to write some output to a FITS formatted file. However, I keep getting % Variable is undefined: TEN. and % Attempt to call undefined procedure/function: 'FITS_WRITE'. Is it just the case that IDL 5.5 is not…
stars83clouds
  • 795
  • 1
  • 8
  • 25
0
votes
1 answer

How to find source of arithmetic error in IDL program?

I am debugging an existing program which appears to fail due to various arithmetic errors. Program caused arithmetic error: Floating divide by 0 Is there a way to find out what part of the program is producing these errors? Or make the IDL…
NotAGenie
  • 474
  • 5
  • 18