Expand description
East, North and Height coordinates.
Fields
e: f64
East [metres]
n: f64
North [metres]
h: f64
Height [metres]
Implementations
sourceimpl ENH
impl ENH
sourcepub fn to_xyz(self, latitude_rad: f64) -> XyzGeodetic
pub fn to_xyz(self, latitude_rad: f64) -> XyzGeodetic
Convert coords in local topocentric East, North, Height units to ‘local’ XyzGeodetic units. Local means Z points north, X points through the equator from the geocenter along the local meridian and Y is East. This is like the absolute system except that zero longitude is now the local meridian rather than prime meridian. Latitude is geodetic, in radians. This is what you want for constructing the local antenna positions in a UVFITS antenna table.
Taken from the third edition of Interferometry and Synthesis in Radio Astronomy, chapter 4: Geometrical Relationships, Polarimetry, and the Measurement Equation.
sourcepub fn to_xyz_inner(self, sin_latitude: f64, cos_latitude: f64) -> XyzGeodetic
pub fn to_xyz_inner(self, sin_latitude: f64, cos_latitude: f64) -> XyzGeodetic
Convert coords in local topocentric East, North, Height units to ‘local’
XyzGeodetic units. See ENH::to_xyz() for more information. This
function is less convenient than ENH::to_xyz(), but is slightly more
efficient because the caller can prevent needless sin
and cos
calculations.
sourcepub fn to_xyz_mwa(self) -> XyzGeodetic
pub fn to_xyz_mwa(self) -> XyzGeodetic
Convert ENH coordinates to XyzGeodetic for the MWA’s latitude.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ENH
impl Send for ENH
impl Sync for ENH
impl Unpin for ENH
impl UnwindSafe for ENH
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more