Linenoise Notch Filter

process_nwb.linenoise_notch.apply_linenoise_notch(X, rate, fft=True, noise_hz=60.0, npad='fast', precision='single')[source]

Apply notch filters at 60 Hz (by default) and its harmonics.

Filters +/- 1 Hz around the frequencies.

Parameters
  • X (ndarray, (n_time, n_channels)) – Input data.

  • rate (float) – Number of samples per second for X.

  • fft (bool) – Whether to filter in the time or frequency domain.

  • noise_hz (float) – Frequency to notch out

  • npad (int) – Padding to add to beginning and end of timeseries. Default ‘fast’, which pads to the next fastest length.

  • precision (str) – Either single for float32/complex64 or double for float/complex.

Returns

Xp – Notch filtered data.

Return type

ndarray, (n_time, n_channels)