AXIS(1) data array, in other words, an NDF which can be read
by DIPSO, FIGARO and so on.
The input image should be one output from ECHOMOP (produced using ech_result or echmenu Option 14) or FIGARO ECHARC, or one which consists of a 2-dimensional image where each order occupies a single line of the image.
There are two versions of this script available:
echtract_echomop is specifically for processing ECHOMOP
output.
echtract_echarc is specifically for processing FIGARO ECHARC
output.
The scripts expect the wavelength data in the input images to be stored in NDF extensions as follows:
.MORE.ECHELLE.ECH_2DWAVES for ECHOMOP data.
.AXIS(1).MORE.FIGARO.DATA_ARRAY.DATA for ECHARC data.
if this is not the case you can still use the script by modifying
the value of the AXISDATA variable in the scripts.
The full all-order wavelength scales would normally be propagated to the output NDFs; to reduce the size of the individual-order NDFs this extension is deleted in each output file. You can modify this behaviour by commenting out the part of the script which `shrinks' the per-order NDFs.
The main 2-D order array is expected to be in the NDF main
DATA_ARRAY (it will be for ECHOMOP or ECHARC data).
If you want to take the data from a different location, then
set the variable FLUXDATA in the scripts to reflect
the location. For example, if the data are in the extension
.MORE.ECHELLE.DATA_ARRAY, then edit the appropriate line
in the script to:
set FLUXDATA = '.MORE.ECHELLE.DATA_ARRAY';
Be sure to include the leading `.' or the extension will not be found.
extobj.sdf which
contains 42 orders and you want each order to be stored in an NDF
called extord_nn.sdf, where nn is the number of the
order, invoke the script thus:
% echtract extobj 1 42 extord
If supplied, command-line arguments must be in this order:
ech will
lead to output files ech_01.sdf, ech_02.sdf
and so on.
Missing command-line arguments are prompted for.
Use HDSTRACE to check this.
.DATA_ARRAY
of the input file. Use HDSTRACE to check this.
% source echtract extobj 1 42 extord
Echelle Data Reduction Cookbook