Return to Snippet

Revision: 61076
at November 26, 2012 22:34 by leonpalafox


Initial Code
import scipy.signal as sp
nyf= sampfr/2 #Sampling Frequency/2 (Nyquist Frequency)
low=0.5/nyf   #Lower cut of the filter
high=50/fso2   #High Cut of the filter
b,a = sp.butter(5,[low,high], btype='band') #Butter generates the coefficients for the filter
dataF=sp.lfilter(b, a, data) #Does the convoultion, and the output is the filtered signal

Initial URL

                                

Initial Description
This portion of code allows to do bandpass filtering over time series

Initial Title
Filter Signals using scipy

Initial Tags
python

Initial Language
Python