exosim.recipes.createFocalPlane#

Classes#

CreateFocalPlane

Pipeline to create the instrument focal planes.

Module Contents#

class CreateFocalPlane(options_file, output_file, store_config=False)[source]#

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

Pipeline to create the instrument focal planes. This pipeline loads the configuration file and produces an output, if indicated, where all the products are stored. It loads the source SED and the foregrounds and, after the optical chain production, it estimates the focal plane for the source and for the foregrounds.

Variables:
  • mainConfig (dict) – This is parsed from LoadOptions

  • output (Output (optional)) – output file

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

  • time (Quantity) – time grid.

  • wl_grid (ndarray or Quantity) – wavelength grid.

Parameters:
  • options_file (Union[str, dict]) –

  • output_file (str) –

  • store_config (bool) –

Examples

>>> import exosim.recipes as recipes
>>> recipes.CreateFocalPlane(options_file= 'main _configuration.xml',
>>>                          output_file = 'output_file.h5')
prepare_environment(out)[source]#

Il prepores the input data to build the instrument focal planes

Parameters:

out (OutputGroup) – output group

Returns:

  • dict – soureces dict

  • ~collections.OrderedDict – common path dictionary

Return type:

Tuple[collections.OrderedDict, collections.OrderedDict]

run_channel(description, common_path, sources, pointing=None, out=None)[source]#

It instantiates and runs the Channel for the indicated channel`

Parameters:
  • description (dict) – channel description

  • common_path (~collections.OrderedDict) – dictionary of contributes

  • sources (dict) – dictionary containing Sed

  • pointing ((astropy.units.Quantity, astropy.units.Quantity) (optional)) – telescope pointing direction, expressed ad a tuple of RA and DEC in degrees. Default is None

  • out (OutputGroup (optional)) – output group

Return type:

None