exosim.tasks.instrument.loadWavelengthSolution#
Classes#
It loads the wavelength solution expressed as a table with wavelength position on spectral and spatial directcions |
Module Contents#
- class LoadWavelengthSolution[source]#
Bases:
exosim.tasks.task.TaskIt loads the wavelength solution expressed as a table with wavelength position on spectral and spatial directcions
- Returns:
wavelength solution table
- Return type:
Qtable- Raises:
TypeError: – if the output is not a
QTableclassUnitsError – if the output has not the right units (micron) in every column
Notes
This is a default class with standardised inputs and outputs. The user can load this class and overwrite the “model” method to implement a custom Task to replace this.
- execute()[source]#
Class execution. It runs on call and executes all the task actions returning the outputs. It requires the input with correct keywords
- model(parameters)[source]#
It loads the Wavelength, X and Y columns from a file and it stores them into a class:~astropy.table.Qtable class
- Parameters:
parameters (dict) – channel parameter dictionary. This is usually parsed from
LoadOptions- Returns:
wavelength solution table
- Return type:
Qtable