Expand description
The geocentric (x,y,z) coordinates of an antenna (a.k.a. tile or station). All units are in metres.
This coordinate system is discussed at length in Interferometry and Synthesis in Radio Astronomy, Third Edition, Section 4: Geometrical Relationships, Polarimetry, and the Measurement Equation.
Fields
x: f64
x-coordinate [meters]
y: f64
y-coordinate [meters]
z: f64
z-coordinate [meters]
Implementations
sourceimpl XyzGeocentric
impl XyzGeocentric
sourcepub fn get_geocentric_vector(
earth_pos: LatLngHeight
) -> Result<XyzGeocentric, ErfaError>
pub fn get_geocentric_vector(
earth_pos: LatLngHeight
) -> Result<XyzGeocentric, ErfaError>
Get a geocentric coordinate vector with the given geodetic coordinates (longitude, latitude and height). The ellipsoid model is WGS84.
sourcepub fn get_geocentric_vector_mwa() -> Result<XyzGeocentric, ErfaError>
pub fn get_geocentric_vector_mwa() -> Result<XyzGeocentric, ErfaError>
Get a geocentric coordinate vector with the MWA’s location. This
function just calls XyzGeocentric::get_geocentric_vector
with
[MWA_LONG_RAD
], MWA_LAT_RAD
and [MWA_HEIGHT_M
].
sourcepub fn to_geodetic(
self,
earth_pos: LatLngHeight
) -> Result<XyzGeodetic, ErfaError>
pub fn to_geodetic(
self,
earth_pos: LatLngHeight
) -> Result<XyzGeodetic, ErfaError>
Convert a XyzGeocentric
coordinate to XyzGeodetic
.
sourcepub fn to_geodetic_inner(
self,
geocentric_vector: XyzGeocentric,
sin_longitude: f64,
cos_longitude: f64
) -> XyzGeodetic
pub fn to_geodetic_inner(
self,
geocentric_vector: XyzGeocentric,
sin_longitude: f64,
cos_longitude: f64
) -> XyzGeodetic
Convert a XyzGeocentric
coordinate to XyzGeodetic
. This function is
less convenient than XyzGeocentric::to_geodetic
(), but may be better
in tight loops as the arguments to this function don’t need to be
uselessly re-calculated.
sourcepub fn to_geodetic_mwa(self) -> Result<XyzGeodetic, ErfaError>
pub fn to_geodetic_mwa(self) -> Result<XyzGeodetic, ErfaError>
Convert a XyzGeocentric
coordinate to XyzGeodetic
, using the MWA’s
location.
Trait Implementations
sourceimpl Clone for XyzGeocentric
impl Clone for XyzGeocentric
sourcefn clone(&self) -> XyzGeocentric
fn clone(&self) -> XyzGeocentric
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for XyzGeocentric
impl Debug for XyzGeocentric
sourceimpl Default for XyzGeocentric
impl Default for XyzGeocentric
sourcefn default() -> XyzGeocentric
fn default() -> XyzGeocentric
Returns the “default value” for a type. Read more
sourceimpl PartialEq<XyzGeocentric> for XyzGeocentric
impl PartialEq<XyzGeocentric> for XyzGeocentric
sourcefn eq(&self, other: &XyzGeocentric) -> bool
fn eq(&self, other: &XyzGeocentric) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &XyzGeocentric) -> bool
fn ne(&self, other: &XyzGeocentric) -> bool
This method tests for !=
.
impl Copy for XyzGeocentric
impl StructuralPartialEq for XyzGeocentric
Auto Trait Implementations
impl RefUnwindSafe for XyzGeocentric
impl Send for XyzGeocentric
impl Sync for XyzGeocentric
impl Unpin for XyzGeocentric
impl UnwindSafe for XyzGeocentric
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more