soxspipe.recipes.soxs_nod¶
Reduce SOXS/Xshooter data taken in nodding mode
- Author
David Young & Marco Landoni
- Date Created
February 27, 2024
Module Contents¶
Classes¶
Reduce SOXS/Xshooter data taken in nodding mode |
API¶
- class soxspipe.recipes.soxs_nod.soxs_nod(log, settings=False, inputFrames=[], verbose=False, overwrite=False, command=False, debug=False, turnOffMP=False, recipeName='soxs-nod')[source][source]¶
Bases:
soxspipe.recipes.base_recipe.base_recipeReduce SOXS/Xshooter data taken in nodding mode
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– generate debug plots. 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.recipeName– the name of the recipe. Default “soxs-nod”. This is used to retrieve the recipe settings from the settings dictionary and to name the product file (soxs_offset inherits soxs_nod)
Usage
from soxspipe.recipes import soxs_nod recipe = soxs_nod( log=log, settings=settings, inputFrames=fileList ).produce_product()
Initialization
- process_single_ab_nodding_cycle(aFrame, bFrame, locationSetIndex, orderTablePath, notFlattened=False, masterFlat=False)[source][source]¶
process a single AB nodding cycle
Key Arguments:
aFrame– the frame taken at the A location. CCDData object.bFrame– the frame taken at the B location. CCDDate object.locationSetIndex– the index of the AB cycleorderTablePath– path to the order tablenotFlattened– if True, the extraction is performed on non-flattened data. Default FalsemasterFlat– path to the master flat frame. Default False
Return:
mergedSpectrumDF_A– the order merged spectrum of nodding location A (dataframe)mergedSpectrumDF_B– the order merged spectrum of nodding location B (dataframe)
Usage:
mergedSpectrumDF_A, mergedSpectrumDF_B = soxs_nod.process_single_ab_nodding_cycle( aFrame=aFrame, bFrame=bFrame, locationSetIndex=1, orderTablePath=orderTablePath, masterFlat=masterFlat)
- produce_product()[source][source]¶
The code to generate the product of the soxs_nod recipe
Return:
productPath– the path to the final product
Usage
from soxspipe.recipes import soxs_nod recipe = soxs_nod( log=log, settings=settings, inputFrames=fileList ) nodFrame = recipe.produce_product()
- stack_extractions(dataFrameList, notFlattened=False, orderJoins=None)[source][source]¶
merge individual AB cycles into a master extraction
Key Arguments:
dataFrameList– a list of order-merged spectrum dataframes
Return:
stackedSpectrum– the combined spectrum in a dataframe
Usage:
stackedSpectrum = soxs_nod.stack_extractions( [mergedSpectrumDF_A, mergedSpectrumDF_B])