hamsci_psws.grape1.Filter¶
- class hamsci_psws.grape1.Filter(N=6, Tc_min=3.3333, btype='low', fs=1.0)[source]¶
Bases:
object- __init__(N=6, Tc_min=3.3333, btype='low', fs=1.0)[source]¶
Generate a digital filter that can be applied to the data.
This routine uses the scipy.signal.butter Butterworth filter.
- Parameters
N (Filter order.) –
Tc_min (Cuttoff in minutes. Scalar value for 'low' and 'high') – filter btypes; 2-element iterable for ‘bandpass’ and ‘bandstop’ filter btypes.
fs (Sampling frequency of the digital system in samples/sec.) –
Methods
__init__([N, Tc_min, btype, fs])Generate a digital filter that can be applied to the data.
filter_data(data)Apply the filter using scipy.signal.filtfilt to data.
Plot the magnitude and phase response of the filter.