Grib2Template40

Struct Grib2Template40 

Source
pub struct Grib2Template40 {
Show 19 fields pub category: String, pub values: TableCategory, pub parameter_category: u8, pub parameter_number: u8, pub gen_process_type: Grib2Table4_3, pub background_gen_process: u8, pub forecast_gen_process: Grib2TableA, pub hours_after_ref_time: u16, pub min_after_ref_time: u8, pub unit_of_time_range_indicator: Grib2Table4_4, pub forecast_time: Date, pub surface1: TypeAndUnit, pub surface1_type: u8, pub surface1_scale: u8, pub surface1_value: u32, pub surface2: TypeAndUnit, pub surface2_type: u8, pub surface2_scale: u8, pub surface2_value: u32,
}
Expand description

PRODUCT DEFINITION TEMPLATE 4.0

Analysis or forecast at a horizontal level or in a horizontal layer at a point in time.

Read more…

Fields§

§category: String

table accessed category

§values: TableCategory

Paramater

§parameter_category: u8

Parameter category (see Code Table 4.1)

§parameter_number: u8

Parameter number (see Code Table 4.2)

§gen_process_type: Grib2Table4_3

Type of generating process (see Code Table 4.3)

§background_gen_process: u8

Background generating process identifier (defined by originating centre)

§forecast_gen_process: Grib2TableA

Analysis or forecast generating process identifier (see Code ON388 Table A)

§hours_after_ref_time: u16

Hours after reference time data cutoff (see Notes)

§min_after_ref_time: u8

Minutes after reference time data cutoff (see Notes)

§unit_of_time_range_indicator: Grib2Table4_4

Indicator of unit of time range (see Code Table 4.4)

§forecast_time: Date

Forecast time in units defined by octet 18

§surface1: TypeAndUnit

First fixed surface

§surface1_type: u8

Type of first fixed surface (see Code Table 4.5)

§surface1_scale: u8

Scale factor of first fixed surface

§surface1_value: u32

Scaled value of first fixed surface

§surface2: TypeAndUnit

Second fixed surface

§surface2_type: u8

Type of second fixed surface (see Code Table 4.5)

§surface2_scale: u8

Scale factor of second fixed surface

§surface2_value: u32

Scaled value of second fixed surface

Implementations§

Source§

impl Grib2Template40

Source

pub fn new<T: Reader>(reader: &T, sections: &Grib2Sections) -> Self

Create a new instance of Grib2ProductDefinition

§Parameters
  • section: the byte data to read
  • sections: the sections of the GRIB2 message that have been parsed so far
§Returns

The parsed template

Trait Implementations§

Source§

impl Clone for Grib2Template40

Source§

fn clone(&self) -> Grib2Template40

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Grib2Template40

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Grib2Template40

Source§

fn eq(&self, other: &Grib2Template40) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Grib2Template40

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V