pub struct ENH {
pub e: f64,
pub n: f64,
pub h: f64,
}
Expand description
East, North and Height coordinates.
Fields§
§e: f64
East [metres]
n: f64
North [metres]
h: f64
Height [metres]
Implementations§
source§impl 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.