diff options
author | andreas128 <Andreas> | 2017-05-19 11:02:13 +0100 |
---|---|---|
committer | andreas128 <Andreas> | 2017-05-19 11:02:13 +0100 |
commit | 3dfe0a526a21093b864b99f113eb49ab84e3b377 (patch) | |
tree | 8232712672c448d123f7406c87150d40e1d88b51 /src/dabconst.py | |
parent | ea934695d10c165b37099c70255927d5165bddf0 (diff) | |
download | ODR-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.py | 20 |
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 |