2 USING ECHOMOP

 2.1 Getting Started
 2.2 ECHMENU
 2.3 Graphic Display
 2.4 Image Display
 2.5 Parameters and Prompts
 2.6 Tuning Parameters
 2.7 Processing Steps
 2.8 Repeating Steps
 2.9 Standard Steps
 2.10 Accessing Single Function Sub-options
 2.11 Automation
 2.12 Quick-look Mode
 2.13 Error Arrays

echomop may be used in a variety of ways depending upon your expertise.

The most convenient method for normal use is to start the main ECHMENU task. This task provides a guided path through the processes of astandard reduction.

2.1 Getting Started

echomop is prepared for use from the shell by typing the command:

  % echomop

To start a reduction type:

  % echmenu

at the command-line prompt.

echomop uses a disc-based ‘reduction database’ to store objects which may need to be passed between various reduction tasks. You will initially be asked to provide a name for this file, which will then be created in the current directory. This file is associated with a particular set of data frames (object, arc, flat etc.) thereby providing the ability to replay any aspect of the reduction at a later date. Reduction files can occupy a large amount of disk space and you may wish to delete them once the reduced spectrum has been obtained.

When running, ECHMENU will provide a default for the next task to be performed; this will usually be the correct one for a standard reduction. To accept the recommended next step, it is only necessary to press one of the accept characters followed by a carriage return. Recognised accept characters are ‘Y’, ‘+’, and ‘/’.

2.2 ECHMENU

The simplest method of using echomop is via the task ECHMENU which has access to all the processing modules, along with a set of utilities for interactive tuning of parameters, and plotting of graphs of intermediate results. As a reduction progresses, the details and results of each task are stored in a disk file allowing the repetition or alteration of any aspect of the reduction at any stage. ECHMENU prompts for the name of this ‘reduction database’ file when it starts. If the name of an existing reduction-database is given then this file will be opened, otherwise the package will create a new file using the name provided. The name of the file may also be provided on the command line, e.g.:

  % echmenu ech_rdctn=filename

Once the reduction-database has been opened, the main menu is presented. This menu consists of all the major steps in the reduction process, along with a set of utility options, and some more specialised options (e.g., 2-D distortion correction). An option is selected by typing its number followed by carriage return. Some options may also be selected by entering a keyword (or its first character) followed by carriage return, e.g.,

  PLOT

or

  P

would select the graph plotting utility. Some options consist of sets of different tasks which usually need to be run together. It is possible to run these sub-options individually by typing the number and sub-option number in the form main.sub-option (e.g., 1.2). echomop attempts to provide the most sensible option (for a standard reduction) as the default, and you can accept this simply by typing one of the accept characters (e.g., ‘Y’), plus a carriage return. Option 0 always provides HELP information on the default option, and then allows you to browse the HELP library for more detailed information.

Most options invoke processing modules. These modules will usually require the specification of a number of parameters which will be automatically prompted for by the program. It is possible to preview/edit all the parameters (including any hidden ones) for any option by entering its number prefixed by a minus sign. e.g., -3 would allow preview/edit of the parameters used by option 3.

NOTE: In general, once a parameter has been provided it will NOT be re-prompted for by any module which requires it. The modules will simply re-use the value already supplied. The -option strategy overrides this behaviour and allows you to change any parameter value at any point.

Any parameter can be provided on the startup command-line, in this case the parameter will not be prompted for.

2.3 Graphic Display

Graphics display is controlled by the parameter:

  soft=/device/

The fiGARO SOFT command

  % soft options

may be used to get a list of available graphics devices.

echomop also supports both SOFT=NONE and SOFT=NULL which disable all interactive graphics facilities and save CPU time when such facilities are not required.

Hardcopy graphics is directed to /device/ using the parameter:

  hard=/device/

and enabled (in preference to on-screen graphics) using the hidden parameter HARDCOPY when starting echomop tasks, e.g.:

  % echmenu hardcopy=y /any-other-parameters/

2.4 Image Display

Before proceeding with a reduction it is recommended that the data frame be examined on an imaging display to ensure that the orders are orientated as echomop expects (See Orientation of Spectra).

If an imaging graphics display is available then you can use the DISPLAY command-line parameter when invoking echomop tasks, e.g:

  % echmenu display=yes /other-parameters/

