Skip to main content

MercatorGrid

Struct MercatorGrid 

Source
pub struct MercatorGrid {
Show 20 fields pub number_of_points: u32, pub shape_of_earth: u8, pub scale_factor_radius: u8, pub scaled_value_radius: u32, pub scale_factor_major_axis: u8, pub scaled_value_major_axis: u32, pub scale_factor_minor_axis: u8, pub scaled_value_minor_axis: u32, pub ni: u32, pub nj: u32, pub lat_first: i32, pub lon_first: i32, pub resolution_and_component_flags: u8, pub lat_d: i32, pub lat_last: i32, pub lon_last: i32, pub scanning_mode: u8, pub orientation_of_grid: u32, pub di: u32, pub dj: u32,
}
Expand description

Template 3.10: Mercator grid.

Fields§

§number_of_points: u32§shape_of_earth: u8§scale_factor_radius: u8§scaled_value_radius: u32§scale_factor_major_axis: u8§scaled_value_major_axis: u32§scale_factor_minor_axis: u8§scaled_value_minor_axis: u32§ni: u32§nj: u32§lat_first: i32§lon_first: i32§resolution_and_component_flags: u8§lat_d: i32§lat_last: i32§lon_last: i32§scanning_mode: u8§orientation_of_grid: u32§di: u32§dj: u32

Implementations§

Source§

impl MercatorGrid

Source

pub fn x_coordinates(&self) -> Result<Vec<f64>>

Source

pub fn x_coordinates_with_limit( &self, max_axis_points: Option<usize>, ) -> Result<Vec<f64>>

Source

pub fn y_coordinates(&self) -> Result<Vec<f64>>

Source

pub fn y_coordinates_with_limit( &self, max_axis_points: Option<usize>, ) -> Result<Vec<f64>>

Source

pub fn reorder_for_ndarray_in_place<T>(&self, values: &mut [T]) -> Result<()>

Source

pub fn validate_supported_scan_order(&self) -> Result<()>

Trait Implementations§

Source§

impl Clone for MercatorGrid

Source§

fn clone(&self) -> MercatorGrid

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MercatorGrid

Source§

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

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

impl PartialEq for MercatorGrid

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 StructuralPartialEq for MercatorGrid

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

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.