Struct sounding_base::sounding::Sounding
[−]
[src]
pub struct Sounding { pub num: OptionVal<i32>, pub valid_time: Option<NaiveDateTime>, pub lead_time: OptionVal<i32>, pub lat: OptionVal<f32>, pub lon: OptionVal<f32>, pub elevation: OptionVal<f32>, pub show: OptionVal<f32>, pub li: OptionVal<f32>, pub swet: OptionVal<f32>, pub kinx: OptionVal<f32>, pub lclp: OptionVal<f32>, pub pwat: OptionVal<f32>, pub totl: OptionVal<f32>, pub cape: OptionVal<f32>, pub lclt: OptionVal<f32>, pub cins: OptionVal<f32>, pub eqlv: OptionVal<f32>, pub lfc: OptionVal<f32>, pub brch: OptionVal<f32>, pub hain: OptionVal<i32>, pub pressure: Vec<OptionVal<f32>>, pub temperature: Vec<OptionVal<f32>>, pub wet_bulb: Vec<OptionVal<f32>>, pub dew_point: Vec<OptionVal<f32>>, pub theta_e: Vec<OptionVal<f32>>, pub direction: Vec<OptionVal<f32>>, pub speed: Vec<OptionVal<f32>>, pub omega: Vec<OptionVal<f32>>, pub height: Vec<OptionVal<f32>>, pub cloud_fraction: Vec<OptionVal<f32>>, pub mslp: OptionVal<f32>, pub station_pres: OptionVal<f32>, pub low_cloud: OptionVal<f32>, pub mid_cloud: OptionVal<f32>, pub hi_cloud: OptionVal<f32>, pub uwind: OptionVal<f32>, pub vwind: OptionVal<f32>, }
All the variables stored in the sounding.
The upper air profile variables are stored in parallel vectors. If a profile lacks a certain variable, e.g. cloud fraction, that whole vector has length 0 instead of being full of missing values.
Fields
num: OptionVal<i32>
station number, USAF number, eg 727730
valid_time: Option<NaiveDateTime>
Valid time of sounding
lead_time: OptionVal<i32>
Difference in model initialization time and valid_time
in hours.
lat: OptionVal<f32>
Latitude of grid point used to make sounding.
lon: OptionVal<f32>
Longitude of grid point used to make sounding.
elevation: OptionVal<f32>
Elevation of grid point in meters, this is in model terrain, not necessarily the same as the real world.
show: OptionVal<f32>
Showalter index
li: OptionVal<f32>
Lifted index
swet: OptionVal<f32>
Severe Weather Threat Index
kinx: OptionVal<f32>
K-index
lclp: OptionVal<f32>
Lifting Condensation Level, or LCL (hPa), pressure vertical coordinate.
pwat: OptionVal<f32>
Precipitable Water (mm)
totl: OptionVal<f32>
Total-Totals
cape: OptionVal<f32>
Convective Available Potential Energy, or CAPE. (J/kg)
lclt: OptionVal<f32>
Temperature at LCL (K)
cins: OptionVal<f32>
Convective Inhibitive Energy, or CIN (J/kg)
eqlv: OptionVal<f32>
Equilibrium Level (hPa), pressure vertical coordinate
lfc: OptionVal<f32>
Level of Free Convection (hPa), pressure vertical coordinate
brch: OptionVal<f32>
Bulk Richardson Number
hain: OptionVal<i32>
Haines Index
pressure: Vec<OptionVal<f32>>
Pressure (hPa) profile
temperature: Vec<OptionVal<f32>>
Temperature (c) profile
wet_bulb: Vec<OptionVal<f32>>
Wet-bulb (c) profile
dew_point: Vec<OptionVal<f32>>
Dew Point (C) profile
theta_e: Vec<OptionVal<f32>>
Equivalent Potential Temperature (K) profile
direction: Vec<OptionVal<f32>>
Wind direction (degrees) profile
speed: Vec<OptionVal<f32>>
Wind speed (knots) profile
omega: Vec<OptionVal<f32>>
Vertical velocity (Pa/sec), pressure vertical coordinate
height: Vec<OptionVal<f32>>
Geopotential Height (m) profile
cloud_fraction: Vec<OptionVal<f32>>
Cloud coverage fraction in percent
mslp: OptionVal<f32>
Surface pressure reduce to mean sea level (hPa)
station_pres: OptionVal<f32>
Surface pressure (hPa)
low_cloud: OptionVal<f32>
Low cloud fraction
mid_cloud: OptionVal<f32>
Mid cloud fraction
hi_cloud: OptionVal<f32>
Hi cloud fraction
uwind: OptionVal<f32>
U - wind speed (m/s) (West -> East is positive)
vwind: OptionVal<f32>
V - wind speed (m/s) (South -> North is positive)
Methods
impl Sounding
[src]
fn validate(&self) -> Result<()>
[src]
Validates the sounding with some simple sanity checks. For instance, checks that pressure decreases with height.
fn get_pressure_extents(&self) -> (f32, f32, (f32, f32), (f32, f32))
[src]
Returns the maximum and minimum extents.
(max_pressure, min_pressure, (t_min_ext, p_min_ext),(t_max_ext, p_max_ext))