next up previous contents
Next: Importing data Up: Lecture 1: Getting Started Previous: A First Plot   Contents

Resetting, compiling, saving etc

IDL> .f
resets everything (well) almost everything - we'll see exceptions later.

.compile blah.pro
Compiles blah.pro (surprise!) Actually it really just checks the syntax plus a bit more (see later).
blah
should then run blah.pro

stop
in a procedure stops it. You can then print/change variables, do plots etc. Very useful for debugging. Try putting a ``stop'' in dubya.pro . Then type,
IDL> help,x

save,/all,filename='~jmarsham/save_idl.dat'
saves all variables (you can select a subset) into  jmarsham/save_idl.dat
restore,'~jmarsham/save_idl.dat'
Will then restore those variables in an IDL session.



John Marsham 2005-04-22