Struct marlu::context::ObsContext
source · [−]pub struct ObsContext {
pub sched_start_timestamp: Epoch,
pub sched_duration: Duration,
pub name: Option<String>,
pub field_name: Option<String>,
pub project_id: Option<String>,
pub observer: Option<String>,
pub phase_centre: RADec,
pub pointing_centre: Option<RADec>,
pub array_pos: LatLngHeight,
pub ant_positions_enh: Vec<ENH>,
pub ant_names: Vec<String>,
}
Expand description
A container for observation metadata common across most file types
Fields
sched_start_timestamp: Epoch
Scheduled start time
sched_duration: Duration
Scheduled duration
name: Option<String>
Observation name
field_name: Option<String>
Name of field being observed
project_id: Option<String>
The project ID of the observation
observer: Option<String>
The observer or creator of the observation
phase_centre: RADec
The phase centre.
pointing_centre: Option<RADec>
The pointing centre.
array_pos: LatLngHeight
The Earth position of the instrumental array
ant_positions_enh: Vec<ENH>
TODO: store in ENH or geodetic? The geodetic position of each antenna. The east-north-height position of each antenna
ant_names: Vec<String>
The name of each antenna / tile.
Implementations
sourceimpl ObsContext
impl ObsContext
pub fn from_mwalib(meta_ctx: &MetafitsContext) -> Self
pub fn ant_positions_geodetic(&self) -> impl Iterator<Item = XyzGeodetic> + '_
pub fn ant_positions_geocentric(
&self
) -> impl Iterator<Item = XyzGeocentric> + '_
pub fn num_ants(&self) -> usize
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ObsContext
impl Send for ObsContext
impl Sync for ObsContext
impl Unpin for ObsContext
impl UnwindSafe for ObsContext
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