diff options
author | andreas128 <Andreas> | 2017-09-15 11:46:20 +0200 |
---|---|---|
committer | andreas128 <Andreas> | 2017-09-15 11:52:25 +0200 |
commit | b87f3a7babdeabe605d8192328bce669b52cfd7a (patch) | |
tree | 71f166d922ab2787d59c2b40789499364f96ecaf | |
parent | 6f9eb7f15b93c97b74b7134ed428298674121ec3 (diff) | |
download | dabmod-b87f3a7babdeabe605d8192328bce669b52cfd7a.tar.gz dabmod-b87f3a7babdeabe605d8192328bce669b52cfd7a.tar.bz2 dabmod-b87f3a7babdeabe605d8192328bce669b52cfd7a.zip |
Add constants for Measure_Shoulder
-rw-r--r-- | dpd/src/const.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dpd/src/const.py b/dpd/src/const.py index 2a7e64c..daaac5d 100644 --- a/dpd/src/const.py +++ b/dpd/src/const.py @@ -45,3 +45,17 @@ class const: # Constants for Model_PM self.MPM_tx_min = 0.1 + + # Constants for Measure_Shoulder + assert sample_rate==8192000 + meas_offset = 976 # Offset from center frequency to measure shoulder [kHz] + meas_width = 100 # Size of frequency delta to measure shoulder [kHz] + shoulder_offset_edge = np.abs(meas_offset - self.FFT_delta) + self.MS_shoulder_left_start = self.FFT_start - shoulder_offset_edge - meas_width / 2 + self.MS_shoulder_left_end = self.FFT_start - shoulder_offset_edge + meas_width / 2 + self.MS_shoulder_right_start = self.FFT_end + shoulder_offset_edge - meas_width / 2 + self.MS_shoulder_right_end = self.FFT_end + shoulder_offset_edge + meas_width / 2 + self.MS_peak_start = self.FFT_start + 100 # Ignore region near edges + self.MS_peak_end = self.FFT_end - 100 + + self.MS_FFT_size = 8192 |