sasktran2.constituent.VMRAbsorber2D#

class sasktran2.constituent.VMRAbsorber2D(optical_property: OpticalProperty, vmr: ndarray)[source]#

Bases: Constituent

An absorber specified by VMR on the native Geometry2D grid.

The VMR is stored in (horizontal, altitude) order and must match the Geometry2D used by the atmosphere. No spatial interpolation or horizontal broadcasting is performed.

Parameters:
  • optical_property (OpticalProperty) – Property that supplies absorption cross sections.

  • vmr (numpy.ndarray) – Volume mixing ratio with shape (horizontal, altitude).

__init__(optical_property: OpticalProperty, vmr: ndarray) None[source]#

Methods

__init__(optical_property, vmr)

add_to_atmosphere(atmo)

register_derivative(atmo, name)

Attributes

vmr

Volume mixing ratio in (horizontal, altitude) order.

volume_spatial_mode

Spatial input mode used when adding the constituent to an atmosphere.

property vmr: ndarray#

Volume mixing ratio in (horizontal, altitude) order.

property volume_spatial_mode: str#

Spatial input mode used when adding the constituent to an atmosphere.

Existing constituents are altitude profiles and are broadcast across the horizontal dimension of a 2D atmosphere. New constituents that consume native 2D fields can override this with "native_2d".