The uves_cal_predict recipe

uves_cal_predict

Synopsis

Implements the UVES physical model

Description

This recipe implements the UVES physical model Input files are BLUE or RED arm formatcheck frames identified by the tag ARC_LAMP_FORM_xxxx, xxxx=BLUE or RED and a ThAr line reference table identified by the tag LINE_REFER_TABLE The recipe extracts from the input files FITS header data indicating the instrument setting and ambiental atmospheric conditions, then using the model predicts X,Y position of the lines listed in the LINE_REFER_TABLE table which are imaging on the detector and stores this information in an guess order and a guess line table.

Output are a guess order table and a guess line table per chip.

If the user provides in input also master format checks having tag MASTER_FORM_xxxx, xxxx=BLUE or REDL and REDU the recipe performs also a stability check

Constructor

cpl.Recipe("uves_cal_predict")

Create an object for the recipe uves_cal_predict.

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

Parameters

uves_cal_predict.param.ccd_rot_angle_off

Offset on CCD rotation angle (float; default: 0.0) [default=0.0].

uves_cal_predict.param.cd_angle_off

Offset on cross disperser angle (float; default: 0.0) [default=0.0].

uves_cal_predict.param.compute_regression_sw

Compute regression? (bool; default: True) [default=True].

uves_cal_predict.param.debug

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

uves_cal_predict.param.def_pol1

Polynomial X deg (int; default: 4) [default=4].

uves_cal_predict.param.def_pol2

Polynomial Y deg (int; default: 5) [default=5].

uves_cal_predict.param.ech_angle_off

Offset on echelle angle (float; default: 0.0) [default=0.0].

uves_cal_predict.param.kappa

Kappa value in kappa sigma clipping on RESIDUAL between YFIT and Y columns (float; default: 4.5) [default=4.5].

uves_cal_predict.param.mbox_x

Match box X size (int; default: 40) [default=40].

uves_cal_predict.param.mbox_y

Match box Y size (int; default: 40) [default=40].

uves_cal_predict.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_predict.param.process_chip

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

uves_cal_predict.param.tol

Tolerance in kappa sigma clipping on RESIDUAL between YFIT and Y columns (float; default: 2.0) [default=2.0].

uves_cal_predict.param.trans_x

Detector translation along X (float; default: 0.0) [default=0.0].

uves_cal_predict.param.trans_y

Detector translation along Y (float; default: 0.0) [default=0.0].

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

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

uves_cal_predict.param.ccd_rot_angle_off = 0.0
uves_cal_predict.param.cd_angle_off = 0.0
uves_cal_predict.param.compute_regression_sw = True
uves_cal_predict.param.debug = False
uves_cal_predict.param.def_pol1 = 4
uves_cal_predict.param.def_pol2 = 5
uves_cal_predict.param.ech_angle_off = 0.0
uves_cal_predict.param.kappa = 4.5
uves_cal_predict.param.mbox_x = 40
uves_cal_predict.param.mbox_y = 40
uves_cal_predict.param.plotter = "no"
uves_cal_predict.param.process_chip = "both"
uves_cal_predict.param.tol = 2.0
uves_cal_predict.param.trans_x = 0.0
uves_cal_predict.param.trans_y = 0.0

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_predict = cpl.Recipe("uves_cal_predict")
[...]
res = uves_cal_predict( ..., param = {"ccd_rot_angle_off":0.0, "cd_angle_off":0.0})

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.