cogpy.preprocess.filtering.temporal

Temporal IIR filters and decimation for xarray signals.

Butterworth bandpass/lowpass/highpass, notch, and polyphase decimation. All functions accept xarray.DataArray with an fs coordinate.

Functions

bandpassx(sigx, wl, wh, order, axis)

Butterworth bandpass filter (zero-phase, SOS form).

butterworth_bandpass_shoulder(x, fs, low, high)

Butterworth bandpass filter with shoulder specification (zero-phase).

decimatex(sigx, *[, factor, time_dim, ...])

Decimate along time_dim and update the time coordinate and fs.

highpassx(sigx, wh, order, axis)

Butterworth highpass filter (zero-phase).

lowpassx(sigx, wl, order, axis)

Butterworth lowpass filter (zero-phase).

notchesx(sigx, *, freqs[, Q, time_dim])

Apply multiple IIR notches along time_dim using zero-phase filtering.

notchx(sigx, *[, w0, Q, time_dim])

Notch filter (IIR notch) applied along time_dim using zero-phase filtering.