aboutsummaryrefslogtreecommitdiffstats
path: root/src/dab_util.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-04-02 10:46:49 +0100
committerandreas128 <Andreas>2017-04-02 10:46:49 +0100
commit2aa99f6275e2530a8dd4d3be270e9d7a3633cd66 (patch)
tree9bb6c05b6e17e3c00c4d68660cb47f846c4d66ba /src/dab_util.py
parent3ee39e3ae187e76b252b5758c12bd35e5707e187 (diff)
downloadODR-StaticPrecorrection-2aa99f6275e2530a8dd4d3be270e9d7a3633cd66.tar.gz
ODR-StaticPrecorrection-2aa99f6275e2530a8dd4d3be270e9d7a3633cd66.tar.bz2
ODR-StaticPrecorrection-2aa99f6275e2530a8dd4d3be270e9d7a3633cd66.zip
Add two tone and mer measure
Diffstat (limited to 'src/dab_util.py')
-rw-r--r--src/dab_util.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/dab_util.py b/src/dab_util.py
index 8ab1e03..fbd1cc6 100644
--- a/src/dab_util.py
+++ b/src/dab_util.py
@@ -3,9 +3,13 @@ import scipy
import matplotlib.pyplot as plt
import fftconvolve
-c = {
- "bw":1536000
- }
+c = {}
+c["bw"]=1536000
+c["frame_ms"]=96
+c["frame_8192000"]=c["frame_ms"] * 8192
+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):
"""returns one numpy array for the frequencies and one for the corresponding fft"""