pub struct LambertConformal {
pub radius: f64,
pub standard_parallel_1: f64,
pub standard_parallel_2: f64,
pub latitude_of_origin: f64,
pub central_meridian: f64,
}Expand description
A Lambert conformal conic projection on a sphere, as GRIB2 grid
definition template 3.30 declares it and as GDAL reports it back
(Lambert Conic Conformal (2SP) with a spherical datum). Snyder (1987)
§15, spherical case; with two equal standard parallels the cone constant
is sin of the parallel.
Fields§
§radius: f64Sphere radius in metres — 6371229 for every NCEP product.
standard_parallel_1: f64§standard_parallel_2: f64§latitude_of_origin: f64§central_meridian: f64Implementations§
Source§impl LambertConformal
impl LambertConformal
pub fn cone_constant(&self) -> f64
Sourcepub fn scale(&self) -> f64
pub fn scale(&self) -> f64
R·F — the radius of the parallel at latitude φ is
scale / tan(π/4 + φ/2)^n.
Sourcepub fn parallel_radius(&self, latitude: f64) -> f64
pub fn parallel_radius(&self, latitude: f64) -> f64
Projected distance from the apex of the cone to the parallel at
latitude (degrees).
pub fn origin_radius(&self) -> f64
Sourcepub fn meridian_angle(&self, longitude: f64) -> f64
pub fn meridian_angle(&self, longitude: f64) -> f64
The angle, in radians, the meridian at longitude makes with the
central meridian on the cone.
Sourcepub fn forward(&self, longitude: f64, latitude: f64) -> (f64, f64)
pub fn forward(&self, longitude: f64, latitude: f64) -> (f64, f64)
Projected (x, y) in metres of one point.
Sourcepub fn forward_wrapped(&self, longitude: f64, latitude: f64) -> (f64, f64)
pub fn forward_wrapped(&self, longitude: f64, latitude: f64) -> (f64, f64)
Self::forward for a longitude spelled any way a caller may spell
it. Without the wrap, 262.5 and -97.5 would open different angles on
the cone and one of them would land off a grid that holds the point.
Trait Implementations§
Source§impl Clone for LambertConformal
impl Clone for LambertConformal
impl Copy for LambertConformal
Source§impl Debug for LambertConformal
impl Debug for LambertConformal
Source§impl PartialEq for LambertConformal
impl PartialEq for LambertConformal
impl StructuralPartialEq for LambertConformal
Auto Trait Implementations§
impl Forget for LambertConformal
impl Freeze for LambertConformal
impl Move for LambertConformal
impl RefUnwindSafe for LambertConformal
impl Send for LambertConformal
impl Sync for LambertConformal
impl Unpin for LambertConformal
impl UnsafeUnpin for LambertConformal
impl UnwindSafe for LambertConformal
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 more