The naco_spc_lampflat recipe

naco_spc_lampflat

Synopsis

Spectrocopic flat recipe using a lamp

Description

naco_spc_lampflat – NACO spectrocopy flat-field creation from lamp images.

The files listed in the Set Of Frames (sof-file) must be tagged: NACO-raw-file.fits CAL_FLAT_SPEC

The input frames are split into groups with identical values of ‘ESO DET DIT’, ‘ESO INS OPTI1 ID’, ‘ESO INS CWLEN’ and ‘ESO SEQ SPECMODE’.

Furthermore, the input set of frames must have values of the FITS key ESO INS LAMP2 SET that of zero for off-frames and non-zero for on-frames.

Constructor

cpl.Recipe("naco_spc_lampflat")

Create an object for the recipe naco_spc_lampflat.

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

Parameters

naco_spc_lampflat.param.r

Rejected left right bottom and top border [pixel] (str; default: ‘200 200 200 200’) [default=”200 200 200 200”].

naco_spc_lampflat.param.hot_t

Hot pixel map threshold (float; default: 10.0) [default=10.0].

naco_spc_lampflat.param.cold_t

Cold pixel map threshold (float; default: 6.0) [default=6.0].

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

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

naco_spc_lampflat.param.r = "200 200 200 200"
naco_spc_lampflat.param.hot_t = 10.0
naco_spc_lampflat.param.cold_t = 6.0

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

import cpl
naco_spc_lampflat = cpl.Recipe("naco_spc_lampflat")
[...]
res = naco_spc_lampflat( ..., param = {"r":"200 200 200 200", "hot_t":10.0})

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.