IDL programming language Guide, Meaning , Facts, Information and Description
IDL, short for interactive data language, is a programming language which has been a popular choice for data analysis among scientists in the past 15 years.Created by Research Systems, Inc (RSI), IDL's market share has been recently decreasing considerably.
| Table of contents |
|
2 Features 3 Problems 4 Examples 5 See also 6 External link |
Overview
IDL is vectorized, numerical, interactive, Fortran-like, and is commonly used for interactive processing of large amounts of data (including image processing), right from the keyboard.
IDL originated from early VAX/VMS/Fortran, and its syntax still shows its heritage:
x = findgen(100)/10 y = sin(x)/x plot,x,yNote that the operation in the second line applies in a vectorized manner to the whole 100-element array created in the first line, analogous to the way general-purpose array programming languages (such as APL or J) would do it.
As most other array programming languages, IDL is very fast doing vector operations (sometimes faster than the equivalent fortran or C) but quite slow if elements need processing one-by-one. Hence part of the art of using IDL (or any other array programming language, for that matter) for numerically heavy computations is to make use of the inbuilt vector operations.
Features
As a computer language, IDL:
Problems
Some of these features, which make IDL very simple to use interactively, also cause difficulties when building large programs. The single namespace is particularly problematic in those cases.
IDL also lacks empty arrays, variable-sized dynamic arrays (Lists), and nested arrays (that is, arrays of arrays are not permitted).
The object-oriented features of the language require that the programmer be responsible for managing memory allocation/deallocation.
The following graphics were created with IDL (source code included):
Examples
See also
IDL is often confused, at the acronym level, with another (unrelated) "IDL": the Interface description language.
