macro_rules! average_chunk_f64 {
    (
        // to be averaged
        $jones_chunk:expr,
        $weights_chunk:expr,
        // to average into
        $avg_jones:expr,
        $avg_weight:expr,
        $avg_flag:expr
    ) => { ... };
}
Expand description

compute the weighted geometric average of unflagged visibilities for each time, and frequency in the chunks. Only weights are required, instead of flags

If all visibilities in the chunk are flagged, then use the geometric average withough weights.

dimensions:

  • jones_chunk -> [at, af][pol] (each element is a complex vis array of length pol)
  • weight_chunk -> [at, af]
  • flag_chunk -> [at, af]
  • avg_jones -> [pol]
  • avg_weight -> (scalar)
  • avg_flag -> (scalar)