Next: Writing an import task
Up: SURF Programming Interface
Previous: SCULIB
SURF tasks follow the same general format internally:
- Request the messaging level from the parameter system
(MSG_LEVEL).
- Read in some information concerning the object name, observation mode
and run number and write this to the screen (at normal messaging level) to
keep the user informed.
- Check the history component to make sure that the correct tasks have
been run prior to running the current task. This always contains a check to
see that the reduce_switch task has been run on the data.
- Check the dimensions of the data array, the LST_STRT array and
the DEM_PNTR arrays.
- Retrieve information from NDF extensions (see e.g.
SCULIB_GET_BOL_DESC, SCULIB_GET_JIGGLE). [as required]
- If required, construct an output name based on the input filename
(SCULIB_CONSTRUCT_OUT). The output file is usually propogated from
the input file using NDF_PROP.
- Do whatever has to be done.
- Shut down NDF, free memory, free locators.
Next: Writing an import task
Up: SURF Programming Interface
Previous: SCULIB
SURF Programming Interface
Starlink System Note 72
Tim Jenness, John F. Lightfoot
Joint Astronomy Centre, Hilo, Hawaii
10 July 2000
E-mail:ussc@star.rl.ac.uk
Copyright © 2008 Science and Technology Facilities Council