aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis/figures/data/qpsk_sim_const_static_firblock_nlos_halfsymb.py
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-12-18 18:25:49 +0100
committerNao Pross <np@0hm.ch>2021-12-18 18:25:49 +0100
commit42847d93ef34cfdeb55ba1949e904a8e7148265b (patch)
tree7a0b907b90eeba81866ada9d11b502f96ef6b0a3 /doc/thesis/figures/data/qpsk_sim_const_static_firblock_nlos_halfsymb.py
parentRename flowgraph data files and remove static simulations (diff)
downloadFading-42847d93ef34cfdeb55ba1949e904a8e7148265b.tar.gz
Fading-42847d93ef34cfdeb55ba1949e904a8e7148265b.zip
Add static simulations
Diffstat (limited to 'doc/thesis/figures/data/qpsk_sim_const_static_firblock_nlos_halfsymb.py')
-rw-r--r--doc/thesis/figures/data/qpsk_sim_const_static_firblock_nlos_halfsymb.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/doc/thesis/figures/data/qpsk_sim_const_static_firblock_nlos_halfsymb.py b/doc/thesis/figures/data/qpsk_sim_const_static_firblock_nlos_halfsymb.py
deleted file mode 100644
index eae2afc..0000000
--- a/doc/thesis/figures/data/qpsk_sim_const_static_firblock_nlos_halfsymb.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env python3
-
-import utils
-import numpy as np
-
-# get array of samples [channel, synchronized, equalized, locked]
-samples = utils.load_samples(__file__)
-
-# range of samples we want to show
-start = 1e3
-end = start +800
-
-# select every second samples
-select_samples = lambda arr: arr[int(start):int(end):4]
-values = map(select_samples, samples)
-
-# split into imaginary and real parts
-get_parts = lambda v: (np.real(v), np.imag(v))
-parts = [p for v in map(get_parts, values) for p in v]
-
-# zip data and add header
-data = np.array(list(zip(*parts)))
-headers = [
- "channel_re", "channel_im",
- "synchronized_re", "synchronized_im",
- "equalized_re", "equalized_im",
- "locked_re", "locked_im"
-]
-
-# save to file
-utils.save_to_file(__file__, data, headers)