Overview of IDL Program Types
In addition to being a useful interactive data analysis tool, IDL is a powerful programming language. Many of IDL's programming language features and constructs can be used either interactively at the IDL command line or as part of a larger program — which can itself be invoked at the IDL command line or by other programs. A program may or may not be compiled before execution. The type of programs you use in IDL will depend upon your tasks.
|
Program Type
|
Description
|
|---|---|
|
iTools State File ( |
Restore or share an iTools session — you can save the current state of an iTool as an iTools State (*. |
| $MAIN$ Program |
Repeat a series of command line statements or interactively change variable values in a program file. These short programs or procedures are called $MAIN$ (main-level) programs. They are not explicitly named, and cannot be called from other programs. See Creating $MAIN$ Programs for details. |
|
Named Program File ( |
Create programs and applications — you can create programs for data analysis or visualization using one or more named program files (*.pro). Program files are created in the IDL Editor or a text editor of your choice. See About Named Programs. |
| Batch File |
Automate processing tasks — you can automate routine or lengthy processing tasks using a batch file, which contains one or more IDL statements or commands. Each line of the file is read and executed before proceeding to the next line. See Executing Batch Jobs in IDL for additional information on batch files. |
|
SAVE File ( |
Share programs and distribute applications — you can create a SAVE file containing data or named program files in a |