Sum-threshold RFI flagger functions
C/C++
-
void sdp_sum_threshold_rfi_flagger(const sdp_Mem *vis, const sdp_Mem *thresholds, sdp_Mem *flags, const int64_t max_sequence_length, sdp_Error *status)
Basic RFI flagger based on sum-threshold algorithm.
Array dimensions are as follows, from slowest to fastest varying:
vis
is 4D and complex-valued, with shape:[ num_timesamples, num_baselines, num_channels, num_polarisations ]
thresholds
is 1D and real-valued.The size of the array is n, where 2^(n-1) =
max_sequence_length
.
flags
is 4D and integer-valued, with the same shape asvis
.max_sequence_length
is the maximum length of the sum performed by the algorithm.
- Parameters:
vis – Complex valued visibilities. Dimensions as above.
thresholds – List of thresholds, one for each sequence length.
flags – Output flags. Dimensions as above.
max_sequence_length – Maximum length of the partial sum.
status – Error status.
Python
- ska_sdp_func.rfi.sum_threshold_rfi_flagger(vis, thresholds, flags, max_sequence_length)
Basic RFI flagger based on sum-threshold algorithm.
Array dimensions are as follows, from slowest to fastest varying:
vis
is 4D and complex-valued, with shape:[ num_timesamples, num_baselines, num_channels, num_polarisations ]
thresholds
is 1D and real-valued.The size of the array is n, where 2^(n-1) =
max_sequence_length
.
flags
is 4D and integer-valued, with the same shape asvis
.max_sequence_length
is the maximum length of the sum performed by the algorithm.
- Parameters:
vis (numpy.ndarray) – Complex valued visibilities. Dimensions as above.
thresholds (numpy.ndarray) – List of thresholds, one for each sequence length.
flags (numpy.ndarray) – Output flags. Dimensions as above.
max_sequence_length (integer) – Maximum length of the partial sum.