exosim.tasks.radiometric.estimateSpectralBinning#
Classes#
It computes spectral binning useful to produce the radiometric tables |
Module Contents#
- class EstimateSpectralBinning[source]#
Bases:
exosim.tasks.task.TaskIt computes spectral binning useful to produce the radiometric tables
- Returns:
wavelength bins table
- Return type:
- Raises:
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(wl_grid, parameters)[source]#
It runs a dedicated method if the channel is a spectrometer or a photometer.
- Parameters:
wl_grid (
Quantity(optional)) – focal plane wavelength grid. Useful for spectrometers. Default isNone.parameters (dict) – dictionary contained the channel parameters. This is usually parsed from
LoadOptions
- Returns:
wavelength bins table
- Return type:
- Raises:
AttributeError: – if the channel type is not spectrometer or photometer
- wavelength_table_spectrometer(description, wl_grid)[source]#
It returns the wavelength table for a spectrometer. The wavelength grid can be estimated in 2 modes:
native mode. If targetR is set to native the wavelength grid computed is the pixel level wavelength grid, where each bin is of the size of a pixel;
fixed R mode. If targetR` is set to a constant value, the wavelength grid is estimated using
wl_grid.
- Parameters:
- Returns:
wavelength bins table
- Return type:
- Raises:
KeyError – Channel targetR format unsupported
- wavelength_table_photometer(description)[source]#
It returns the wavelength table for a photometer. It is estimated as the central wavelength of the photometer with a bin width equal to the wavelength band.
- Parameters:
description (dict) – dictionary contained the channel parameters.
- Returns:
wavelength bins table
- Return type: