Module birli::flags

source · []
Expand description

Methods for manipulating flagmasks and flagging imagesets

Functions

Expand a flag array of [timestep][channel][baseline] to [timestep][channel][baseline][pol]

Shorthand for flag_jones_array_existing with flag_array as None.

Flag an ndarray of Jones visibilities, given a CxxAOFlagger instance, a [CxxStrategy] filename, returning an [ndarray::Array3] of boolean flags.

Convert the given ndarray of boolean flags to an ndarray of float weights TODO: deal with weight factor when doing averaging. TODO: deal with passband gains

Produce a vector of flags for antennas whose imputs are flagged in context

Produce a vector of flags for baslines whose antennae are flagged in antenna_flags

Produce a vector of flags for all known coarse channels.

Produce a contiguous range of coarse channel indices from [MWALib::CorrelatorContext.common_coarse_chan_indices]

Produce a vector of timesteps which can be used for creating imagesets and flagmasks for aoflagger flagging, given an mwalib::CorrelatorContext.

Produce a vector of flags for all known timesteps.

Produce a contiguous range of timestep indices from the first [MWALib::CorrelatorContext.common_timestep_indices] to the last [MWALib::CorrelatorContext.provided_timestep_indices]

Get the weight factor of an observation’s context.

Produce a vector of flags for fine each channel in the selected range of channels. Initialize a 3D array of bool flags for each timestep, channel, baseline provided.

Write flags to disk, given an observation’s [mwalib::CorrelatorContext], a vector of CxxFlagMasks for each baseline in the observation, a filename template and a vector of gpubox IDs.