grib/def/grib2/template1.rs
1use grib_template_derive::{Dump, TryFromSlice};
2
3/// Identification template 1.0 – calendar definition.
4#[derive(Debug, PartialEq, TryFromSlice, Dump)]
5pub struct Template1_0 {
6 /// Type of calendar (see Code table 1.6).
7 pub calendar_type: u8,
8}
9
10/// Identification template 1.1 – paleontological offset.
11#[derive(Debug, PartialEq, TryFromSlice, Dump)]
12pub struct Template1_1 {
13 /// Number of tens of thousands of years of offset.
14 pub paleontological_offset: u16,
15}
16
17/// Identification template 1.2 – calendar definition and paleontological
18/// offset.
19#[derive(Debug, PartialEq, TryFromSlice, Dump)]
20pub struct Template1_2 {
21 /// Type of calendar (see Code table 1.6).
22 pub calendar_type: u8,
23 /// Number of tens of thousands of years of offset.
24 pub paleontological_offset: u16,
25}