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
Le lundi 30 janvier 2012 à 11:45 +, David Craig a écrit :
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
Hi, thanks for that. I've made the following changes:
NFFT = 100*60*10# Linked to window size
Fs = stream[0].stats.sampling_rate
win = np.hanning(NFFT)
overlap = NFFT/2
power, freq = plt.psd(data, NFFT, Fs, win, overlap)
but it returns the following error:
Traceback (most recent call
Le lundi 30 janvier 2012 à 13:34 +, David Craig a écrit :
Hi, thanks for that. I've made the following changes:
NFFT = 100*60*10# Linked to window size
Fs = stream[0].stats.sampling_rate
win = np.hanning(NFFT)
overlap = NFFT/2
power, freq = plt.psd(data, NFFT, Fs, win, overlap)
David Craig :
Hi, thanks for that. I've made the following changes:
NFFT = 100*60*10# Linked to window size
Fs = stream[0].stats.sampling_rate
win = np.hanning(NFFT)
overlap = NFFT/2
power, freq = plt.psd(data, NFFT, Fs, win, overlap)
but it returns the following error:
Hi,
I spent a fair amount of time today debugging what I thought was a bug
in the scaling of psd() when I was using NFFT to specify zero-padding.
This was a mis-use of the code on my part, where I should have been
using pad_to to get zero-padding. Most embarassing about this is that
I'm
Hi,
I know about the difference between pylab.psd and mlab.psd, but in theory
the only difference between the returned values is:
pylab.psd = 10*log10(mlab.psd)
Except this is not true, there is noticeable difference:
pylab.psd = 23.4962 (all these pylab.psd values are read from graph)
On Tue, Mar 2, 2010 at 5:13 AM, Dunx d...@hotmail.co.uk wrote:
Hi,
I know about the difference between pylab.psd and mlab.psd, but in theory
the only difference between the returned values is:
pylab.psd = 10*log10(mlab.psd)
Except this is not true, there is noticeable difference:
mlab.psd and pyplot.psd are different
http://www.nabble.com/file/p24713274/psd_testpng.png
http://www.nabble.com/file/p24713274/psd_testpng.png psd_testpng.png
#This program below do reveal that mlab.psd and pyplot.psd are different
import numpy as np
import matplotlib.pyplot as plt
Hi All:
I'm trying to use the matplotlib psd function to plot some data. The
result from MATLAB's pWelch function looks vastly different.
Any suggestions/recommendations would be greatly appreciated!
THANXS
amb
Here is the MATLAB code:
Fs = 13e6;
fid =
Lewis, Ambrose J. wrote:
Hi All:
I’m trying to use the matplotlib psd function to plot some data. The
result from MATLAB’s pWelch function looks vastly different.
Any suggestions/recommendations would be greatly appreciated!
What version of matplotlib are you running? I made some
I'm trying to use the matplotlib psd function to plot some data. The
result from MATLAB's pWelch function looks vastly different.
What is the default window type for Matlab? For Matplotlib it is the
Hanning window. If Matlab defaults to a rectangular window the
results will look quite
-users-boun...@lists.sourceforge.net
[mailto:matplotlib-users-boun...@lists.sourceforge.net] On Behalf Of
Fago, Matt - AES
Sent: Wednesday, January 14, 2009 11:36 AM
To: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] psd question
I'm trying to use the matplotlib psd function
Please try the attached script.
The answer should be ~0 dB for each of the frequencies.
Most likely a simple scaling issue/parameter of which i'm ignorant.
--
##
## Name: psd_scale.py
##
##
To
matplotlib-users@lists.sourceforge.net
cc
Subject
[Matplotlib-users]
PSD
: [Matplotlib-users] PSD amplitudes
Shouldn't the PSD for a simple sine wave tend to infinity
the spectral resolution will impact the amplitude, if you
are not dealing with a density. by definition a spectral density
has applied the bandwidth resolution correction. the PSD amplitude
should
Subject
Re: [Matplotlib-users] PSD amplitudes
is the suggestion that the matplotlib algorithm is correct in computing
PSD amplitudes?
btw, increasing nFFT increases the number of points used in the FFT, which
increases the spectral frequency resolution (smaller binwidth) but for a
limited
Re:
[Matplotlib-users] PSD amplitudes
is the
suggestion
) of a sine wave is a delta function!
Joseph Park [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
26/10/2007 11:50 AM
To
cc
matplotlib-users@lists.sourceforge.net
Subject
Re: [Matplotlib-users] PSD amplitudes
spectral density is by convention a 1Hz binwidth, not an arbitrary one,
units of A^2/Hz
If one creates a 1V RMS sine wave, e.g. with a peak value of 1.414 or
peak-peak of 2.83, then computes psd, the resulting amplitude is around
24 dB, yet classic theory dictates the answer ought to be 20 log(1) = 0
dB.
This offset seems consistent across various frequencies/sample
20 matches
Mail list logo