Struct marlu::pos::radec::RADec [−][src]
Expand description
A struct containing a Right Ascension and Declination. All units are in radians.
Fields
ra: f64
Right ascension [radians]
dec: f64
Declination [radians]
Implementations
Make a new RADec struct from values in degrees.
From a collection of RADec coordinates and weights, find the average RADec position. The lengths of both collection must be the same to get sensible results. Not providing any RADec coordinates will make this function return None.
This function accounts for Right Ascension coordinates that range over 360 degrees.
Calculate the distance between two sets of coordinates [radians].
Uses ERFA.
Given an mwalib::MetafitsContext
, make an Option(ra|dec)_phase_center_degrees
if these are available, otherwise
None.
Given an mwalib::MetafitsContext
, make a RADec from the
(ra|dec)_tile_pointing_degrees
.
Given an mwalib::MetafitsContext
, make a RADec from the
(ra|dec)_phase_center_degrees
if these are available, otherwise use
the (ra|dec)_tile_pointing_degrees
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RADec
impl UnwindSafe for RADec
Blanket Implementations
Mutably borrows from an owned value. Read more