sasktran2.constituent.NumberDensityScatterer2D#
- class sasktran2.constituent.NumberDensityScatterer2D(optical_property: OpticalProperty, number_density: ndarray, **kwargs)[source]#
Bases:
ConstituentA scatterer specified by number density on a Geometry2D grid.
The number density and all spatially varying optical-property arguments are stored in
(horizontal, altitude)order. They are used directly on the nativeGeometry2Dgrid without interpolation or an expanded identity mapping.- Parameters:
optical_property (OpticalProperty) – Property supplying extinction, scattering, and phase-function data.
number_density (numpy.ndarray) – Particle number density in
m^-3with shape(horizontal, altitude).**kwargs – Additional spatial inputs for
optical_property. Each input must be either a scalar or an array with the same shape asnumber_density. Scalars are applied uniformly to all locations.
Methods
__init__(optical_property, number_density, ...)add_to_atmosphere(atmo)register_derivative(atmo, name)Attributes
Particle number density 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".