soxs_mdark¶
Every raw CCD image contains counts resulting from a ‘dark current’, electrons released due to the thermal effects in the CCD material. For both the UVB-VIS (< 0.00012 \(\rm{e^{-}/s/pixel}\)) and NIR detectors (< 0.005 \(\rm{e^{-}/s/pixel}\)), the dark current is almost negligible. Not all pixels will have the same dark current, with some pixels having a higher-than-typical current. These are so-called ‘hot-pixels’, and these must be identified and recorded (using the create_noise_map utility).
The purpose of the soxs_mdark recipe is to generate a master-dark frame used to remove flux attributed to the dark current from other frames.
Input¶
Data Type |
Content |
Related OB |
Min. Frame Count |
|---|---|---|---|
FITS images |
raw dark frames (exposures with identical exposure time and detectors readout parameters). |
|
3 |
Data Type |
Content |
|---|---|
FITS images |
Default bad-pixel map |
Parameters¶
Parameter |
Description |
Type |
Entry Point |
Related Util |
|---|---|---|---|---|
|
number of \(\sigma\) from the median frame flux beyond which pixel is added to the bad-pixel mask |
float |
settings file |
|
|
number of \(\sigma\)-clipping iterations to perform when adding pixels to the bad-pixel mask |
int |
settings file |
|
|
number of \(\sigma\) deviations from the median pixel flux beyond which pixel is excluded from stack |
float |
settings file |
|
|
number of \(\sigma\)-clipping iterations to perform before stacking |
int |
settings file |
Method¶
The raw dark frames are stacked together (using the clip_and_stack utility) into master-dark frames and, in the process, clipping rogue pixels from the individual raw frames and reducing the read-noise contribution. The algorithm used in the soxs_mdark recipe is shown in Fig. 36.
Fig. 36 The soxs-mdark recipe algorithm.¶
Output¶
Label |
Content |
Data Type |
PRO CATG |
PRO TYPE |
PRO TECH |
|---|---|---|---|---|---|
|
Master dark frame (frame containing typical dark-current flux accumulated over the exposure time of the input frames) |
FITS image |
|
|
|
QC Metrics¶
Label |
Description |
Unit |
Acceptable Range |
|---|---|---|---|
|
Fraction of hot pixels |
- |
- |
|
Median flux level of master dark |
electrons |
NIR: [-15, 50] |
|
Number of hot pixels |
- |
- |
|
RON in single DARK |
electrons |
NIR: [0,30] |
Recipe API¶
- class soxs_mdark(log, settings=False, inputFrames=[], verbose=False, overwrite=False, command=False, debug=False, turnOffMP=False)[source]¶
Bases:
soxspipe.recipes.base_recipe.base_recipeThe
soxs_mdarkrecipe generates a master-dark frame used to remove flux attributed to the dark current from other frames.Key Arguments
log– loggersettings– the settings dictionaryinputFrames– input fits frames. Can be a directory, a set-of-files (SOF) file or a list of fits frame paths.verbose– verbose. True or False. Default Falseoverwrite– overwrite the product file if it already exists. Default Falsecommand– the command called to run the recipedebug– debug mode. True or False. Default FalseturnOffMP– turn off multiprocessing. True or False. Default False. If True, multiprocessing will be turned off and the recipe will run in serial. This is useful for debugging.
Usage
from soxspipe.recipes import soxs_mdark mdarkFrame = soxs_mdark( log=log, settings=settings, inputFrames=fileList, verbose=False, overwrite=False ).produce_product()
Initialization
- produce_product()[source]¶
generate a master dark frame
Return:
productPath– the path to master dark frame