Struct birli::preprocessing::PreprocessContext
source · [−]pub struct PreprocessContext {
pub array_pos: LatLngHeight,
pub phase_centre: RADec,
pub correct_cable_lengths: bool,
pub correct_digital_gains: bool,
pub passband_gains: Option<Vec<f64>>,
pub calsols: Option<Array2<Jones<f64>>>,
pub correct_geometry: bool,
pub aoflagger_strategy: Option<String>,
pub draw_progress: bool,
}
Expand description
Options for preprocessing a chunk of correlator data
Fields
array_pos: LatLngHeight
The array position used for geometric corrections
phase_centre: RADec
The phase centre used for geometric corrections
correct_cable_lengths: bool
Whether cable length corrections are enabled
correct_digital_gains: bool
Whether digital gain corrections are enabled
passband_gains: Option<Vec<f64>>
the pfb passband gains to use for corrections
calsols: Option<Array2<Jones<f64>>>
The calibration solutions to apply
correct_geometry: bool
Whether geometric corrections are enabled
aoflagger_strategy: Option<String>
AOFlagger strategy path for flagging
draw_progress: bool
Whether to draw progress bars
Implementations
sourceimpl PreprocessContext
impl PreprocessContext
sourcepub fn preprocess(
&self,
corr_ctx: &CorrelatorContext,
jones_array: &mut Array3<Jones<f32>>,
weight_array: &mut Array3<f32>,
flag_array: &mut Array3<bool>,
durations: &mut HashMap<String, Duration>,
vis_sel: &VisSelection
) -> Result<(), BirliError>
pub fn preprocess(
&self,
corr_ctx: &CorrelatorContext,
jones_array: &mut Array3<Jones<f32>>,
weight_array: &mut Array3<f32>,
flag_array: &mut Array3<bool>,
durations: &mut HashMap<String, Duration>,
vis_sel: &VisSelection
) -> Result<(), BirliError>
Preprocess visibilities for a chunk of correlator data
Arguments
corr_ctx
-marlu::mwalib::CorrelatorContext
jones_array
- Array of Jones visibiltiesweight_array
- Array of weights associated with Jones visibilitiesflag_array
- Array of flags associated with Jones visibilitiesdurations
- Hashmap used to record timing info
Errors
will wrap errors from correct_digital_gains
, correct_coarse_passband_gains
TODO: more granular error types: PreprocessingError
-> {DigitalGainsError
, etc.}
Trait Implementations
sourceimpl Debug for PreprocessContext
impl Debug for PreprocessContext
sourceimpl Default for PreprocessContext
impl Default for PreprocessContext
sourcefn default() -> PreprocessContext
fn default() -> PreprocessContext
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PreprocessContext
impl Send for PreprocessContext
impl Sync for PreprocessContext
impl Unpin for PreprocessContext
impl UnwindSafe for PreprocessContext
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