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

Preprocess visibilities for a chunk of correlator data

Arguments
  • corr_ctx - marlu::mwalib::CorrelatorContext
  • jones_array - Array of Jones visibilties
  • weight_array - Array of weights associated with Jones visibilities
  • flag_array - Array of flags associated with Jones visibilities
  • durations - 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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.