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.

plotResponse()

Plot the magnitude and phase response of the filter.

filter_data(data)[source]

Apply the filter using scipy.signal.filtfilt to data.

data: Vector of data to be filtered.

plotResponse()[source]

Plot the magnitude and phase response of the filter.