diff options
author | Tom Rondeau | 2010-04-15 00:35:35 -0400 |
---|---|---|
committer | Tom Rondeau | 2010-04-15 00:35:35 -0400 |
commit | 213f8bcef70281a52bab02d2a9e7868749530c3c (patch) | |
tree | 9a7f7968c5e1609c5b5634d62e908f14cf20f899 /gnuradio-examples/python/pfb/channelize.py | |
parent | da8ebdb30509c07718b10b642e2b4250aa45b1d8 (diff) | |
parent | 434c113106e0f18b08392e32829015ffdd866513 (diff) | |
download | gnuradio-213f8bcef70281a52bab02d2a9e7868749530c3c.tar.gz gnuradio-213f8bcef70281a52bab02d2a9e7868749530c3c.tar.bz2 gnuradio-213f8bcef70281a52bab02d2a9e7868749530c3c.zip |
Merge branch 'pfbsr'
Diffstat (limited to 'gnuradio-examples/python/pfb/channelize.py')
-rwxr-xr-x | gnuradio-examples/python/pfb/channelize.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-examples/python/pfb/channelize.py b/gnuradio-examples/python/pfb/channelize.py index bc83fae27..27d87e558 100755 --- a/gnuradio-examples/python/pfb/channelize.py +++ b/gnuradio-examples/python/pfb/channelize.py @@ -101,7 +101,7 @@ def main(): X,freq = mlab.psd(d, NFFT=fftlen, noverlap=fftlen/4, Fs=fs, window = lambda d: d*winfunc(fftlen), scale_by_freq=True) - X_in = 10.0*scipy.log10(abs(fftpack.fftshift(X))) + X_in = 10.0*scipy.log10(abs(X)) f_in = scipy.arange(-fs/2.0, fs/2.0, fs/float(X_in.size)) pin_f = spin_f.plot(f_in, X_in, "b") spin_f.set_xlim([min(f_in), max(f_in)+1]) @@ -144,7 +144,7 @@ def main(): X,freq = mlab.psd(d, NFFT=fftlen, noverlap=fftlen/4, Fs=fs_o, window = lambda d: d*winfunc(fftlen), scale_by_freq=True) - X_o = 10.0*scipy.log10(abs(fftpack.fftshift(X))) + X_o = 10.0*scipy.log10(abs(X)) f_o = scipy.arange(-fs_o/2.0, fs_o/2.0, fs_o/float(X_o.size)) p2_f = sp1_f.plot(f_o, X_o, "b") sp1_f.set_xlim([min(f_o), max(f_o)+1]) |