aboutsummaryrefslogtreecommitdiffstats
path: root/src/dabconst.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-05-19 11:02:13 +0100
committerandreas128 <Andreas>2017-05-19 11:02:13 +0100
commit3dfe0a526a21093b864b99f113eb49ab84e3b377 (patch)
tree8232712672c448d123f7406c87150d40e1d88b51 /src/dabconst.py
parentea934695d10c165b37099c70255927d5165bddf0 (diff)
downloadODR-StaticPrecorrection-3dfe0a526a21093b864b99f113eb49ab84e3b377.tar.gz
ODR-StaticPrecorrection-3dfe0a526a21093b864b99f113eb49ab84e3b377.tar.bz2
ODR-StaticPrecorrection-3dfe0a526a21093b864b99f113eb49ab84e3b377.zip
Add dabconst, fix import fftconvolve
Diffstat (limited to 'src/dabconst.py')
-rw-r--r--src/dabconst.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/dabconst.py b/src/dabconst.py
new file mode 100644
index 0000000..d978753
--- /dev/null
+++ b/src/dabconst.py
@@ -0,0 +1,20 @@
+class tm1():
+ def __init__(self, rate = 2048000):
+ self.upsampling = rate / 2048000
+ self.L = 76
+ self.K = 1536
+
+ self.S_F = 196608 * self.upsampling
+ self.T_F = float(self.S_F) / rate
+
+ self.S_NULL = 2656 * self.upsampling
+ self.T_NULL = float(self.S_NULL) / rate
+
+ self.S_S = 2552 * self.upsampling
+ self.T_S = float(self.S_S) / rate
+
+ self.S_U = 2048 * self.upsampling
+ self.T_S = float(self.S_U) / rate
+
+ self.S_GUARD = 504 * self.upsampling
+ self.T_GUARD = float(self.S_GUARD) / rate