The sinfo_rec_detlin recipe

sinfo_rec_detlin

Synopsis

Detector’s linearity & non linear bad pixels determination.

Description

This recipe computes detector non linearities and a bad pixel map.

The input files are increasing intensity raw flats their associated tags should be LINEARITY_LAMP.

The output are: A table (PRO.CATG=LIN_DET_INFO) with information on the detector non linearities A table (PRO.CATG=GAIN_INFO) with information on the detector gain A cube (PRO.CATG=BP_COEFF) with the polynomial fit parameters of the detector non linearities A bad pixel map (PRO.CATG=BP_MAP_NL)

Constructor

cpl.Recipe("sinfo_rec_detlin")

Create an object for the recipe sinfo_rec_detlin.

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

Parameters

sinfo_rec_detlin.param.gen_overpar

Overwrite DRS ini parameters: (bool; default: True) [default=True].

sinfo_rec_detlin.param.lc_sw

Correct for bad lines introduced by instrument software: (bool; default: False) [default=False].

sinfo_rec_detlin.param.lc_kappa

Kappa sigma value (long; default: 18) [default=18].

sinfo_rec_detlin.param.lc_filt_rad

Filtering radii applied during median filter. Should be small (long; default: 3) [default=3].

sinfo_rec_detlin.param.product_density

Density of pipeline products: 0 (low), 1 (low+skycor), 2 (med-QC), 3 (high-debug+skycor) (long; default: 2) [default=2].

sinfo_rec_detlin.param.bp_lin_order

Order: order of the fit polynomial = number of coefficents - 1 (long; default: 2) [default=2].

sinfo_rec_detlin.param.bp_lin_thresh_sigma_fct

Threshold Sigma Factor: threshold factor of the clean standard deviation. If the deviations of the linear polynomial coefficients exceed this threshold the corresponding pixels are declared as bad (float; default: 10.0) [default=10.0].

sinfo_rec_detlin.param.bp_lin_nlin_threshold

Non Linear Threshold (float; default: 0.5) [default=0.5].

sinfo_rec_detlin.param.bp_lin_lo_rej

low_rejection: percentage of rejected low intensity pixels before averaging (float; default: 10.0) [default=10.0].

sinfo_rec_detlin.param.bp_lin_hi_rej

high_rejection: percentage of rejected high intensity pixels before averaging (float; default: 10.0) [default=10.0].

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

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

sinfo_rec_detlin.param.gen_overpar = True
sinfo_rec_detlin.param.lc_sw = False
sinfo_rec_detlin.param.lc_kappa = 18
sinfo_rec_detlin.param.lc_filt_rad = 3
sinfo_rec_detlin.param.product_density = 2
sinfo_rec_detlin.param.bp_lin_order = 2
sinfo_rec_detlin.param.bp_lin_thresh_sigma_fct = 10.0
sinfo_rec_detlin.param.bp_lin_nlin_threshold = 0.5
sinfo_rec_detlin.param.bp_lin_lo_rej = 10.0
sinfo_rec_detlin.param.bp_lin_hi_rej = 10.0

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

import cpl
sinfo_rec_detlin = cpl.Recipe("sinfo_rec_detlin")
[...]
res = sinfo_rec_detlin( ..., param = {"gen_overpar":True, "lc_sw":False})

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.