soundscapecode.filters.highpass

soundscapecode.filters.highpass(data: ndarray, passband: int, fs: int, steepness=0.85, stopband_atten=60)

Filter data with a highpass filter

Parameters

data: np.ndarray

The data to filter. Expected shape is (n,) where n is the length of the data

passband: int

The pass band for the filter

fs: int

Sampling frequency for the data

steepness: float

Steepness parameter for the width calculation. Defaults to 0.85.

stopband_atten: int

Acceptable stopband attenuation in dB. Defaults to 60 dB.

Returns

np.ndarray

The filtered data.