The uves_cal_mflat_combine recipe

uves_cal_mflat_combine

Synopsis

Combines the master flat field and the master dflat frames

Description

This recipe combined a MASTER_FLAT_xxxx with a MASTER_DFLAT_xxxx Input are:

a master flat (MASTER_FLAT_xxxx) a master dflat (MASTER_DFLAT_xxxx) an order table (ORDER_TABLE_xxxx) provided for each chip (xxxx = BLUE, REDL, REDU). Output is a MASTER_FLAT_xxxx

Constructor

cpl.Recipe("uves_cal_mflat_combine")

Create an object for the recipe uves_cal_mflat_combine.

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

Parameters

uves_cal_mflat_combine.param.debug

Whether or not to save intermediate results to local directory (bool; default: False) [default=False].

uves_cal_mflat_combine.param.order_threshold

Order where master flats are joined (int; default: 7) [default=7].

uves_cal_mflat_combine.param.plotter

Any plots produced by the recipe are redirected to the command specified by this parameter. The plotting command must contain the substring ‘gnuplot’ and must be able to parse gnuplot syntax on its standard input. Valid examples of such a command may include ‘gnuplot -persist’ and ‘cat > mygnuplot$$.gp’. A finer control of the plotting options can be obtained by writing an executable script, e.g. my_gnuplot.pl, that executes gnuplot after setting the desired gnuplot options (e.g. set terminal pslatex color). To turn off plotting, set this parameter to ‘no’ (str; default: ‘no’) [default=”no”].

uves_cal_mflat_combine.param.process_chip

For RED arm data process the redl, redu, or both chip(s) (str; default: ‘both’) [default=”both”].

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

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

uves_cal_mflat_combine.param.debug = False
uves_cal_mflat_combine.param.order_threshold = 7
uves_cal_mflat_combine.param.plotter = "no"
uves_cal_mflat_combine.param.process_chip = "both"

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

import cpl
uves_cal_mflat_combine = cpl.Recipe("uves_cal_mflat_combine")
[...]
res = uves_cal_mflat_combine( ..., param = {"debug":False, "order_threshold":7})

See also

cpl.Recipe for more information about the recipe object.

Bug reports

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