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),
}
Expand description
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§
source§impl Clone for ValidationError
impl Clone for ValidationError
source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more