diff options
author | sara <sara.halter@gmx.ch> | 2021-12-18 18:46:14 +0100 |
---|---|---|
committer | sara <sara.halter@gmx.ch> | 2021-12-18 18:46:14 +0100 |
commit | c94a745f532edfa33a620f90c04e7b6e76de8531 (patch) | |
tree | 7e6b148d11419376349a59b6023c7651cae76e0f /doc/thesis/figures/data/qpsk_sim_constellations_static.py | |
parent | littel changes doku (diff) | |
parent | Merge remote-tracking branch 'origin/master' (diff) | |
download | Fading-c94a745f532edfa33a620f90c04e7b6e76de8531.tar.gz Fading-c94a745f532edfa33a620f90c04e7b6e76de8531.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'doc/thesis/figures/data/qpsk_sim_constellations_static.py')
-rw-r--r-- | doc/thesis/figures/data/qpsk_sim_constellations_static.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/doc/thesis/figures/data/qpsk_sim_constellations_static.py b/doc/thesis/figures/data/qpsk_sim_constellations_static.py deleted file mode 100644 index 61fdcb1..0000000 --- a/doc/thesis/figures/data/qpsk_sim_constellations_static.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python3 - -import os -import numpy as np - -DATA_DIR = "./figures/data/flowgraphs" -SPS = 4 - -channel = np.fromfile(f"{DATA_DIR}/qpsk_channel_static.dat", dtype=np.complex64)[::SPS] -sync = np.fromfile(f"{DATA_DIR}/qpsk_sync_static.dat", dtype=np.complex64) -equalized = np.fromfile(f"{DATA_DIR}/qpsk_equalized_static.dat", dtype=np.complex64) -locked = np.fromfile(f"{DATA_DIR}/qpsk_locked_static.dat", dtype=np.complex64) - -samples = [channel, sync, equalized, locked] - -# print(list(map(len, samples))) - -start = 67.8e3 -end = start + 200 - -get_range = lambda arr: arr[int(start):int(end)] -get_parts = lambda v: (np.real(v), np.imag(v)) - -values = map(get_range, samples) -parts = [p for v in map(get_parts, values) for p in v] -data = np.array(list(zip(*parts))) - -# save to file -location = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) -name, _ = os.path.splitext(os.path.basename(__file__)) -filename = os.path.join(location, name + ".dat") -np.savetxt(filename, data, fmt='%.6e') |