[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Waldhäuser Str. 64, D-72076 Tübingen, Germany
[Uni logo]


GETPRO Source code in getpro.pro

GETPRO

Name
     GETPRO
Purpose
     Search !PATH for a procedure, and copy into user's working directory
Explanation
     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.
Calling Sequence
     GETPRO, [ proc_name ]          ;Find PROC_NAME in !PATH and copy
Optional Input Parameters
     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.
Output Parameters
     None.
Side Effects
      A file with the extension .pro and a name given by PROC_NAME will
      be created on the user's directory.
Procedure
      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.
Example
       Put a copy of the USER library procedure CURVEFIT on the current
       directory
       IDL> getpro, 'CURVEFIT'
Restrictions
       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.
Procedures Used
       FDECOMP, ZPARCHECK
Revision History
      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

Last modified by pro2html on 2001 April 26 at 03:14 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically