Struct marlu::pos::xyz::XyzGeodetic [−][src]
Expand description
The geodetic (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
Convert XyzGeodetic coordinates at a latitude to ENH coordinates.
Convert XyzGeodetic coordinates at a latitude to ENH coordinates.
This function is less convenient than XyzGeodetic::to_enh(), but is
slightly more efficient because the caller can prevent needless sin
and cos
calculations.
Convert XyzGeodetic coordinates at the MWA’s latitude to ENH coordinates.
Convert a XyzGeodetic coordinate to XyzGeocentric.
pub fn to_geocentric_inner(
self,
geocentric_vector: XyzGeocentric,
sin_longitude: f64,
cos_longitude: f64
) -> XyzGeocentric
pub fn to_geocentric_inner(
self,
geocentric_vector: XyzGeocentric,
sin_longitude: f64,
cos_longitude: f64
) -> XyzGeocentric
Convert a XyzGeodetic coordinate to XyzGeocentric. This function is less convenient than XyzGeodetic::to_geocentric, but may be better in tight loops as the arguments to this function don’t need to be uselessly re-calculated.
Convert a XyzGeodetic coordinate to XyzGeocentric, using the MWA’s location.
For each tile listed in an mwalib::MetafitsContext
, calculate a
XyzGeodetic coordinate.
Note that the RF inputs are ordered by antenna number, not the “input”; e.g. in the metafits file, Tile104 is often the first tile listed (“input” 0), Tile103 second (“input” 2), so the first baseline would naively be between Tile104 and Tile103.
pub fn get_tiles_mwa(context: &MetafitsContext) -> Vec<XyzGeodetic>ⓘ
pub fn get_tiles_mwa(context: &MetafitsContext) -> Vec<XyzGeodetic>ⓘ
For each tile listed in an mwalib::MetafitsContext
, calculate a
XyzGeodetic coordinate assuming the MWA’s latitude.
Note that the RF inputs are ordered by antenna number, not the “input”; e.g. in the metafits file, Tile104 is often the first tile listed (“input” 0), Tile103 second (“input” 2), so the first baseline would naively be between Tile104 and Tile103.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for XyzGeodetic
impl Send for XyzGeodetic
impl Sync for XyzGeodetic
impl Unpin for XyzGeodetic
impl UnwindSafe for XyzGeodetic
Blanket Implementations
Mutably borrows from an owned value. Read more