exosim.recipes.createSubExposures#

Classes#

CreateSubExposures

Pipeline to create the focal planes sub-exposures.

Module Contents#

class CreateSubExposures(input_file, output_file, options_file)[source]#

Bases: exosim.utils.timed_class.TimedClass, exosim.log.Logger

Pipeline to create the focal planes sub-exposures. This pipeline loads the configuration file and the produced focal planes to produce the sub-exposures. It prepares the pointing jitter first, then it scales it to the instrument focal planes pixels. It estimates the detector reading scheme, considering instantaneous readout, and it produces the sub-exposures by jittering the focal planes.

Variables:
  • input (str) – input file

  • mainConfig (dict) – This is parsed from LoadOptions

  • payloadConfig (dict) – payload configuration dictionary extracted from mainConfig

  • jitter_spa (Quantity) – pointing jitter in the spatial direction expressed in units of \(deg\).

  • jitter_spe (Quantity) – pointing jitter in the spectral direction expressed in units of \(deg\).

Parameters:
  • input_file (str) –

  • output_file (str) –

  • options_file (Union[str, dict]) –

Examples

>>> import exosim.recipes as recipes
>>> recipes.CreateSubExposures(input_file='./input_file.h5',
>>>                            output_file = 'se_file.h5',
>>>                            options_file='main _configuration.xml')
load_focal_plane(ch)[source]#

It loads the channel focal plane from the input file:

Parameters:

ch (str) – channel name

Returns:

Return type:

Tuple[exosim.models.signal.CountsPerSecond, exosim.models.signal.CountsPerSecond]

load_source(ch, source)[source]#

It loads the channel focal plane from the input file:

Parameters:
  • ch (str) – channel name

  • source (str) – source name

Returns:

source

Return type:

CountsPerSecond

copy_simulation_data(ch, ch_grp)[source]#

It copies relevant data from the input file into the output one. The copied data are: info, qe_map, efficiency and responsivity.

Parameters:
Returns:

output group

Return type:

HDF5OutputGroup