aboutsummaryrefslogtreecommitdiffstats
path: root/correlate_with_ref.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-07-25 20:02:10 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-07-25 20:02:10 +0200
commit6b13f6da09bef4ec8137c70c6c18d07b6a884bd5 (patch)
tree25b197510065cf888a5ab2038702b26ab8e60b8e /correlate_with_ref.py
parent80b4eacd1d51a96e120192122774d1e83da2da5e (diff)
downloadodr-dab-cir-6b13f6da09bef4ec8137c70c6c18d07b6a884bd5.tar.gz
odr-dab-cir-6b13f6da09bef4ec8137c70c6c18d07b6a884bd5.tar.bz2
odr-dab-cir-6b13f6da09bef4ec8137c70c6c18d07b6a884bd5.zip
Add gain to cmdline, update options display, add title with date
Diffstat (limited to 'correlate_with_ref.py')
-rwxr-xr-xcorrelate_with_ref.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/correlate_with_ref.py b/correlate_with_ref.py
index 31e9710..ae783a6 100755
--- a/correlate_with_ref.py
+++ b/correlate_with_ref.py
@@ -108,7 +108,7 @@ class CIR_Correlate:
return cir / channel_power
- def plot(self, plot_file):
+ def plot(self, plot_file, title):
num_correlations = int(len(self.channel_out) / T_TF)
self.null_symbol_ixs = []
@@ -118,6 +118,7 @@ class CIR_Correlate:
for i in range(num_correlations) ])
fig = pp.figure()
+ fig.suptitle(title)
ax1 = fig.add_subplot(211)
ax1.plot(cirs.sum(axis=0))
ax2 = fig.add_subplot(212)
@@ -150,7 +151,7 @@ if __name__ == "__main__":
cir_corr = CIR_Correlate(file_in, file_format)
- cir_corr.plot(file_figure)
+ cir_corr.plot(file_figure, "Correlation")
print("Null symbols at:")
print(" " + " ".join("{}".format(t_null)