XMM-Newton Science Analysis System: Users' Guide


next up previous contents
Next: 2.7 General settings affecting all SAS tasks Up: 2 Analysis of XMM data: an overview Previous: 2.5 Selecting a SAS task


2.6 Running a SAS task from the command line

For a better understanding of the SAS using command lines, the SAS user can read the taskmain package description. Each sas task can be called by typing its name on the commandline, e.g:

evselect -h

Tasks may be configured by a set of parameters, which are entered on the UNIX command line. Every task has a Parameter Specification File which defines the name and type of each parameter and possibly a default value or allowable range. Parameters may also be entered using the Graphical User Interface (GUI). This reads the parameter specification file and provides a dialog window into which the user can enter parameters. The GUI then launches the task by generating a command line which can then be read in the sas_log file. The task parameter handling system (see: http://xmm.esac.esa.int/sas/current/doc/param/index.html ) is capable of understanding complex expressions for allowable values, in addition to setting default values. Furthermore, parameters can have child-parameters, depending on its value, and this makes possible the implicit setting of controlling parameters, if a child parameter is activated on the command line.

Example:

evselect -xcolumn=RAWX implies -withimageset=yes (unless -withimageset=NO explicitly set)

This represents large advantages at the time of writing scripts, which can be much more compact than in the past. However, "old" scripts have to be revised to avoid setting implicitly undesired parameters.

Each SAS task supports the following command line options:

If the task uses the ODF Access Layer (OAL), the command line option -odf ${odf}$ or -o ${odf}$ is recognized as well. It specifies the Observation Data File (ODF) that is to be accessed by the OAL. The variable odf can be the name of an ODF summary file as created by the task odfingest or merely the name of a directory containing one. In the latter case the summary file is assumed to have a name ending in *SUM.SAS.

If the task uses the Calibration Access Layer (CAL), the following command line options are recognized:


next up previous contents
Next: 2.7 General settings affecting all SAS tasks Up: 2 Analysis of XMM data: an overview Previous: 2.5 Selecting a SAS task
European Space Agency - XMM-Newton Science Operations Centre