soxspipe.recipes.soxs_spatial_solution¶
enhance the wavelength solution achieved with soxs_disp_solution by expanding the solution into the spatial dimension (along the slit)
- Author
David Young & Marco Landoni
- Date Created
March 17, 2021
Module Contents¶
Classes¶
Enhance the wavelength solution achieved with |
Functions¶
tuning the spatial solution |
API¶
- soxspipe.recipes.soxs_spatial_solution.parameterTuning(p, log, recipeSettings, settings, multiPinholeFrame, disp_map_table, order_table, qc, products, sofName, lineDetectionTable)[source][source]¶
tuning the spatial solution
- class soxspipe.recipes.soxs_spatial_solution.soxs_spatial_solution(log, settings=False, inputFrames=[], verbose=False, overwrite=False, create2DMap=True, polyOrders=False, command=False, debug=False, turnOffMP=False)[source][source]¶
Bases:
soxspipe.recipes.base_recipe.base_recipeEnhance the wavelength solution achieved with
soxs_disp_solutionby expanding the solution into the spatial dimension (along the slit)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 pathsverbose– verbose. True or False. Default Falseoverwrite– overwrite the product file if it already exists. Default Falsecreate2DMap– create the 2D image map of wavelength, slit-position and order from disp solution.polyOrders– the orders of the x-y polynomials used to fit the dispersion solution. Overrides parameters found in the yaml settings file. e.g 345435 is order_x=3, order_y=4 ,wavelength_x=5 ,wavelength_y=4, slit_x=3 ,slit_y=5. Default False.command– 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.
See
produce_productmethod for usage.Initialization
- produce_product()[source][source]¶
generate the 2D dispersion map
Return:
productPath– the path to the 2D dispersion map
Usage
from soxspipe.recipes import soxs_spatial_solution recipe = soxs_spatial_solution( log=log, settings=settings, inputFrames=fileList ) disp_map = recipe.produce_product()