averaging_frequency

ska_sdp_func_python.preprocessing.averaging.averaging_frequency(data: Visibility, freqstep, flag_threshold=0.5) Visibility

Averaging in the frequency direction. New visibilities are the summation of the unflagged old ones with weights taken into account divided by the sum of unflagged weights. New weights are the sum of the old ones. New flags are True if the number of old True flags are above a threshold (within the bin of freqstep data points). New channel frequencies are the averages of the old ones. New bandwidths are the sums of the old ones.

Parameters:
  • data – SKA data model visibility

  • freqstep – integer, number of channels to average

  • flag_threshold – the threshold on the fraction of old flags (in the bin of size freqstep) to flag the new (averaged) data point (should be between 0 and 1)

Returns:

resulting (averaged) SKA data model visibility