exorad.models.noise module

class Noise(wl_grid, data, time_grid=<Quantity [0.] h>)[source]

Bases: CustomSignal

It’s a Signal class with data having units of [hr^1/2]

class constructor

Parameters:
  • wl_grid (quantity) – wavelength grid. Must have a single axes

  • data (array) – data table. Can have 2 axes

  • time_grid (quantity (optional)) – time grid. Must have a single axes

add_custom_noise(custom, wl, out)[source]
frame_time(target, channel, out)[source]

Given the channel and channel descriptions, populates the output table with saturation and frame times

Parameters:
  • channel (dict) – channel description

  • target (Target) – Target to investigate

  • out (QTable) – output table

Returns:

output table populated

Return type:

QTable

multiaccum(channel, t_frame)[source]

Given the channel and time frame, returns the multiaccum estimation for read and shot gain

Parameters:
  • channel (dict) – channel description

  • t_frame (float) – frame time

Returns:

  • float – read noise gain

  • float – shot noise gain

photon_noise(table, channel, shot_gain, out)[source]

Given the channel and channel descriptions, populates the output table with photon noises

Parameters:
  • channel (dict) – channel description

  • target (Table) – Target table to investigate

  • shot_gain (float) – multiaccum factor for photon noise

  • out (QTable) – output table

Returns:

output table populated

Return type:

QTable

photon_noise_variance(table, out)[source]

“”” Given the target table return the sum of photon variances

Parameters:
  • target (Table) – Target table to investigate

  • out (QTable) – output table

Returns:

  • Array – sum of photon variances

  • ”””