Volume Mixing Ratios
RRTMGP.VolumeMixingRatios.AbstractVmr — TypeAbstractVmr{FT}Abstract type for storage strategies for gas volume mixing ratios.
Concrete subtypes:
VmrGM: H₂O and O₃ vary spatially, other gases are well-mixed scalars.Vmr: every gas varies by layer and column.
Subtypes are accessed through the interface method get_vmr, which returns the volume mixing ratio of a given gas for a given layer and column.
RRTMGP.VolumeMixingRatios.Vmr — TypeVmr{FT, FTA3D} <: AbstractVmr{FT}Volume mixing ratios for various gases in the atmosphere. This struct can be used when concentrations vary spatially for all gases.
Fields
vmr: Volume mixing ratios of all gases as a function of layer and column.
RRTMGP.VolumeMixingRatios.VmrGM — TypeVmrGM{FT, FTA1D, FTA2D} <: AbstractVmr{FT}Volume mixing ratios for various gases in the atmosphere. This struct can be used when only H₂O and O₃ concentrations vary spatially and a global mean is used for all other gases.
Fields
vmr_h2o: Volume mixing ratio of H₂O.vmr_o3: Volume mixing ratio of O₃.vmr: Volume mixing ratios of all other gases, which are independent of location and column.
RRTMGP.VolumeMixingRatios.get_vmr — Functionget_vmr(
vmr::VmrGM{FT},
ig::Int,
ilay::Int,
icol::Int,
) where {FT<:AbstractFloat}Obtain volume mixing ratio of gas ig for layer ilay of column icol.
get_vmr(
vmr::Vmr{FT},
ig::Int,
ilay::Int,
icol::Int,
) where {FT<:AbstractFloat}Obtain volume mixing ratio of gas ig for layer ilay of column icol.