pub struct EquatorialTemplate {Show 20 fields
pub shape: Grib2Table3_2,
pub radius_scale_factor: u8,
pub radius_scale_value: u32,
pub major_axis_scale_factor: u8,
pub major_axis_scale_value: u32,
pub minor_axis_scale_factor: u8,
pub minor_axis_scale_value: u32,
pub nx: u32,
pub ny: u32,
pub basic_angle: f64,
pub subdivisions: f64,
pub lat1: f64,
pub lon1: f64,
pub resolution: Grib2Table3_3,
pub lat2: f64,
pub lon2: f64,
pub dx: f64,
pub dy: f64,
pub scan_mode: Grib2Table3_4,
pub grid_units: Grib2GridUnits,
}Expand description
§GRIB2 - GRID DEFINITION TEMPLATE 3.0
§Latitude/Longitude (or equidistant cylindrical, or Plate Carree)
§Links
§Notes
-
Basic angle of the initial production domain and subdivisions of this basic angle are provided to manage cases where the recommended unit of 10-6 degrees is not applicable to describe the extreme longitudes and latitudes, and direction increments. For these last six descriptors, the unit is equal to the ratio of the basic angle and the subdivisions number. For ordinary cases, zero and missing values should be coded, equivalent to respective values of 1 and 106 (10-6 degrees unit).
-
For data on a quasi-regular grid, in which all the rows or columns do not necessarily have the same number of grid points either Ni (octets 31-34) of Nj (octets 35-38) and the corresponding Di (octets 64-67) or Dj (octets 68-71) shall be coded with all bits set to 1 (missing). The actual number of points along each parallel or meridian shall be coded in the octets immediately following the grid definition template (octets [xx+1]-nn), as described in the description of the grid definition section.
-
A quasi-regular grid is only defined for appropriate grid scanning modes. Either rows or columns, but not both simultaneously, may have variable numbers of points or variable spacing. The first point in each row (column) shall be positioned at the meridian (parallel) indicted by octets 47-54. The grid points shall be evenly spaced in latitude (longitude).
A scale value of radius of spherical Earth, or major axis of oblate spheroid Earth is delivered from applying appropriate scale factor to the value expressed in meters.
-
It is recommended to use unsigned direction increments.
-
In most cases, multiplying Ni (octets 31-34) by Nj (octets 35-38) yields the total number of points in the grid. However, this may not be true if bit 8 of the scanning mode flags (octet 72) is set to 1.
Fields§
§shape: Grib2Table3_2Shape of Earth Table 3.2
radius_scale_factor: u8Scale Factor of radius of spherical Earth
radius_scale_value: u32Scale value of radius of spherical Earth
major_axis_scale_factor: u8Scale factor of major axis of oblate spheroid Earth
major_axis_scale_value: u32Scale value of major axis of oblate spheroid Earth
minor_axis_scale_factor: u8Scale factor of minor axis of oblate spheroid Earth
minor_axis_scale_value: u32Scale value of minor axis of oblate spheroid Earth
nx: u32Number of points along a parallel (W-E)
ny: u32Number of points along a meridian (N-S)
basic_angle: f64Basic angle of the initial production domain
subdivisions: f64Subdivisions of basic angle used to define extreme longitudes and latitudes, and direction increments
lat1: f64Latitude of first grid point
lon1: f64Longitude of first grid point
resolution: Grib2Table3_3Resolution and component flags Table 3.3
lat2: f64Latitude of last grid point
lon2: f64Longitude of last grid point
dx: f64i direction increment
dy: f64j direction increment
scan_mode: Grib2Table3_4Scanning mode Table 3.4
grid_units: Grib2GridUnitsGrid Units
Implementations§
Source§impl EquatorialTemplate
impl EquatorialTemplate
Sourcepub fn build_grid(&mut self) -> VectorMultiPoint
pub fn build_grid(&mut self) -> VectorMultiPoint
Convert this section into grid data
Trait Implementations§
Source§impl Clone for EquatorialTemplate
impl Clone for EquatorialTemplate
Source§fn clone(&self) -> EquatorialTemplate
fn clone(&self) -> EquatorialTemplate
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EquatorialTemplate
impl Debug for EquatorialTemplate
Source§impl PartialEq for EquatorialTemplate
impl PartialEq for EquatorialTemplate
impl StructuralPartialEq for EquatorialTemplate
Auto Trait Implementations§
impl Freeze for EquatorialTemplate
impl RefUnwindSafe for EquatorialTemplate
impl Send for EquatorialTemplate
impl Sync for EquatorialTemplate
impl Unpin for EquatorialTemplate
impl UnwindSafe for EquatorialTemplate
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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