Next: A Template Task
Up: Task Programming Manual
Previous: Named Commons Handling
GILDAS tasks (e.g. for task ``taskname'') are composed of 4
different parts :
- The program, taskname.exe.
- The initialization file, taskname.init, read by commands
RUN and SUBMIT to get from the user the task input parameters.
- The checker file, taskname.check, read by commands RUN
and SUBMIT, to check the input parameters and pass them to the task.
- A help text file, taskname.hlp
All files must be located in the GILDAS_RUN: directory.
The structure of the program should always be the same :
- An input parameters definition part. No image creation or access
should be made before all parameters are defined.
- An input and output image mapping part. If possible all necessary
images should be defined in this part.
- One or more subroutines performing the processing. No new image
should be created or accessed in the subroutines. The subroutines
should preferably not make any reference to any common.
- A cleanup part. An error status should be returned to the system
in case of error through a call to SYSEXI.
Gildas manager
2002-06-07