Skip to main content

grib/def/grib2/
table3.rs

1use grib_template_derive::{CodeTable, Dump, TryFromSlice, WriteToBuffer};
2
3#[derive(Debug, PartialEq, Eq, Clone, Copy, TryFromSlice, WriteToBuffer, Dump, CodeTable)]
4#[code_table(file = "def/GRIB2/GRIB2_CodeFlag_3_1_CodeTable_en.csv", format = wmo_grib2_tables)]
5#[dump(code_table)]
6pub struct GridDefinitionTemplateNum(
7    /// Grid definition template number (= N) (see Code table 3.1).
8    pub u16,
9);
10
11#[derive(Debug, PartialEq, Eq, Clone, Copy, TryFromSlice, WriteToBuffer, Dump, CodeTable)]
12#[code_table(file = "def/GRIB2/GRIB2_CodeFlag_3_2_CodeTable_en.csv", format = wmo_grib2_tables)]
13#[dump(code_table)]
14pub struct EarthShapeType(
15    /// Shape of the Earth (see Code table 3.2).
16    pub u8,
17);
18
19#[derive(Debug, PartialEq, Eq, Clone, Copy, TryFromSlice, WriteToBuffer, Dump)]
20#[dump(flag)]
21pub struct ResolutionAndComponentFlags(
22    /// Resolution and component flags (see Flag table 3.3).
23    pub u8,
24);
25
26#[derive(Debug, PartialEq, Eq, Clone, Copy, TryFromSlice, WriteToBuffer, Dump)]
27#[dump(flag)]
28pub struct ScanningMode(
29    /// Scanning mode (flags - see Flag table 3.4).
30    pub u8,
31);
32
33#[derive(Debug, PartialEq, Eq, Clone, Copy, TryFromSlice, WriteToBuffer, Dump)]
34#[dump(flag)]
35pub struct ProjectionCentreFlag(
36    /// Projection centre flag (see Flag table 3.5).
37    pub u8,
38);
39
40#[derive(Debug, PartialEq, Eq, Clone, Copy, TryFromSlice, WriteToBuffer, Dump, CodeTable)]
41#[code_table(file = "def/GRIB2/GRIB2_CodeFlag_3_11_CodeTable_en.csv", format = wmo_grib2_tables)]
42#[dump(code_table)]
43pub struct PointListInterpretation(
44    /// Interpretation of list of numbers (see Code table 3.11).
45    pub u8,
46);