Struct BarometricState
#[repr(C)]pub struct BarometricState {
pub mslp_hpa: f32,
pub temperature_c: f32,
pub dew_point_c: f32,
pub relative_humidity: f32,
pub wind_vector_10m: [f32; 2],
}Expand description
Synoptic thermodynamic and barometric state of the air column.
Fields§
§mslp_hpa: f32Mean Sea Level Pressure in hPa (e.g., 1013.25).
temperature_c: f32Ambient air temperature at 2m in degrees Celsius.
dew_point_c: f32Dew point temperature at 2m in degrees Celsius.
relative_humidity: f32Relative humidity in [0.0, 1.0].
wind_vector_10m: [f32; 2]Horizontal geostrophic wind vector [u, v] at 10m in m/s.
Implementations§
§impl BarometricState
impl BarometricState
pub fn air_density(&self, altitude_m: f32) -> f32
pub fn air_density(&self, altitude_m: f32) -> f32
Calculates air density $\rho_{\text{air}}$ (in kg/m³) using the ideal gas law for moist air: $\rho = \frac{P_d}{R_d T} + \frac{P_v}{R_v T}$
pub fn lifting_condensation_level_m(&self) -> f32
pub fn lifting_condensation_level_m(&self) -> f32
Evaluates the Lifting Condensation Level (LCL) height above ground in meters. Air forced over mountains condenses and triggers precipitation when $z \ge z_{\text{LCL}}$.
pub fn inverse_barometer_offset_m(&self) -> f32
pub fn inverse_barometer_offset_m(&self) -> f32
Inverse Barometer Effect: Evaluates the static sea surface elevation anomaly (in meters). Low pressure centers (storms) cause water levels to bulge upward by ~1 cm per 1 hPa drop.
pub fn wind_speed_10m(&self) -> f32
pub fn wind_speed_10m(&self) -> f32
Horizontal wind speed magnitude at 10m in m/s.
Trait Implementations§
§impl Clone for BarometricState
impl Clone for BarometricState
§fn clone(&self) -> BarometricState
fn clone(&self) -> BarometricState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more