edges_cal.xrfi.xrfi_explicit

edges_cal.xrfi.xrfi_explicit(spectrum: ndarray | None = None, *, freq: ndarray, flags: ndarray | None = None, rfi_file=None, extra_rfi=None) ndarray[bool][source]

Excise RFI from given data using an explicitly set list of flag ranges.

Parameters:
  • spectrum – This parameter is unused in this function.

  • freq – Frequencies, in MHz, of the data.

  • flags – Known flags.

  • rfi_file (str, optional) – A YAML file containing the key ‘rfi_ranges’, which should be a list of 2-tuples giving the (min, max) frequency range of known RFI channels (in MHz). By default, uses a file included in edges-analysis with known RFI channels from the MRO.

  • extra_rfi (list, optional) – A list of extra RFI channels (in the format of the rfi_ranges from the rfi_file).

Returns:

flags (array-like) – Boolean array of the same shape as spectrum indicated which channels/times have flagged RFI.