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
2
votes
1 answer

How to improve efficient of curve fitting in image processing with IDL?

It is a remote sensing question. It is too slow to curve fitting for image processing pixel by pixel using looping statement. Is there any method to solve?There is image with 9 bands, ns columns, and nl rows. powerlaw_fit is my function, Y is vector…
2
votes
1 answer

How to set a keyword to write fully to the CSV file

This script is working in so far that the output is correct. However it is not populating the CSV file for me. But only populating the last iteration of the loop. Being new to IDL, I need to grasp this concept of the keyword. I believe I need a…
2
votes
2 answers

Read values from multiple files in IDL

I have several files from which I'm trying to extract variables for brightness temperature, BT. I want to put all the variables into one array. This is what I have and so far. I've opened all the files but I can't figure out how to combine all the…
klex52s
  • 437
  • 1
  • 7
  • 19
2
votes
4 answers

Loop commands equivalent in IDL to python

Just a quick question regarding converting loop commands in IDL to python. I have the following loop structure in IDL syntax: for ... do begin for ... do begin if ... ... endif else begin .... endelse …
user3125347
2
votes
1 answer

Basic plotting in running IDL procedure

I started learning IDL a few hours ago. I have constructed the following procedure in a .pro called 'plots.pro': PRO PLOTS num=findgen(40)*10 line=sin(num*!DtoR) plot, num, line END It seems I should get a plot of the line as a function of num.…
inquiries
  • 385
  • 2
  • 7
  • 20
2
votes
1 answer

IDL function GAUSSFIT.pro error

I'm trying to use the built-in IDL function gaussfit.pro, and every time I try, I get the following error: % Keyword parameters not allowed in call. % Execution halted at: $MAIN$ I'm only trying to get the function to work right now, so I'm just…
2
votes
2 answers

READFITS undefined in IDL

I just started working with IDL for my summer undergraduate lab, so I'm still kinda new to the program. I've been trying to load a FITS file to analyze the data into the program, but for some reason IDL won't recognize the instruction of…
user5099508
2
votes
3 answers

What's the name of this font used in this figure?

I want to use this font in matplotlib plotting, but I can not find out the name. Does anyone know? This figure is got by IDL plotting on Mac OS (10.9) like: filename = 'name.eps' myDevice =…
Eren
  • 159
  • 1
  • 12
2
votes
1 answer

How to declare variables in for loop? (IDL)

For example, My files are naming after 00.dat, 01.dat, 02.dat..., each file contains multiple columns and I use READCOL to read them into variables. for i = 0, n-1 do begin readcol, string(i, F='(I02)')+'.dat', F='D,D', a0, b0 readcol,…
user235048
  • 21
  • 1
  • 3
2
votes
1 answer

Writing to a file in IDL

I am writing to a file in IDL. The file is written to after analysing data from the run of a code. I plan to run the code more than once, and collect the data into the same file after each run. How can I use IDL to do this? I implemented some code,…
stars83clouds
  • 795
  • 1
  • 8
  • 25
2
votes
3 answers

Calling an IDL script in Python

I would like to run an IDL script in a python code, since I need to analyse the results of IDL code later in the python script but I have no idea how it works. I want to call this IDL script for example in a python code: pro plotgaussian, center,…
neuronphysics
  • 21
  • 1
  • 3
2
votes
2 answers

How do I find the lat/long that is x km east/west of a given lat/long?

I have two given lat and lon points. For example, lets assume I have two positions (point_1 and point_2) at coordinates (lat1, lon1) and (lat2, lon2). I would like to calculate a third point, that is on the same latitude as that of point_2, but …
2
votes
2 answers

converting 2 bytes into one 16bit integer in IDL

I have an array of bytes (char1) and I have to go through converting them to specific data types. For example the first two bytes in the array need to be converted to ascii characters so I just cast them using c = string(char1[0]) but for…
user1026561
  • 81
  • 1
  • 3
2
votes
3 answers

idl elseif problems/confusion

I am trying to get a simple elseif statement into IDL and am having a heck of a time with it. The matlab code looks something like this. a = 1 b = 0.5 diff = a-b thres1 = 1 thres2 = -1 if diff < thres1 & diff > thres2 'case 1' elseif diff >…
nori
  • 59
  • 1
  • 2
  • 6
2
votes
2 answers

How does one remove intermediate files in the ENVI 5.0 API?

I have the following problem with the ENVI 5.0 API: I often use ENVI_DOIT batch routines in my scripts to generate intermediate images, leaving them in memory with the /IN_MEMORY switch. When I'm done with them I get rid of them with …
MortCanty
  • 317
  • 1
  • 2
  • 11
1 2
3
21 22