sasktran2.Engine#

class sasktran2.Engine(config: Config, model_geometry: Geometry1D, viewing_geo: ViewingGeometry)[source]#

Bases: object

An Engine is the main class that handles the radiative transfer calculation. The calculation takes place in two components.

First, upon construction of the Engine, the majority of the geometry information is computed and cached.

The main calculation takes place when calling calculate_radiance() with an sasktran2.Atmosphere object where the actual radiative transfer calculation is performed.

Parameters:
  • config (sk.Config) – Configuration object

  • model_geometry (sk.Geometry1D) – Geometry for the model

  • viewing_geo (sk.ViewingGeometry) – Viewing geometry

__init__(config: Config, model_geometry: Geometry1D, viewing_geo: ViewingGeometry)[source]#

An Engine is the main class that handles the radiative transfer calculation. The calculation takes place in two components.

First, upon construction of the Engine, the majority of the geometry information is computed and cached.

The main calculation takes place when calling calculate_radiance() with an sasktran2.Atmosphere object where the actual radiative transfer calculation is performed.

Parameters:
  • config (sk.Config) – Configuration object

  • model_geometry (sk.Geometry1D) – Geometry for the model

  • viewing_geo (sk.ViewingGeometry) – Viewing geometry

Methods

__init__(config, model_geometry, viewing_geo)

An Engine is the main class that handles the radiative transfer calculation.

calculate_radiance(atmosphere[, output])

Performs the radiative transfer calculation for a given atmosphere

calculate_radiance(atmosphere: Atmosphere, output: Output = None)[source]#

Performs the radiative transfer calculation for a given atmosphere

Parameters:
  • atmosphere (sk.Atmosphere) – _description_

  • output (sk.Output, optional) – Optional abstract output type. Can be specified to change the output format. If set to None, the default sasktran2.OutputIdeal class is used, by default None

Returns:

Exact return type depends upon what output is set to. For the default sasktran2.OutputIdeal, the output format is an xarray Dataset. See for example, sasktran2.OutputIdeal.post_process()

Return type:

varies