summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/pfb/channelize.py
diff options
context:
space:
mode:
authorTom Rondeau2010-04-15 00:35:35 -0400
committerTom Rondeau2010-04-15 00:35:35 -0400
commit213f8bcef70281a52bab02d2a9e7868749530c3c (patch)
tree9a7f7968c5e1609c5b5634d62e908f14cf20f899 /gnuradio-examples/python/pfb/channelize.py
parentda8ebdb30509c07718b10b642e2b4250aa45b1d8 (diff)
parent434c113106e0f18b08392e32829015ffdd866513 (diff)
downloadgnuradio-213f8bcef70281a52bab02d2a9e7868749530c3c.tar.gz
gnuradio-213f8bcef70281a52bab02d2a9e7868749530c3c.tar.bz2
gnuradio-213f8bcef70281a52bab02d2a9e7868749530c3c.zip
Merge branch 'pfbsr'
Diffstat (limited to 'gnuradio-examples/python/pfb/channelize.py')
-rwxr-xr-xgnuradio-examples/python/pfb/channelize.py4
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])