[SciPy-user] Lowpass Filter

Marco gaedol at gmail.com
Fri Feb 6 08:52:44 EST 2009


Thank you all for the pointers and ideas: I will try to do something,
and let you know what comes out.

Thanks,

marco

--

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

Vinicio Capossela



On Thu, Feb 5, 2009 at 6:28 PM, Christopher Brown <c-b at asu.edu> 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>
> 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>
> 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>
> 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)
>
> --
> Chris
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>



More information about the SciPy-User mailing list