[SciPy-user] decimate

Travis E. Oliphant oliphant at enthought.com
Sat Oct 25 15:42:57 EDT 2008


John Hunter wrote:
> One of the functions I used to use a lot in matlab was decimate, which
> downsamples data after doing a low pass filter to prevent aliasing.
>   

You can use the function resample in scipy.signal.  It uses a Fourier 
method for the low-pass filter. 

resample(x, len(x)/q)

should give a similar result as decimate(x, q)

-Travis




More information about the SciPy-User mailing list