[SciPy-user] Lowpass Filter
Fri Feb 6 07:52:44 CST 2009
Thank you all for the pointers and ideas: I will try to do something,
and let you know what comes out.
Quando sei una human pignata
e la pazzo jacket si è accorciata
e non ti puoi liberare
dai colpi di legno e di bastone
dai petardi sul groppone
On Thu, Feb 5, 2009 at 6:28 PM, Christopher Brown <email@example.com> wrote:
> Hi Marco,
> M> Let's suppose a to be a 1D array with N elements.
> M> Basically, it's a signal of some sort.
> M> How do I apply a low pass filter (with selected frequency and width)
> M> to this signal?
> M> How to store the resulting, filtered, signal, in a new array?
> M> I had a look at lp2lp() in scipy.signal, but it returns, if I am
> M> right, a filter object, which then I dunno how to use to filter my
> M> data.
> M> Any ideas or pointers?
> The following is a low-pass Butterworth filter
> cutoff = 500.
> fs = 44100.
> nyq = fs/2.
> filterorder = 5
> b,a = scipy.signal.filter_design.butter(filterorder,cutoff/nyq)
> filteredsignal = scipy.signal.lfilter(b,a,signal)
> SciPy-user mailing list
More information about the SciPy-user