exosim.tasks.detector.add_gain_drift#

Classes#

AddGainDrift

It adds a gain noise map to the array.

Module Contents#

class AddGainDrift[source]#

Bases: exosim.tasks.task.Task

It adds a gain noise map to the array.

The gain Drift is modeled as a polynomial model for a spectral and time dependent modulation.

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(subexposures, parameters, output=None)[source]#

Apply a gain drift model to the subexposures.

This method models the gain drift as a polynomial trend based on time and wavelength.

Parameters:
  • subexposures (Signal) – Sub-exposures cached signal.

  • parameters (dict) – Dictionary containing the detector parameters for gain noise computation.

  • output (Optional[Output]) – Output file to write information, defaults to None.

Returns:

This method does not return a value but updates the subexposures dataset with applied gain noise.

Return type:

None