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

scipy curve_fit fails when fitting to curve with large values

I am trying to fit some horizontal wind data to a cosine curve in order to estimate the direction and speed of winds at various heights (Velocity Azimuth Display), however it appears that whenever I attempt to do so with values > ~1, the curve…
3
votes
1 answer

How to access data in this 'rec.array' from IDL?

I read a *.sav file saved by IDL with 'readsav' (from scipy.io.idl import readsav). The original *.sav file is a structure (size 170 Mb). from scipy.io.idl import readsav sorce = readsav('sorce.sav') In [60]: sorce Out[60]: {'sorce': rec.array([…
Eren
  • 159
  • 1
  • 12
3
votes
1 answer

How to read fortran 77 unformatted binary file into python

I have a script in IDL which reads an unformatted binary file (F77) and outputs it as a .sav file but I want to convert this script to python and save as an .npz file and I am having trouble on the read line. IDL Code: ;create save file for QBO…
CRogers
  • 305
  • 6
  • 15
3
votes
3 answers

Adding names and assigning data types to ASCII data

My professor uses IDL and sent me a file of ASCII data that I need to eventually be able to read and manipulate. He used the following command to read the data: readcol, 'sn-full.txt',…
user2909019
  • 833
  • 1
  • 10
  • 19
3
votes
1 answer

IDL interpol equivalent for python

What would be a python equivalent for the INTERPOL function as seen in the following IDL code: x = interpol(a,b,c) Thank You
3
votes
3 answers

User-specified function in mpfit

I have been an IDL programmer for sometime now and looking to transition to Python. I find that MPFIT's IDL version exists in Python. However, I am looking for MPFITFUN version in Python (http://www.physics.wisc.edu/~craigm/idl/down/mpfitfun.pro) or…
Rohit
  • 5,840
  • 13
  • 42
  • 65
3
votes
1 answer

IDL's INT_TABULATE - SciPy equivalent?

I am working on moving some code from IDL into python. One IDL call is to INT_TABULATE which performs integration on a fixed range. The INT_TABULATED function integrates a tabulated set of data { xi , fi } on the closed interval [MIN(x) , MAX(x)],…
Jzl5325
  • 3,898
  • 8
  • 42
  • 62
3
votes
1 answer

Solve Singular Value Decomposition (SVD) in Python

I amtrying to translate an IDL program to Python. I have to solve the outcome from SVD which I achieve in the following way from scipy.linalg import svd A = [[1,2,3],[4,5,6]] b = [4,4,5] u,w,v = svd(A) And this works fine and is translated nicely…
2
votes
2 answers

Using the spawn command inside of IDL

I'm very new to IDL (trying to do a POC for someone using it) and I am trying to run an external command. The line of code I have added is this: spawn, 'C:\Program Files\ITT\IDL\IDL80\products\envi48\save_add\visual.exe' I thought this was all…
Brett McCann
  • 2,469
  • 2
  • 27
  • 44
2
votes
1 answer

Plotting with scientific notation in IDL

I would like to know if it is possible ( and how to ) plot numbers in scientific notation (e.g. 4e2 instead of 400) while plotting diagrams with IDL's plot package.
camelian77
  • 21
  • 1
  • 2
2
votes
1 answer

Reading unformatted data into 4D array in Matlab (vs IDL)

I have a .img file of unformatted (I think binary) data that I want to read as floats into a 4D array in Matlab. I noticed that the 'fread' function in Matlab used to read binary data can only read into 1D or 2D arrays automatically, so I tried…
Marvin
  • 51
  • 7
2
votes
1 answer

Symbols not displaying correctly when saved to postscript

I am having difficulties getting text to display correctly from an IDL plot once I save to postscript. Code is something like, p1=plot([0,1],[4,5],thick=2,line=0) p1.xtitle='Time' p1.font_name='Times' p1.font_size=16 p1.ytitle='!9+string(225b)+'…
CoryD
  • 21
  • 1
2
votes
2 answers

How to generate the lineared color plot (cplot) with z values in colorbar

In MATLAB™ one can use cplot.m which can generate colored plot basically looks like 2d plot with 3rd axis (z-axis) value as colorbar. Is there any tool/plotting technique I can use to generate a similar plot in Python or IDL Programming Language?.…
Pavan
  • 31
  • 8
2
votes
0 answers

How to Overplot Contour data on World Map in IDL?

I am trying to take data that is tied to latitude and longitude, and plot it over a world map in IDL. (The calculation code I have inherited is in IDL, and I must call it a bunch of times, which is why I want to figure out how to do it in there,…
2
votes
1 answer

Trying to implement IDL broyden function in Python using broyden1, but the answers I am getting aren't correct

I have converted following code from IDL and I replaced Broyden function of IDL by broyden1 function of python, are both similar ? import numpy as np import spiceypy as spice import pandas as pd import scipy as sp import math as mt from…
1
2
3
21 22