The hawki_cal_dark recipe



(OBSOLETE) Dark recipe


(OBSOLETE) hawki_cal_dark – Dark recipe The files listed in the Set Of Frames (sof-file) must be tagged: raw-file.fits DARK or raw-file.fits TEC_FLAT.

The recipe creates as an output: hawki_cal_dark.fits (DARK_IM): The master dark hawki_cal_dark_bpmdark.fits(BPM_HOT): The bad pixel mask associated to the dark hawki_cal_dark_stats.fits(DARK_STATS): Statistics of the raw darks Optionally it also creates: hawki_cal_dark_err.fits(DARK_ERR): The error in the master dark Return code: esorex exits with an error code of 0 if the recipe completes successfully or 1 otherwise



Create an object for the recipe hawki_cal_dark.

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



sigma for hot bad pixels detection (float; default: 10.0) [default=10.0].


number of samples for RON computation (int; default: 100) [default=100].


half size of the window for RON computation (int; default: 6) [default=6].

Stats zone (str; default: ‘512,512,1536,1536’) [default=”512,512,1536,1536”].


Detector nominal gain (e-/ADU) (float; default: -1.0) [default=-1.0].


Detector nominal RON for a single readout (ADU) (float; default: -1.0) [default=-1.0].

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

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

hawki_cal_dark.param.sigma = 10.0
hawki_cal_dark.param.nsamples = 100
hawki_cal_dark.param.hsize = 6 = "512,512,1536,1536"
hawki_cal_dark.param.gain = -1.0
hawki_cal_dark.param.ron = -1.0

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

import cpl
hawki_cal_dark = cpl.Recipe("hawki_cal_dark")
res = hawki_cal_dark( ..., param = {"sigma":10.0, "nsamples":100})

See also

cpl.Recipe for more information about the recipe object.

Bug reports

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