Pri [message #69914] |
Thu, 25 February 2010 06:53 |
Lasse Clausen
Messages: 22 Registered: August 2001
|
Junior Member |
|
|
Hi there,
I have written a little routine that prints out the usage of routines/
procedures written in IDL on the command line. Like so:
IDL> pri, 'reverse'
+---+
Function REVERSE
Usage:
Result = REVERSE(A, SUBSCRIPTIN, OVERWRITE=OVERWRITE)
Source:
/usr/local/itt/idl/lib/reverse.pro
+---+
or
IDL> pri, 'pri'
+---+
Procedure PRI
Usage:
PRI, ROUTINE_NAME, NO_COMPILE=NO_COMPILE, SOURCE_FILE=SOURCE_FILE,
USAGE=USAGE
Source:
/davit/lib/vt/idl/misc/pri.pro
+---+
I find this routine incredibly helpful as it allows me to check how to
use routines without having to leave the IDL command line.
If you are interested, you can download it here: http://sd-work5.ece.vt.edu/pri.pro
Cheers
Lasse Clausen
|
|
|