Description:
This routine reads a parameter and attempt to open an NDF. If it fails it
searches the directory DATADIR and then opens an NDF there. If that fails it asks again. This routine
also recognises the SCUBA_PREFIX environment variable. When a number is given it is expanded to 4
digites (leading zeroes) and prepended with SCUBA_PREFIX and ’_dem_’ before opening the file.
The priority is:
-
File specified in current directory
-
Check if filename was a number and look in current directory then either
-
Look for full filename in DATADIR or
-
Look for numbered name in DATADIR Only one of the last two will happen since I will know
from the status return of CHR_CTOI whether a number was given.
Invocation
CALL
SCULIB_SEARCH_DATADIR(PACKAGE, PARAM, INDF, STATUS)
Arguments
PACKAGE = CHAR
(Given)
String to identify the software system when the information messages appear.
PARAM = CHAR (Given)
Name of parameter associated with NDF
INDF = INTEGER
(Returned)
NDF identifier of successfully opened file
STATUS = INTEGER (Given and
Returned)
Global Status value
Copyright
Copyright ©1995,1996,1997,1998,1999 Particle
Physics and Astronomy Research Council. All Rights Reserved.
Implementation Status: