aboutsummaryrefslogtreecommitdiffstats
path: root/src/dab_util.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-05-06 12:43:23 +0100
committerandreas128 <Andreas>2017-05-06 12:43:23 +0100
commit2deeb43ce5d99dafa1556e3fdc1d3a02911614a6 (patch)
treecdeb44d0a7b023982c66d914bb255f22090cead3 /src/dab_util.py
parent781d61d6ed7503f2e5b940121dfd0eeced8c1c75 (diff)
downloadODR-StaticPrecorrection-2deeb43ce5d99dafa1556e3fdc1d3a02911614a6.tar.gz
ODR-StaticPrecorrection-2deeb43ce5d99dafa1556e3fdc1d3a02911614a6.tar.bz2
ODR-StaticPrecorrection-2deeb43ce5d99dafa1556e3fdc1d3a02911614a6.zip
Do changes for live analysis
Diffstat (limited to 'src/dab_util.py')
-rw-r--r--src/dab_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dab_util.py b/src/dab_util.py
index fbd1cc6..fa52015 100644
--- a/src/dab_util.py
+++ b/src/dab_util.py
@@ -11,7 +11,7 @@ c["frame_2048000"]=c["frame_ms"] * 2048
c["sym_8192000"]=96./76*8192
c["sym_2048000"]=96./76*2048
-def calc_fft(signal, fft_size = 1024, sampling_rate = 1, plot = False):
+def calc_fft(signal, fft_size = 65536, sampling_rate = 8192000, plot = False):
"""returns one numpy array for the frequencies and one for the corresponding fft"""
signal_spectrum = np.fft.fftshift(np.fft.fft(signal, fft_size))
freqs = np.fft.fftshift(np.fft.fftfreq(fft_size, d=1./sampling_rate))