Creates a master dark image from a set of raw dark frames.
For detailed information please refer to the GIRAFFE pipeline user manual.
It is available at http://www.eso.org/pipelines.
Create an object for the recipe gimasterdark.
import cpl
gimasterdark = cpl.Recipe("gimasterdark")
Stacking method: average, median, minmax or ksigma (str; default: ‘median’) [default=”median”].
Lower threshold multiplier for method ksigma (float; default: 5.0) [default=5.0].
Upper threshold multiplier for method ksigma (float; default: 5.0) [default=5.0].
Minimum rejection level for method minmax (long; default: 1) [default=1].
Maximum rejection level for method minmax (long; default: 1) [default=1].
Enable bias removal (bool; default: True) [default=True].
Bias removal method (str; default: ‘PROFILE’) [default=”PROFILE”].
Bias areas to use (Xl0:Xr0:Yl0:Yr0, ... ,Xln:Xrn:Yln:Yrn) (str; default: ‘5:40:0:4095’) [default=”5:40:0:4095”].
Sigma Clipping: sigma threshold factor (float; default: 2.5) [default=2.5].
Sigma Clipping: maximum number of iterations (long; default: 5) [default=5].
Sigma Clipping: minimum fraction of points accepted/total [0.0..1.0] (float; default: 0.8) [default=0.8].
Order of X polynomial fit (CURVE method only) (long; default: 1) [default=1].
Order of Y polynomial fit (CURVE method only) (long; default: 1) [default=1].
Sampling step along X (CURVE method only) (long; default: 1) [default=1].
Sampling step along Y (CURVE method only) (long; default: 1) [default=1].
The following code snippet shows the default settings for the available parameters.
import cpl
gimasterdark = cpl.Recipe("gimasterdark")
gimasterdark.param.stack_method = "median"
gimasterdark.param.stack_ksigmalow = 5.0
gimasterdark.param.stack_ksigmahigh = 5.0
gimasterdark.param.stack_minreject = 1
gimasterdark.param.stack_maxreject = 1
gimasterdark.param.remove_bias = True
gimasterdark.param.bsremove_method = "PROFILE"
gimasterdark.param.bsremove_areas = "5:40:0:4095"
gimasterdark.param.bsremove_sigma = 2.5
gimasterdark.param.bsremove_niter = 5
gimasterdark.param.bsremove_mfrac = 0.8
gimasterdark.param.bsremove_xorder = 1
gimasterdark.param.bsremove_yorder = 1
gimasterdark.param.bsremove_xstep = 1
gimasterdark.param.bsremove_ystep = 1
You may also set or overwrite some or all parameters by the recipe parameter param, as shown in the following example:
import cpl
gimasterdark = cpl.Recipe("gimasterdark")
[...]
res = gimasterdark( ..., param = {"stack_method":"median", "stack_ksigmalow":5.0})
See also
cpl.Recipe for more information about the recipe object.
Please report any problems to Giraffe Pipeline. Alternatively, you may send a report to the ESO User Support Department.
This file is part of the GIRAFFE Instrument Pipeline Copyright (C) 2002-2006 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Code author: Giraffe Pipeline <usd-help@eso.org>