pub struct PolarTemplate {Show 19 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 lat1: f64,
pub lon1: f64,
pub lat_d: f64,
pub lon_v: f64,
pub resolution: Grib2Table3_3,
pub dx: f64,
pub dy: f64,
pub proj_center: Grib2Table3_5,
pub scan_mode: Grib2Table3_4,
pub grid_units: Grib2GridUnits,
}Expand description
§GRIB2 - GRID DEFINITION TEMPLATE 3.20
§Polar Stereographic Projection (Can be North or South)
§Links
§Notes
- The orientation of the grid is given by the longitude of the meridian along which the y-axis increases, LoV.
- The projection is defined by the latitude at which Dx and Dy are specified, LaD.
- Grid lengths Dx and Dy are in meters at the latitude LaD.
- Bit 3 of the resolution and component flags should be set to 1 to indicate that Dx and Dy are given in meters.
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 the x-axis
ny: u32Number of points along the y-axis
lat1: f64Latitude of first grid point
lon1: f64Longitude of first grid point
lat_d: f64Latitude where Dx and Dy are specified
lon_v: f64Orientation of the grid (LoV)
resolution: Grib2Table3_3Resolution and component flags Table 3.3
dx: f64x-direction grid length (meters at LaD)
dy: f64y-direction grid length (meters at LaD)
proj_center: Grib2Table3_5Projection center flag Table 3.5
scan_mode: Grib2Table3_4Scanning mode Table 3.4
grid_units: Grib2GridUnitsGrid Units
Implementations§
Source§impl PolarTemplate
impl PolarTemplate
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 PolarTemplate
impl Clone for PolarTemplate
Source§fn clone(&self) -> PolarTemplate
fn clone(&self) -> PolarTemplate
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolarTemplate
impl Debug for PolarTemplate
Source§impl PartialEq for PolarTemplate
impl PartialEq for PolarTemplate
impl StructuralPartialEq for PolarTemplate
Auto Trait Implementations§
impl Freeze for PolarTemplate
impl RefUnwindSafe for PolarTemplate
impl Send for PolarTemplate
impl Sync for PolarTemplate
impl Unpin for PolarTemplate
impl UnwindSafe for PolarTemplate
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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
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>
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 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>
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