Institut für Astronomie und AstrophysikAbteilung AstronomieWaldhäuser Str. 64, D-72076 Tübingen, Germany |
GETPRO
Search !PATH for a procedure, and copy into user's working directory
Extract a procedure from an IDL Library or directory given in the !PATH system variable and place it in the current default directory (presumably to be edited by the user). GETPRO can also be used to obtain a copy of the default startup file.
GETPRO, [ proc_name ] ;Find PROC_NAME in !PATH and copy
proc_name - Character string giving the name of the IDL procedure or function. Do not give an extension. If omitted, the program will prompt for PROC_NAME.
None.
A file with the extension .pro and a name given by PROC_NAME will be created on the user's directory.
The system variable !PATH is parsed into individual libraries or directories. Each library or directory is then searched for the procedure name. When found, a SPAWN is used to extract or copy the procedure into the user's directory. If not found in !PATH, then the ROUTINE_INFO() function is used to determine if it is an intrinsic IDL procedure.
Put a copy of the USER library procedure CURVEFIT on the current directory IDL> getpro, 'CURVEFIT'
User will be unable to obain source code for a native IDL function or procedure, or for a FORTRAN or C routine added with CALL_EXTERNAL. User must have write privilege to the current directory This procedure is not used with Macintosh IDL.
FDECOMP, ZPARCHECK
Written W. Landsman, STX Corp. June 1990 Now use intrinsic EXPAND_PATH() command W. Landsman November 1994 Use ROUTINE_NAMES() to check for intrinsic procs W. Landsman July 95 Update for Windows/IDL W. Landsman September 95 Check if procedure is in current directory W. Landsman June 1997 Converted to IDL V5.0 W. Landsman September 1997 Use ROUTINE_INFO instead of undocumented ROUTINE_NAMES W.L. October 1998
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]