Load ECH_LOADCOMMON blocks describing spectrograph parameters
If a parameter name has been specified, ask the user which file contains the parameters. Otherwise use the one which was supplied.
This file is a text file. Any line beginning with a “!” is a comment line and is ignored. Non-comment
lines are split up into space, tab or comma separated tokens (quotes can be used to protect
delimiters within tokens should this be necessary) and these tokens are processed in pairs (the
number of tokens on a line must be even and will probably usually be 2). The first of each
pair is a keyword and the second is a value associated with that keyword. The keyword
determines the expected type of the value. All non quoted tokens are converted to upper
case.
As the file is processed, there is always a current instrument, a current echelle and a current camera.
Initially these are the defaults of “UCLES”, “31” and “LONG” respectively. They are changed
by “INSTRUMENT instrument”, “ECHELLE echelle” and “CAMERA camera” entries in the file.
Individual spectrograph parameters are each associated with the instrument and with either the
echelle or the camera and their entries always apply to the current instrument, echelle and
camera.
Instrument-related parameters are:
REAL mm)
INTEGER)
REAL degrees)
Echelle-related parameters are:
REAL)
INTEGER)
REAL Angstroms)
REAL degrees)
REAL degrees)
REAL degrees)
Camera-related parameters are:
REAL mm)
Note that the order of instruments, echelles and cameras within the file may be significant. For example, the default instrument, echelle or camera may be the first one that was defined in the file (although this routine does not need to make any assumptions about this).
The following example describes UCLES and illustrates a notional short camera of focal length
400mm.
This routine should be called before ECH_INIT is called. If it is not called, ECH_INIT will only be able to
support the 31 and 79 echelles on the UCLESLONG camera.
CALLECH_LOAD (PARAM, FILE, STATUS)
READ | PARAM | CHARACTER | Name of program parameter corresponding to the file to use. If blank, no parameter is read |
READ, WRITE | FILE | CHARACTER | File to use. Default file type is . |
READ, WRITE | STATUS | INTEGER | Global status value |
W.F. Lupton AAO (AAOEPP::WFL)