Modern IDL by Michael Galloy

API documentation for example code

Directory: programming/

Examples to illustrate programming in IDL.

Contents

.pro files

mg_batch_example.pro

Example batch file.

mg_by_reference_test.pro

Prints value of argument before and after it is incremented.

mg_dirinfo.pro

Returns some information about the current directory through keywords.

mg_exactplot.pro

Plot x-y data using the exact range of the data (i.e.

mg_linear_function.pro

Create a function which maps in_range to out_range with a linear function.

mg_long.pro

Convert a variable to a long integer.

mg_obsolete_routine.pro

Routine marked as obsolete by COMPILE_OPT.

mg_param_test.pro

Routine to test various routines that give information about parameters passed into a routine (N_PARAMS, N_ELEMENTS, KEYWORD_SET, and ARG_PRESENT).

mg_readplot.pro

Main-level program to read in a data file.

mg_window_plot.pro

Simple wrapper for PLOT routine.

programming_chapter.pro

Batch file containing all the code intended to be typed at the command line from the "Programming" chapter.

pwd.pro

Print the working directory.