exosim.models.channel#
Classes#
It handles the channel gven the description |
Module Contents#
- class Channel(parameters, wavelength, time, output=None)[source]#
Bases:
exosim.log.LoggerIt handles the channel gven the description
- Variables:
ch_name (str) – channel name
path (dict) – dictionary of
RadianceandDimensionless, represeting the radiance and efficiency of the path.responsivity (
Signal) – channel responsivitytime (
Quantity) – time grid.parameters (dict) – dictionary contained the optical element parameters. This is usually parsed from
LoadOptionswavelength (
ndarrayorQuantity) – wavelength grid. If no units are attached is considered as expressed in um.focal_plane (
Signal) – source focal planefrg_focal_plane (
Signal) – foreground focal planefrg_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 hasisolate=True. The sum of the sub focal planes returns the frg_focal_plane. If not surface hasisolate=True, the dictionary is empty.output (
Output) – output filetarget_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
RadianceandDimensionless, represeting the radiance and efficiency of the path.- Return type:
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:
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
RadianceandDimensionless, represeting the radiance and efficiency of the path.- Return type:
Note
it updates the path attribute of this class
- propagate_sources(sources, Atel)[source]#
It propagates the sources though the channel, by applying
PropagateSources
- create_focal_planes()[source]#
It produces the empty focal planes
- Returns:
focal plane array (with time evolution)
- Return type:
- 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
- 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 isNone- Returns:
focal plane array populated
- Return type:
- 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 isNone- Returns:
background focal plane array populated
- Return type: