Next:
Contents
Contents
An Introduction to IDL
John Marsham (with thanks to Hugh Pumphrey, University of Edinburgh) The University of Leeds, UK.
Contents
Section 0: Some basic UNIX commands
Section 1: A first program, a first plot and using IDL on the command line
A first program
Some simple sums
A very simple plot using three arrays
Section 2: Introduction to IDL functions and procedures
An example function (of one variable)
Another example functions (of multiple variables)
Using keywords
A first IDL procedure: an example reading data from a file
Using where
Using where on a 2D array
Plotting two lots of 1D data on the same graph
Exercise 1: Plotting some aircraft data
Section 3: Some ``nuts and bolts'' of IDL (Hugh Pumphrey, University of Edinburgh)
Variables, data types
Arrays
Creating arrays
Subsets of arrays
A word of warning
Structures
Flow Control
The IF statement
Conditional blocks
The FOR loop
The WHILE loop
Other flow control statements
Array operations
Default array operations
Matrix multiplication
# for Vectors
Section 4: More reading and writing data, some 2D plots
A first two 2D line contour plot
A filled contour plot
Contouring onto a map and writing to .png
Contouring onto a map and writing to .ps
Colours in IDL
A first 2D colour contour plot
E.g. Finding files and then contouring the irregularly gridded data
Exercise 2: Plotting Saharan Albedo and reading binary data
Section 5: Images
Section 6: Final thoughts
IDL-meteorology haiku
Appendix: IDL setup
Appendix II: Other tips and tricks
Contours on images
Colorbars
Plotting wind vectors
Plotting 3D surfaces
Loops and how to avoid them
Dimensional Juggling (from David Fanning)
Array concatenation (from David Fanning)
The Histogram routine
Other questions
Manipulating data: rotation, transposing, extracting subsets of...
Gif files in IDL
Resizing images
Functions and procedures - where to use which
Manipulating strings
NetCDF (from Justin Peter)
Reading NetCDF (from Justin Peter)
Adapting built-in IDL code
About this document ...
John Marsham 2009-12-07