sasktran2.constituent.VMRAbsorber2D#
- class sasktran2.constituent.VMRAbsorber2D(optical_property: OpticalProperty, vmr: ndarray)[source]#
Bases:
ConstituentAn absorber specified by VMR on the native Geometry2D grid.
The VMR is stored in
(horizontal, altitude)order and must match theGeometry2Dused 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).
Methods
__init__(optical_property, vmr)add_to_atmosphere(atmo)register_derivative(atmo, name)Attributes
Volume mixing ratio in
(horizontal, altitude)order.Spatial input mode used when adding the constituent to an atmosphere.
- 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".