exosim.recipes.createSubExposures#
Classes#
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.LoggerPipeline 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
LoadOptionspayloadConfig (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:
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:
CountsPerSecond– focal planeCountsPerSecond– foreground focal planeCountsPerSecond– bkg focal plane
- 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:
- Returns:
source
- Return type:
- 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:
ch (str) – channel name
ch_grp (
HDF5OutputGroup) – output file
- Returns:
output group
- Return type: