pub struct LatLonGrid {
pub ni: u32,
pub nj: u32,
pub lat_first: i32,
pub lon_first: i32,
pub lat_last: i32,
pub lon_last: i32,
pub di: u32,
pub dj: u32,
pub scanning_mode: u8,
}Expand description
Template 3.0: Regular latitude/longitude grid.
Fields§
§ni: u32§nj: u32§lat_first: i32§lon_first: i32§lat_last: i32§lon_last: i32§di: u32§dj: u32§scanning_mode: u8Implementations§
Source§impl LatLonGrid
impl LatLonGrid
pub fn longitudes(&self) -> Vec<f64>
pub fn latitudes(&self) -> Vec<f64>
pub fn reorder_for_ndarray<T>(&self, values: Vec<T>) -> Result<Vec<T>, Error>
pub fn reorder_for_ndarray_in_place<T>( &self, values: &mut [T], ) -> Result<(), Error>
pub fn reorder_grib_scan_to_ndarray<T>( &self, values: Vec<T>, ) -> Result<Vec<T>, Error>
pub fn reorder_grib_scan_to_ndarray_in_place<T>( &self, values: &mut [T], ) -> Result<(), Error>
pub fn reorder_ndarray_to_grib_scan<T>( &self, values: Vec<T>, ) -> Result<Vec<T>, Error>
pub fn reorder_ndarray_to_grib_scan_in_place<T>( &self, values: &mut [T], ) -> Result<(), Error>
pub fn validate_supported_scan_order(&self) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for LatLonGrid
impl Clone for LatLonGrid
Source§fn clone(&self) -> LatLonGrid
fn clone(&self) -> LatLonGrid
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LatLonGrid
impl Debug for LatLonGrid
Source§impl PartialEq for LatLonGrid
impl PartialEq for LatLonGrid
impl StructuralPartialEq for LatLonGrid
Auto Trait Implementations§
impl Freeze for LatLonGrid
impl RefUnwindSafe for LatLonGrid
impl Send for LatLonGrid
impl Sync for LatLonGrid
impl Unpin for LatLonGrid
impl UnsafeUnpin for LatLonGrid
impl UnwindSafe for LatLonGrid
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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