exosim.models.channel#

Classes#

Channel

It handles the channel gven the description

Module Contents#

class Channel(parameters, wavelength, time, output=None)[source]#

Bases: exosim.log.Logger

It handles the channel gven the description

Variables:
  • ch_name (str) – channel name

  • path (dict) – dictionary of Radiance and Dimensionless, represeting the radiance and efficiency of the path.

  • responsivity (Signal) – channel responsivity

  • sources (dict) – dictionary containing Signal

  • time (Quantity) – time grid.

  • parameters (dict) – dictionary contained the optical element parameters. This is usually parsed from LoadOptions

  • wavelength (ndarray or Quantity) – wavelength grid. If no units are attached is considered as expressed in um.

  • focal_plane (Signal) – source focal plane

  • frg_focal_plane (Signal) – foreground focal plane

  • frg_sub_focal_planes (dict) – dictionary of Signal. It contains the sub focal planes produced by the radiances. This dictionary is produced only if at least one optical surface has isolate=True. The sum of the sub focal planes returns the frg_focal_plane. If not surface has isolate=True, the dictionary is empty.

  • output (Output) – output file

  • target_source (str) – name of the target source

Parameters:
  • parameters (dict) –

  • wavelength (exosim.utils.types.ArrayType) –

  • time (exosim.utils.types.ArrayType) –

  • output (exosim.utils.types.OutputType) –

parse_path(light_path)[source]#

It applies ParsePath

Parameters:

light_path (~collections.OrderedDict (optional)) – dictionary of contributes

Returns:

dictionary of Radiance and Dimensionless, represeting the radiance and efficiency of the path.

Return type:

dict

Note

The resulting information is also stored in the class under path attribute.

estimate_responsivity()[source]#

It estimates the responsivity using the indicated LoadResponsivity

Returns:

channel responsivity

Return type:

Signal

Note

The resulting information is also stored in the class under responsivity attribute.

propagate_foreground()[source]#

It multiplies each radiance in the path by the solid angle.

Returns:

dictionary of Radiance and Dimensionless, represeting the radiance and efficiency of the path.

Return type:

dict

Note

it updates the path attribute of this class

propagate_sources(sources, Atel)[source]#

It propagates the sources though the channel, by applying PropagateSources

Parameters:
  • sources (dict) – dictionary containing Sed

  • Atel (Quantity) – effective telescope Area

Returns:

dictionary containing Signal

Return type:

dict

create_focal_planes()[source]#

It produces the empty focal planes

Returns:

focal plane array (with time evolution)

Return type:

Signal

rescale_contributions()[source]#

It updated the contributions (sources and path) by rebinning them to the wavelength solution grid and multipling them by the wl solution gradient

Return type:

None

property target_source[source]#
populate_focal_plane(pointing=None)[source]#

It populates the empty focal plane with monocromatic PSFs.

Parameters:

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

Returns:

focal plane array populated

Return type:

Signal

populate_bkg_focal_plane(pointing=None)[source]#

It populates the empty background focal plane with monocromatic PSFs for each of the background sources.

Parameters:

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

Returns:

background focal plane array populated

Return type:

Signal

apply_irf()[source]#

It applies the intra pixel response function (IRF) to the focal plane

Returns:

focal plane array

Return type:

Signal

populate_foreground_focal_plane()[source]#

It adds the foreground contribution to the foreground focal plane

Returns:

focal plane array

Return type:

Signal