constants#

Meteorological constants useful for computations with vertical atmospheric sounding profiles.

namespace sharp#

Variables

static constexpr float RGAS = 8.314462618f#
static constexpr float MDRY = 28.96546e-3f#
static constexpr float MWATER = 18.015268e-3f#
static constexpr float DRYAIR_SPEC_HEAT_RATIO = 1.4f#
static constexpr float ZEROCNK = 273.15f#
static constexpr float HPA_TO_PA = 100.0f#
static constexpr float PA_TO_HPA = 0.01f#
static constexpr float THETA_REF_PRESSURE = 100000.0f#
static constexpr float MISSING = -9999.0f#
static constexpr float GRAVITY = 9.80665f#
static constexpr float TOL = 1e-10f#
static constexpr float PI = 3.14159265f#
static constexpr float RDGAS = RGAS / MDRY#
static constexpr float RVGAS = RGAS / MWATER#
static constexpr float EPSILON = RDGAS / RVGAS#
static constexpr float CP_DRYAIR = DRYAIR_SPEC_HEAT_RATIO * RDGAS / (DRYAIR_SPEC_HEAT_RATIO - 1.0f)#
static constexpr float CP_VAPOR = 1875.0f#
static constexpr float CP_LIQUID = 4190.0f#
static constexpr float CP_ICE = 2118.636f#
static constexpr float EXP_LV = 2.501e6f#
static constexpr float EXP_LS = 2.836017e6f#
static constexpr float LV1 = EXP_LV + (CP_LIQUID - CP_VAPOR) * ZEROCNK#
static constexpr float LV2 = CP_LIQUID - CP_VAPOR#
static constexpr float LS1 = EXP_LS + (CP_ICE - CP_VAPOR) * ZEROCNK#
static constexpr float LS2 = CP_ICE - CP_VAPOR#
static constexpr float ROCP = RDGAS / CP_DRYAIR#
static constexpr float GAMMA_D = GRAVITY / CP_DRYAIR#
static constexpr float PRANDTL = 1.f / 3.f#
static constexpr float VKSQ = 0.18f#
static constexpr float VAPPRES_REF = 611.65f#
static constexpr float RHO_LWAT = 999.97495#