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
NoPressureProfileSounding 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.
PressureNotDecreasingWithHeightPressure 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 ValidationErrorfn clone(&self) -> ValidationError[src]
fn clone(&self) -> ValidationErrorReturns 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 ValidationErrorimpl Debug for ValidationError[src]
impl Debug for ValidationErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for ValidationError[src]
impl PartialEq for ValidationErrorfn eq(&self, other: &ValidationError) -> bool[src]
fn eq(&self, other: &ValidationError) -> boolThis 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) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for ValidationError
impl Send for ValidationErrorimpl Sync for ValidationError
impl Sync for ValidationError