Struct grib::GaussianGridDefinition
source · pub struct GaussianGridDefinition {
pub ni: u32,
pub nj: u32,
pub first_point_lat: i32,
pub first_point_lon: i32,
pub last_point_lat: i32,
pub last_point_lon: i32,
pub i_direction_inc: u32,
pub n: u32,
pub scanning_mode: ScanningMode,
}
Fields§
§ni: u32
§nj: u32
§first_point_lat: i32
§first_point_lon: i32
§last_point_lat: i32
§last_point_lon: i32
§i_direction_inc: u32
§n: u32
§scanning_mode: ScanningMode
Implementations§
source§impl GaussianGridDefinition
impl GaussianGridDefinition
sourcepub fn grid_shape(&self) -> (usize, usize)
pub fn grid_shape(&self) -> (usize, usize)
Returns the shape of the grid, i.e. a tuple of the number of grids in the i and j directions.
sourcepub fn short_name(&self) -> &'static str
pub fn short_name(&self) -> &'static str
Returns the grid type.
sourcepub fn ij(&self) -> Result<GridPointIndexIterator, GribError>
pub fn ij(&self) -> Result<GridPointIndexIterator, GribError>
Returns an iterator over (i, j)
of grid points.
Note that this is a low-level API and it is not checked that the number of iterator iterations is consistent with the number of grid points defined in the data.
sourcepub fn latlons(&self) -> Result<RegularGridIterator, GribError>
pub fn latlons(&self) -> Result<RegularGridIterator, GribError>
Returns an iterator over latitudes and longitudes of grid points in degrees.
Note that this is a low-level API and it is not checked that the number of iterator iterations is consistent with the number of grid points defined in the data.
Trait Implementations§
source§impl Debug for GaussianGridDefinition
impl Debug for GaussianGridDefinition
source§impl PartialEq for GaussianGridDefinition
impl PartialEq for GaussianGridDefinition
source§fn eq(&self, other: &GaussianGridDefinition) -> bool
fn eq(&self, other: &GaussianGridDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GaussianGridDefinition
impl StructuralPartialEq for GaussianGridDefinition
Auto Trait Implementations§
impl Freeze for GaussianGridDefinition
impl RefUnwindSafe for GaussianGridDefinition
impl Send for GaussianGridDefinition
impl Sync for GaussianGridDefinition
impl Unpin for GaussianGridDefinition
impl UnwindSafe for GaussianGridDefinition
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more