The visir_util_spc_txt2fits recipe

visir_util_spc_txt2fits

Synopsis

Generate spectrum calibration FITS tables

Description

This recipe shall be used to generate spectrum calibration tables.

The sof file shall consist of 1 line with the name of an ASCII-file currently tagged with either SPC_LINES_ASCII or SPC_QEFF_ASCII.

The file must comprise two columns: 1st: Must be wavelengths in increasing order in units of meter 2nd: For SPC_LINES_ASCII-files must be the atmospheric emission, while

for SPC_QEFF_ASCII-files must be the quantum efficiency of the detector.

A SPC_LINES_ASCII-file will generate a SPEC_CAL_LINES-file, and a SPC_QEFF_ASCII-file will generate a SPEC_CAL_QEFF-file.

The current SPEC_CAL_LINES- and SPEC_CAL_QEFF-files are generated using the ASCII-files in the catalogs/ directory of the VISIR source-code distribution.

Constructor

cpl.Recipe("visir_util_spc_txt2fits")

Create an object for the recipe visir_util_spc_txt2fits.

import cpl
visir_util_spc_txt2fits = cpl.Recipe("visir_util_spc_txt2fits")

Parameters

visir_util_spc_txt2fits.param.qeff

The overall Quantum-efficiency. The default value comes from PH. Galdemard measurements. This option is ignored for all but SPC_QEFF_ASCII-tagged files, while the efficiencies in such files are multiplied by this overall efficiency (float; default: 0.72) [default=0.72].

The following code snippet shows the default settings for the available parameters.

import cpl
visir_util_spc_txt2fits = cpl.Recipe("visir_util_spc_txt2fits")

visir_util_spc_txt2fits.param.qeff = 0.72

You may also set or overwrite some or all parameters by the recipe parameter param, as shown in the following example:

import cpl
visir_util_spc_txt2fits = cpl.Recipe("visir_util_spc_txt2fits")
[...]
res = visir_util_spc_txt2fits( ..., param = {"qeff":0.72})

See also

cpl.Recipe for more information about the recipe object.

Bug reports

Please report any problems to Lars Lundin. Alternatively, you may send a report to the ESO User Support Department.