pub enum GridDefinitionTemplateValues {
Template0(LatLonGridDefinition),
Template20(PolarStereographicGridDefinition),
Template30(LambertGridDefinition),
Template40(GaussianGridDefinition),
}
Variants§
Template0(LatLonGridDefinition)
Template20(PolarStereographicGridDefinition)
Template30(LambertGridDefinition)
Template40(GaussianGridDefinition)
Implementations§
source§impl GridDefinitionTemplateValues
impl GridDefinitionTemplateValues
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.
The grid types are denoted as short strings based on gridType
used in
ecCodes.
This is provided primarily for debugging and simple notation purposes. It is better to use enum variants instead of the string notation to determine 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<GridPointIterator, GribError>
pub fn latlons(&self) -> Result<GridPointIterator, 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 GridDefinitionTemplateValues
impl Debug for GridDefinitionTemplateValues
source§impl PartialEq for GridDefinitionTemplateValues
impl PartialEq for GridDefinitionTemplateValues
source§fn eq(&self, other: &GridDefinitionTemplateValues) -> bool
fn eq(&self, other: &GridDefinitionTemplateValues) -> bool
self
and other
values to be equal, and is used
by ==
.