soxspipe.recipes.soxs_mdark¶
The recipe to generate a master dark frame
- Author
David Young & Marco Landoni
- Date Created
January 27, 2020
Module Contents¶
Classes¶
The |
API¶
- class soxspipe.recipes.soxs_mdark.soxs_mdark(log, settings=False, inputFrames=[], verbose=False, overwrite=False, command=False, debug=False, turnOffMP=False)[source][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][source]¶
generate a master dark frame
Return:
productPath– the path to master dark frame