From: David C. <dcd...@gm...> - 2012-01-30 11:45:55
|
Hi I have some data for a 24hr period with a sample rate of 100 samples/second. I want to create a power spectrum using matplotlibs function psd. I want it to have 10 minute windows with a 50% overlap, but cant seem to get the syntax right. My code is as follows: NFFT = len(data) Fs = 100 window=np.hanning(Fs*60*10) noverlap = window*0.5 plt.psd(data, NFFT, Fs, window, noverlap ) anyone kow how to do this properly??? Thanks, D |