Output#

class sasktran2.OutputIdeal(nstokes: int)[source]#

Bases: Output

The default output container used by SASKTRAN2. Here radiances (and derivatives) are returned back densely for every input line of sight and wavelength without modification.

Parameters:

nstokes (int) – Number of stokes parameters to store for the output quantities

Raises:

ValueError – If nstokes is not 1 or 3

internal_output() OutputIdealStokes_1 | OutputIdealStokes_3[source]#

The internal output object that can be passed to the internal engine

Return type:

Union[sk.OutputIdealStokes_1, sk.OutputIdealStokes_3]

post_process(atmo: Atmosphere, geometry: Geometry1D, viewing_geo: ViewingGeometry)[source]#

Converts the raw output values to a more usable format. Also performs the mapping of raw model derivatives to derivatives of the constituent input quantities.

Parameters:
  • atmo (sk.Atmosphere) – Atmosphere object after calculation has been performed

  • geometry (sk.Geometry1D) – Geometry object

  • viewing_geo (sk.ViewingGeometry) – Viewing geometry

Return type:

xr.Dataset

Base Objects#

class sasktran2.Output[source]#

Bases: ABC

An abstract class which defines how output from the radiative transfer Engine is handled.

The Engine first calls internal_output() to get a pybind11 object which can be passed to the internal radiative transfer model. After the calculation is completed, post_process() is called to get the exact output container that is passed back to the user.

Internal Objects#

class sasktran2.OutputIdealStokes_1(self: sasktran2._core.OutputIdealStokes_1)#

Bases: OutputStokes_1

class sasktran2.OutputIdealStokes_3(self: sasktran2._core.OutputIdealStokes_3)#

Bases: OutputStokes_3