function of dascore.proc.filter source

    patch: Patch ,
    corners ,
    zerophase ,
    **kwargs ,
)-> Patch

Apply a Butterworth pass filter (bandpass, highpass, or lowpass).


Parameter Description
corners The number of corners for the filter.
zerophase If True, apply the filter twice.
**kwargs Used to specify the dimension and frequency, wavelength, or equivilent limits.


import dascore
pa = dascore.get_example_patch()

 # 1. Apply bandpass filter along time axis from 1 to 100 Hz
bandpassed = pa.pass_filter(time=(1, 100))

 # 2. Apply lowpass filter along distance axis for wavelengths less than 100m
lowpassed = pa.pass_filter(distance=(None, 1/100))