Skip to content

AOFlagger Radio Frequency Interference mitigation algorithm.

License

Notifications You must be signed in to change notification settings

isazi/AOFlagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AOFlagger

AOFlagger is a Radio Frequency Interference (RFI) mitigation algorithm proposed by A. Offringa in the paper "A morphological algorithm for improving radio-frequency interference detection".

In this repository I am toying around with some a real-time many-core implementation of said algorithm, using as a starting point the code developed by Rob van Nieuwpoort and Linus Schoemaker.

Sequential Code Analysis

Data

The input is a time series. Data could be one or two dimensional, in the scenario that we are currently investigating. The output is a flagging mask that, when applied to the data, cancels the RFI out. Or the mask could be only kept internally and applied to the input data, permanently modifying it.

Statistics

The most important building block of the flagger are the statistics. The statistics used in the code are:

  • Mean
  • Median
  • Standard Deviation
  • Median Absolute Deviation

Plus the winsorized version of mean and median. Winsorized version of mean and median are still mean and median, but computed only on the middle part of the data. In the original source code, the middle 80% of data is used, i.e. top and bottom 10% of values are excluded from the computation.

Of all the statistics, the most expensive to compute is the median; this is, assuming the input data are not already ordered. Computing mean and standard deviation can be done in O(n) on the input data, without sorting; it is also possible to easily parallelize the computation of mean and standard deviation.

Mean and Standard Deviation

For mean and standard deviation we currently have a 1D implementation in CUDA. It does not assume that the data has been previously sorted. The kernel could be easily extended to 2D if the dimensions are independent, e.g. in case we need to compute mean and standard deviation of different frequency channels.

Median

Median Absolute Deviation (MAD)

About

AOFlagger Radio Frequency Interference mitigation algorithm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published