Enum sounding_validate::ValidationError [−][src]
pub enum ValidationError { NoPressureProfile, InvalidVectorLength(&'static str, usize, usize), PressureNotDecreasingWithHeight, TemperatureLessThanWetBulb(f64, f64), TemperatureLessThanDewPoint(f64, f64), WetBulbLessThanDewPoint(f64, f64), InvalidNegativeValue(&'static str, f64), InvalidWindDirection(f64), }
Validation errors.
Variants
NoPressureProfile
Sounding did not have a profile for pressure.
InvalidVectorLength(&'static str, usize, usize)
One of the profiles had a vector length that did not match the length of the pressure
profile vector. This is required because pressure is the vertical coordinate. The string is
the name of the profile, the first usize
is the length of that profile, and the second
usize
is the length it should have been.
PressureNotDecreasingWithHeight
Pressure not decreasing with height. This also checks that geopotential increases "with height". It assumes the vectors are sorted with values from the lowest level to the highest level above ground.
TemperatureLessThanWetBulb(f64, f64)
Checks the required relationship between temperature and wet bulb.
TemperatureLessThanDewPoint(f64, f64)
Checks the required relationship between temperature and dew point.
WetBulbLessThanDewPoint(f64, f64)
Checks the required relationship between wet bulb and dew point.
InvalidNegativeValue(&'static str, f64)
Invalid negative value, such as speed which must be positive.
InvalidWindDirection(f64)
Invalid wind direction.
Trait Implementations
impl Clone for ValidationError
[src]
impl Clone for ValidationError
fn clone(&self) -> ValidationError
[src]
fn clone(&self) -> ValidationError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for ValidationError
[src]
impl Copy for ValidationError
impl Debug for ValidationError
[src]
impl Debug for ValidationError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ValidationError
[src]
impl PartialEq for ValidationError
fn eq(&self, other: &ValidationError) -> bool
[src]
fn eq(&self, other: &ValidationError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ValidationError) -> bool
[src]
fn ne(&self, other: &ValidationError) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Sync for ValidationError