The uves_utl_remove_crh_single recipe

uves_utl_remove_crh_single

Synopsis

Remove CRHs from an image

Description

This recipe performs image computation.

The input files is one image their associated tags should be IMA.

The output is the image cleaned from CRHs Information on relevant parameters can be found with esorex –params uves_utl_remove_crh_single esorex –help uves_utl_remove_crh_single

Constructor

cpl.Recipe("uves_utl_remove_crh_single")

Create an object for the recipe uves_utl_remove_crh_single.

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

Parameters

uves_utl_remove_crh_single.param.crh_frac_max

Maximum fraction of allowed CRHs (float; default: 0.7) [default=0.7].

uves_utl_remove_crh_single.param.f_lim

Max fraction of bad pixels allowed (float; default: 0.7) [default=0.7].

uves_utl_remove_crh_single.param.gain

Detector’s gain (float; default: 2.42) [default=2.42].

uves_utl_remove_crh_single.param.max_iter

Max fraction of bad pixels allowed (int; default: 5) [default=5].

uves_utl_remove_crh_single.param.ron

Detector’s ron (float; default: 1.0) [default=1.0].

uves_utl_remove_crh_single.param.sigma_lim

Maximum sigma in kappa-sigma clip (float; default: 25.0) [default=25.0].

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

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

uves_utl_remove_crh_single.param.crh_frac_max = 0.7
uves_utl_remove_crh_single.param.f_lim = 0.7
uves_utl_remove_crh_single.param.gain = 2.42
uves_utl_remove_crh_single.param.max_iter = 5
uves_utl_remove_crh_single.param.ron = 1.0
uves_utl_remove_crh_single.param.sigma_lim = 25.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_utl_remove_crh_single = cpl.Recipe("uves_utl_remove_crh_single")
[...]
res = uves_utl_remove_crh_single( ..., param = {"crh_frac_max":0.7, "f_lim":0.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.