pub struct Egm2008RasterWindow { /* private fields */ }Expand description
A full or cropped EGM2008 row-framed raster window.
The window describes the bytes passed to
GeoidGrid::from_egm2008_raster_window. The byte stream contains one
Fortran sequential record per latitude row, ordered north-to-south, with
n_lon REAL*4 samples per row. The resulting GeoidGrid stores rows
latitude-ascending and uses the same bilinear interpolation path as every
other geoid grid in this module.
Implementations§
Source§impl Egm2008RasterWindow
impl Egm2008RasterWindow
Sourcepub fn new(
spacing: Egm2008GridSpacing,
lat_min_deg: f64,
lon_min_deg: f64,
n_lat: usize,
n_lon: usize,
) -> Result<Self, GeoidError>
pub fn new( spacing: Egm2008GridSpacing, lat_min_deg: f64, lon_min_deg: f64, n_lat: usize, n_lon: usize, ) -> Result<Self, GeoidError>
Build a window descriptor for EGM2008 row-framed raster bytes.
lat_min_deg and lon_min_deg are the southwest node of the resulting
grid in degrees. n_lat and n_lon are the node counts in the supplied
byte stream. Returns GeoidError if a dimension is zero, an origin is
not finite, the latitude span falls outside [-90, 90], or the longitude
span exceeds a full global revolution.
Sourcepub fn global(spacing: Egm2008GridSpacing) -> Self
pub fn global(spacing: Egm2008GridSpacing) -> Self
Build the official full-global EGM2008 window for a spacing.
Sourcepub fn spacing(self) -> Egm2008GridSpacing
pub fn spacing(self) -> Egm2008GridSpacing
Raster spacing for this window.
Sourcepub fn lat_min_deg(self) -> f64
pub fn lat_min_deg(self) -> f64
Southwest latitude of this window in degrees.
Sourcepub fn lon_min_deg(self) -> f64
pub fn lon_min_deg(self) -> f64
Western longitude of this window in degrees.
Trait Implementations§
Source§impl Clone for Egm2008RasterWindow
impl Clone for Egm2008RasterWindow
Source§fn clone(&self) -> Egm2008RasterWindow
fn clone(&self) -> Egm2008RasterWindow
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Egm2008RasterWindow
Source§impl Debug for Egm2008RasterWindow
impl Debug for Egm2008RasterWindow
Source§impl PartialEq for Egm2008RasterWindow
impl PartialEq for Egm2008RasterWindow
Source§fn eq(&self, other: &Egm2008RasterWindow) -> bool
fn eq(&self, other: &Egm2008RasterWindow) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Egm2008RasterWindow
Auto Trait Implementations§
impl Freeze for Egm2008RasterWindow
impl RefUnwindSafe for Egm2008RasterWindow
impl Send for Egm2008RasterWindow
impl Sync for Egm2008RasterWindow
impl Unpin for Egm2008RasterWindow
impl UnsafeUnpin for Egm2008RasterWindow
impl UnwindSafe for Egm2008RasterWindow
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
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.