Dark recipe
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 (long; default: 100) [default=100].
half size of the window for RON computation (long; 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
hawki_cal_dark.param.zone = "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.
Please report any problems to Cesar Enrique Garcia Dabo. Alternatively, you may send a report to the ESO User Support Department.
This file is part of the HAWKI Instrument Pipeline Copyright (C) 2002,2011 European Southern Observatory
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Code author: Cesar Enrique Garcia Dabo <usd-help@eso.org>