The image display will automatically be used to:

2.5 Parameters and Prompts

Most of the user-input information required by echomop is obtained using the ADAM parameter system. This standard method for getting values leads to a consistency of user-interface between all ADAM-based tasks. However, in some cases it is more convenient to present the user with a menu and this approach is used for the top-level selection of processing steps, and also during interactive graphic steps. When an ADAM parameter is prompted for, the default value (used if the response is carriage-return only) is indicated enclosed in single quotes and back slashes (/’ ’/). Instead of entering a value you may also use the following special responses which are processed by the ADAM parameter system:

2.6 Tuning Parameters

echomop tasks use a number of ‘hidden’ parameters. These will not normally need to be changed, but provide flexibility when processing problem data. They are also used by ECHMENU to configure itself for ‘quick-look’ extraction. ECHMENU Option 23 allows you to interactively examine and alter these parameters. Parameter values may also be supplied on task command-lines. echomop tasks always report any TUNE_ parameters which have been set to non-default values.

2.7 Processing Steps

The reduction cycle has been split into a set of steps, most of which perform some form of image analysis. The results of these analysis steps provide various function fits and data describing the features of the image. All these steps take place before any extraction of data from the raw image. The extraction is performed in a single step taking into account the previously established data characteristics. This provides for the efficient processing of multiple data frames where the same object has been observed, as many of the processing steps need only be done once, for the first frame of the series.

All the discrete processing steps are available as both individual tasks (providing efficient execution of single steps), and as options from a menu-driven control task (providing automatic processing and context-sensitive assistance).

To run a particular step you can:

NOTE: that when using the individual tasks the strategy for selecting single order/all order operation is different. Individual tasks which can operate on single orders all utilise the parameter:

  IDX_NUM_ORDERS

with which you should specify the number of the order to process, or a zero to indicate that all orders are to be processed in turn.

2.8 Repeating Steps

In many cases the automatic sequence of steps provided by the ECHMENU main menu defaults will be enough to complete the reduction. In some cases however, it may be necessary to restart the reduction at a particular stage, maybe using a different raw image, different degree of polynomial etc.

ECHMENU allows the selection of any valid step of a reduction at any stage. If the step requested needs results from steps which have not yet been performed then you will be informed of this and the default next step will be set back to the step which generates the required information. If a single step task is invoked before all its input requirements are available (e.g., order tracing before order location) then the task will abort with a message indicating which task needs to be run in order to provide the necessary pre-requisites.

2.9 Standard Steps

The following steps constitute a standard reduction as implemented by the monolithic ECHMENU task. You can follow this sequence by hitting Y and carriage-return at each main menu prompt, and supplying data frame names and parameters values when prompted.

The demonstration provided by ech_demo follows this overall sequence and the reader is encouraged to try it before using echomop in earnest. Steps 9 through 12 would be omitted if no wavelength calibration was required. Step 5 would be omitted if no flat field was available. In cases where multiple object frames have been taken, it would be efficient to use only steps 6, 7, 8, 11, 12 for additional frames. A quick-look extraction may be performed as soon as step 4 has been completed (using Option 19).

2.10 Accessing Single Function Sub-options

Many of the ECHMENU main menu tasks consist of a number of independent functions which are automatically invoked. For example Option 12 consists of 4 sub-options. The ECHMENU program allows the selection of any sub-option directly, e.g.:

  12.3

would select Option 12.3 (Scrunch extracted object order) explicitly.

To check if sub-options are available, the context specific HELP for the option should be viewed (type 0 at the main menu prompt). Some sub-options are individually accessible when using the single purpose tasks (e.g., ech_scrarc).

2.11 Automation

echomop provides automation to many aspects of échelle data reduction which have traditionally required substantial interactive assistance:

The provision of these features permits the completely automatic reduction of échelle data frames. To help ensure the success of automatic reduction runs, special attention should be made to ensure that the following conditions are satisfied:

2.12 Quick-look Mode

Invoking ECHMENU with the TUNE_QUICK=Y will cause the automatic setting of tuning parameters to values designed for fastest processing.

The following algorithmic optimizations will be used:

2.13 Error Arrays

echomop can deal with errors from the following variety of sources: