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 moreimpl Copy for BarometricState
§impl Debug for BarometricState
impl Debug for BarometricState
§impl Default for BarometricState
impl Default for BarometricState
§fn default() -> BarometricState
fn default() -> BarometricState
§impl PartialEq for BarometricState
impl PartialEq for BarometricState
impl StructuralPartialEq for BarometricState
Auto Trait Implementations§
impl Freeze for BarometricState
impl RefUnwindSafe for BarometricState
impl Send for BarometricState
impl Sync for BarometricState
impl Unpin for BarometricState
impl UnsafeUnpin for BarometricState
impl UnwindSafe for BarometricState
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more