pub enum LevelType {
Surface,
Isobaric,
MeanSeaLevel,
HeightAboveGround,
Sigma,
Hybrid,
DepthBelowLand,
Isentropic,
EntireAtmosphere,
Unknown(u8),
}Expand description
Level type definitions for GRIB
Variants§
Surface
Surface (ground or water surface)
Isobaric
Isobaric surface (pressure level in Pa)
MeanSeaLevel
Mean sea level
HeightAboveGround
Specified height above ground (m)
Sigma
Sigma level
Hybrid
Hybrid level
DepthBelowLand
Depth below land surface (m)
Isentropic
Isentropic level (K)
EntireAtmosphere
Entire atmosphere (single layer)
Unknown(u8)
Unknown or unsupported level type
Implementations§
Source§impl LevelType
impl LevelType
Sourcepub fn from_grib2_code(code: u8) -> Self
pub fn from_grib2_code(code: u8) -> Self
Create level type from GRIB2 fixed surface type code
Sourcepub fn from_grib1_code(code: u8) -> Self
pub fn from_grib1_code(code: u8) -> Self
Create level type from GRIB1 level type code
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get human-readable description
Trait Implementations§
impl Copy for LevelType
impl Eq for LevelType
impl StructuralPartialEq for LevelType
Auto Trait Implementations§
impl Freeze for LevelType
impl RefUnwindSafe for LevelType
impl Send for LevelType
impl Sync for LevelType
impl Unpin for LevelType
impl UnsafeUnpin for LevelType
impl UnwindSafe for LevelType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more