From 38576cd7fc8992a6ae86e7213e62842f7a101849 Mon Sep 17 00:00:00 2001 From: sara Date: Fri, 17 Dec 2021 19:44:51 +0100 Subject: Doku exemple real --- .../qpsk_channel_dynamic_exp_LOS_5_K5.dat | Bin 0 -> 4387016 bytes .../qpsk_channel_dynamic_exp_LOS_70_K5.dat | Bin 0 -> 2355520 bytes .../flowgraphs/qpsk_channel_dynamic_exp_NLOS_5.dat | Bin 0 -> 2989000 bytes .../qpsk_channel_dynamic_exp_NLOS_70.dat | Bin 0 -> 3404032 bytes .../qpsk_equalized_dynamic_exp_LOS_5_K5.dat | Bin 0 -> 1096424 bytes .../qpsk_equalized_dynamic_exp_LOS_70_K5.dat | Bin 0 -> 588544 bytes .../qpsk_equalized_dynamic_exp_NLOS_5.dat | Bin 0 -> 746920 bytes .../qpsk_equalized_dynamic_exp_NLOS_70.dat | Bin 0 -> 849864 bytes .../qpsk_locked_dynamic_exp_LOS_5_K5.dat | Bin 0 -> 1096416 bytes .../qpsk_locked_dynamic_exp_LOS_70_K5.dat | Bin 0 -> 588528 bytes .../flowgraphs/qpsk_locked_dynamic_exp_NLOS_5.dat | Bin 0 -> 746856 bytes .../flowgraphs/qpsk_locked_dynamic_exp_NLOS_70.dat | Bin 0 -> 849816 bytes .../flowgraphs/qpsk_sync_dynamic_exp_LOS_5_K5.dat | Bin 0 -> 1096424 bytes .../flowgraphs/qpsk_sync_dynamic_exp_LOS_70_K5.dat | Bin 0 -> 588544 bytes .../flowgraphs/qpsk_sync_dynamic_exp_NLOS_5.dat | Bin 0 -> 746920 bytes .../flowgraphs/qpsk_sync_dynamic_exp_NLOS_70.dat | Bin 0 -> 849864 bytes .../qpsk_sim_constellations_dynamic_exp_NLOS_5.py | 34 +++++++++++++++++++++ 17 files changed, 34 insertions(+) create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_LOS_5_K5.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_LOS_70_K5.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_NLOS_5.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_NLOS_70.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_LOS_5_K5.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_LOS_70_K5.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_NLOS_5.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_NLOS_70.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_LOS_5_K5.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_LOS_70_K5.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_NLOS_5.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_NLOS_70.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_LOS_5_K5.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_LOS_70_K5.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_NLOS_5.dat create mode 100644 doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_NLOS_70.dat create mode 100644 doc/thesis/figures/data/qpsk_sim_constellations_dynamic_exp_NLOS_5.py (limited to 'doc/thesis/figures/data') diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_LOS_5_K5.dat b/doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_LOS_5_K5.dat new file mode 100644 index 0000000..b4accdd Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_LOS_5_K5.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_LOS_70_K5.dat b/doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_LOS_70_K5.dat new file mode 100644 index 0000000..350fb3b Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_LOS_70_K5.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_NLOS_5.dat b/doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_NLOS_5.dat new file mode 100644 index 0000000..1322947 Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_NLOS_5.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_NLOS_70.dat b/doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_NLOS_70.dat new file mode 100644 index 0000000..ffe47ce Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_channel_dynamic_exp_NLOS_70.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_LOS_5_K5.dat b/doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_LOS_5_K5.dat new file mode 100644 index 0000000..ce683a0 Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_LOS_5_K5.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_LOS_70_K5.dat b/doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_LOS_70_K5.dat new file mode 100644 index 0000000..a0399b9 Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_LOS_70_K5.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_NLOS_5.dat b/doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_NLOS_5.dat new file mode 100644 index 0000000..28eaeb8 Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_NLOS_5.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_NLOS_70.dat b/doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_NLOS_70.dat new file mode 100644 index 0000000..596e0a9 Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_equalized_dynamic_exp_NLOS_70.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_LOS_5_K5.dat b/doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_LOS_5_K5.dat new file mode 100644 index 0000000..c0c30e0 Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_LOS_5_K5.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_LOS_70_K5.dat b/doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_LOS_70_K5.dat new file mode 100644 index 0000000..1d55afc Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_LOS_70_K5.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_NLOS_5.dat b/doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_NLOS_5.dat new file mode 100644 index 0000000..1c53fed Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_NLOS_5.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_NLOS_70.dat b/doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_NLOS_70.dat new file mode 100644 index 0000000..5e2a983 Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_locked_dynamic_exp_NLOS_70.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_LOS_5_K5.dat b/doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_LOS_5_K5.dat new file mode 100644 index 0000000..513dfa8 Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_LOS_5_K5.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_LOS_70_K5.dat b/doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_LOS_70_K5.dat new file mode 100644 index 0000000..86d472a Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_LOS_70_K5.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_NLOS_5.dat b/doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_NLOS_5.dat new file mode 100644 index 0000000..327a07d Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_NLOS_5.dat differ diff --git a/doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_NLOS_70.dat b/doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_NLOS_70.dat new file mode 100644 index 0000000..35971b0 Binary files /dev/null and b/doc/thesis/figures/data/flowgraphs/qpsk_sync_dynamic_exp_NLOS_70.dat differ diff --git a/doc/thesis/figures/data/qpsk_sim_constellations_dynamic_exp_NLOS_5.py b/doc/thesis/figures/data/qpsk_sim_constellations_dynamic_exp_NLOS_5.py new file mode 100644 index 0000000..c48b87b --- /dev/null +++ b/doc/thesis/figures/data/qpsk_sim_constellations_dynamic_exp_NLOS_5.py @@ -0,0 +1,34 @@ +#!/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_dynamic_exp_NLOS_5.dat", dtype=np.complex64)[::SPS] +sync = np.fromfile(f"{DATA_DIR}/qpsk_sync_dynamic_exp_NLOS_5.dat", dtype=np.complex64) +equalized = np.fromfile(f"{DATA_DIR}/qpsk_equalized_dynamic_exp_NLOS_5.dat", dtype=np.complex64) +locked = np.fromfile(f"{DATA_DIR}/qpsk_locked_dynamic_exp_NLOS_5.dat", dtype=np.complex64) + +samples = [channel, sync, equalized, locked] + +# print(list(map(len, samples))) + +start = 67.8e3 +end = start + 500 +# start = 80e3 +# end = start + 1000 + +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') -- cgit v1.2.1