Skip to main content

LatLonGrid

Struct LatLonGrid 

Source
pub struct LatLonGrid {
    pub grid: Grid,
    pub i_direction_inc: u32,
    pub j_direction_inc: u32,
    pub scanning_mode: ScanningMode,
}

Fields§

§grid: Grid§i_direction_inc: u32

Di - i direction increment (see Notes 1 and 5).

§j_direction_inc: u32

Dj - j direction increment (see Notes 1 and 5).

§scanning_mode: ScanningMode

Trait Implementations§

Source§

impl Debug for LatLonGrid

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Dump for LatLonGrid

Source§

fn dump<W: Write>( &self, parent: Option<&Cow<'_, str>>, pos: &mut usize, output: &mut W, ) -> Result<(), Error>

Perform dumping to output. Read more
Source§

impl GridPointIndex for LatLonGrid

Source§

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.
Source§

fn scanning_mode(&self) -> &ScanningMode

Returns ScanningMode used for the iteration.
Source§

fn ij(&self) -> Result<GridPointIndexIterator, GribError>

Returns an iterator over 2D index (i, j) of grid points.
Source§

impl GridShortName for LatLonGrid

Source§

fn short_name(&self) -> &'static str

Returns the grid type. Read more
Source§

impl LatLons for LatLonGrid

Source§

type Iter<'a> = RegularGridIterator

Source§

fn latlons<'a>(&'a self) -> Result<Self::Iter<'a>, GribError>

Computes and returns an iterator over latitudes and longitudes of grid points in degrees. Read more
Source§

impl PartialEq for LatLonGrid

Source§

fn eq(&self, other: &LatLonGrid) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFromSlice for LatLonGrid

Source§

fn try_from_slice(slice: &[u8], pos: &mut usize) -> TryFromSliceResult<Self>

Performs reading. The pos argument is a variable storing the starting position for reading within the slice. Read more
Source§

impl Eq for LatLonGrid

Source§

impl StructuralPartialEq for LatLonGrid

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> DumpField for T
where T: Dump,

§

fn dump_field<W>( &self, name: &str, parent: Option<&Cow<'_, str>>, _doc: &str, pos: &mut usize, output: &mut W, ) -> Result<(), Error>
where W: Write,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.