SCULIB_SEARCH_DATADIR

Open an NDF using the parameter system whilst searching DATADIR

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:

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: