Enum sounding_validate::ValidationError[][src]

pub enum ValidationError {
    NoPressureProfile,
    InvalidVectorLength(&'static strusizeusize),
    PressureNotDecreasingWithHeight,
    TemperatureLessThanWetBulb(f64f64),
    TemperatureLessThanDewPoint(f64f64),
    WetBulbLessThanDewPoint(f64f64),
    InvalidNegativeValue(&'static strf64),
    InvalidWindDirection(f64),
}

Validation errors.

Variants

Sounding did not have a profile for pressure.

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.

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.

Checks the required relationship between temperature and wet bulb.

Checks the required relationship between temperature and dew point.

Checks the required relationship between wet bulb and dew point.

Invalid negative value, such as speed which must be positive.

Invalid wind direction.

Trait Implementations

impl Clone for ValidationError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ValidationError
[src]

impl Debug for ValidationError
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ValidationError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations