kmo_fits_stack7
Creates kmos conform fits-files
Usage
esorex kmo_fits_stack [OPTIONS] FILE.sof
Overview
#############################################
### INTENDED FOR PIPELINE DEVELOPERS ONLY ###
#############################################
FITS files to be processed by the KMOS pipeline have to meet certain condi- tions. This recipe is intended to provide to the user a simple way to test the pipeline with own data, which wasn´t produced by KMOS itself.
The input set of frame is checked for integrity (do all the frames have the same size, do they correspond to the desired output type, is there the correct number of files). Then an empty main header is written with desired keywords.
A keyword consists of the name, data type and value.
Additional keywords can be added either to the empty primary header or to all sub headers.
Basic parameters
--type Depending on the type of the FITS file to create different combinations of frames have to be provided:
* RAW
exactly 3 files tagged as STACK_DATA
* F2D
exactly 3 files tagged as STACK_DATA or
exactly 6 files tagged alternating as STACK_DATA and STACK_NOISE
(beginning with DATA)
* B2D
exactly 3 files tagged as STACK_BADPIX
* F1I, F2I, F3I
as many DATA frames as wanted (at least one) or
as many DATA and NOISE frames as wanted (at least one of each, the number
of STACK_DATA frames has to match the one of STACK_NOISE frames)
* F1S
exactly 1 file tagged as STACK_DATA
* F1L
exactly 1 file tagged as STACK_DATA (either plain text or binary fits
table)
* F2L
exactly 1 file tagged as STACK_DATA (either plain text or binary fits)
table)
--mainkey --subkey Additional keywords can be added either to the empty primary header or to all sub headers. Provided keywords must have following form:
"keyword;type;value;keyword;type;value" (no spaces inbetween!) Allowed values for type are: string, int, float, double, bool
--valid With the –valid parameter one can specifiy which values should be handled as invalid by the pipeline. The keyword ESO OCS ARMi NOTUSED will be set accor- dingly. When it is set to "none" nothing will be added.
Input files:
DO KMOS
category Type Explanation Required #Frames
-------- ----- ----------- -------- -------
STACK_DATA <none> >= 1 plain FITS files Y 1-n
STACK_NOISE >= 1 plain FITS files N 0,1-n
or
STACK_BADPIXEL 3 plain FITS files Y 3
Output files:
DO KMOS
category Type Explanation
-------- ----- -----------
FITS_STACK RAW or Stacked KMOS FITS file
F1D or
F2D or
B2D or
F1I or
F2I or
F3I or
F1S or
F1L or
F2L
Options
-
--type <str> -
The KMOS data format type (either "RAW", "F1D", "F2D", "F1I", "F2I", "F3I", "F1S", "F1L", "F2L") (str; default: ´´). The full name of this option for the EsoRex configuration file is
kmos.kmo_fits_stack.type[default = ].
-
--format <str> -
The format of the columns for "F1L" and "F2L" frames: e.g. "%f;%f;%s" (str; default: ´´). The full name of this option for the EsoRex configuration file is
kmos.kmo_fits_stack.format[default = ].
-
--title <str> -
The titles of the columns for "F1L" and "F2L" frames: e.g. "wavelength;strength" (str; default: ´´). The full name of this option for the EsoRex configuration file is
kmos.kmo_fits_stack.title[default = ].
-
--filename <str> -
Optional: The output filename (.fits will be added as postfix) (str; default: ´FITS_STACK´). The full name of this option for the EsoRex configuration file is
kmos.kmo_fits_stack.filename[default = FITS_STACK].
-
--mainkey <str> -
Optional: Additional keywords for primary header (str; default: ´´). The full name of this option for the EsoRex configuration file is
kmos.kmo_fits_stack.mainkey[default = ].
-
--subkey <str> -
Optional: Additional keywords for sub headers(This is ignored when category=TRUE) (str; default: ´´). The full name of this option for the EsoRex configuration file is
kmos.kmo_fits_stack.subkey[default = ].
-
--valid <str> -
Optional: Specify which IFUs are active. Either empty string or string with 24 elements (ones or zeros) e.g: [1;0;1;0;0;...;1] (str; default: ´´). The full name of this option for the EsoRex configuration file is
kmos.kmo_fits_stack.valid[default = ].
-
--category <bool> -
Optional: IF a PRO.CATG should be added. (bool; default: False). The full name of this option for the EsoRex configuration file is
kmos.kmo_fits_stack.category[default = False].
-
--input <str> -
Optional: input file (str; default: ´´). The full name of this option for the EsoRex configuration file is
kmos.kmo_fits_stack.input[default = ].
Note that it is possible to create a configuration file containing these options, along with suitable default values. Please refer to the details provided by the 'esorex --help' command.
Version
kmo_fits_stack 1.3.5