-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathiridium_analysis.py
109 lines (99 loc) · 3.99 KB
/
iridium_analysis.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
from iridium_doppler import (
IRIDIUM_visibility,
IRIDIUM_windows,
IRIDIUM_sat_results,
selected_iridium,
selected_iridium_nospace,
)
from useful_functions import plot_functions as pf
import numpy as np
max_seconds = IRIDIUM_visibility["seconds"].max()
fig, axes = pf.dark_figure()
axes[0].plot(
IRIDIUM_sat_results["seconds"] / 86400, IRIDIUM_sat_results["doppler_shift"] / 1e3
)
axes[0].set_title(f"Doppler shift of {selected_iridium}")
axes[0].set_xlabel("Time since launch [days]")
axes[0].set_ylabel("Doppler shift [kHz]")
if not np.isnan(max_seconds) and not np.isinf(max_seconds):
axes[0].set_xlim(0, IRIDIUM_sat_results["seconds"].max() / 86400)
pf.finish_dark_figure(
fig, f"results/{selected_iridium_nospace}_doppler_shift.png", show=True
)
fig, axes = pf.light_figure()
axes[0].plot(
IRIDIUM_sat_results["seconds"] / 86400, IRIDIUM_sat_results["doppler_shift"] / 1e3
)
axes[0].set_title(f"Doppler shift of {selected_iridium}")
axes[0].set_xlabel("Time since launch [days]")
axes[0].set_ylabel("Doppler shift [kHz]")
# axes[0].set_xlim(0, IRIDIUM_sat_results["seconds"].max() / 86400)
pf.finish_light_figure(
fig, f"results/{selected_iridium_nospace}_doppler_shift_light.png", show=True
)
fig, axes = pf.dark_figure()
axes[0].plot(
IRIDIUM_sat_results["seconds"] / 86400, IRIDIUM_sat_results["doppler_rate"]
)
axes[0].set_title(f"Doppler rate of {selected_iridium}")
axes[0].set_xlabel("Time since launch [days]")
axes[0].set_ylabel("Doppler rate [Hz/s]")
# axes[0].set_xlim(0, IRIDIUM_sat_results["seconds"].max() / 86400)
pf.finish_dark_figure(
fig, f"results/{selected_iridium_nospace}_doppler_rate.png", show=True
)
fig, axes = pf.light_figure()
axes[0].plot(
IRIDIUM_sat_results["seconds"] / 86400, IRIDIUM_sat_results["doppler_rate"]
)
axes[0].set_title(f"Doppler rate of {selected_iridium}")
axes[0].set_xlabel("Time since launch [days]")
axes[0].set_ylabel("Doppler rate [Hz/s]")
# axes[0].set_xlim(0, IRIDIUM_sat_results["seconds"].max() / 86400)
pf.finish_light_figure(
fig, f"results/{selected_iridium_nospace}_doppler_rate_light.png", show=True
)
fig, axes = pf.dark_figure()
axes[0].plot(
IRIDIUM_visibility["seconds"] / 86400,
IRIDIUM_visibility["sum_ok"],
linestyle="none",
marker=".",
)
axes[0].set_title("Visibility of IRIDIUM satellites satisfying all 5 conditions")
axes[0].set_xlabel("Time since launch [days]")
axes[0].set_ylabel("Number of satellites [-]")
# axes[0].set_xlim(0, IRIDIUM_visibility["seconds"].max() / 86400)
pf.finish_dark_figure(
fig, "results/IRIDIUM_visibility.png", show=True, force_y_int=True
)
fig, axes = pf.light_figure()
axes[0].plot(
IRIDIUM_visibility["seconds"] / 86400,
IRIDIUM_visibility["sum_ok"],
linestyle="none",
marker=".",
)
axes[0].set_title("Visibility of IRIDIUM satellites satisfying all 5 conditions")
axes[0].set_xlabel("Time since launch [days]")
axes[0].set_ylabel("Number of satellites [-]")
axes[0].set_xlim(0, IRIDIUM_visibility["seconds"].max() / 86400)
pf.finish_light_figure(
fig, "results/IRIDIUM_visibility_light.png", show=True, force_y_int=True
)
fig, axes = pf.dark_figure()
axes[0].vlines(IRIDIUM_windows["seconds"] / 86400, 0, IRIDIUM_windows["duration"] / 60)
axes[0].set_title("Visibility windows of at least one IRIDIUM satellite")
axes[0].set_xlabel("Time since launch [days]")
axes[0].set_ylabel("Window duration [mins]")
# axes[0].set_ylim(0, IRIDIUM_windows["duration"].max() / 60)
# axes[0].set_xlim(0, IRIDIUM_windows["seconds"].max() / 86400)
pf.finish_dark_figure(fig, "results/IRIDIUM_windows.png", show=True)
fig, axes = pf.light_figure()
axes[0].vlines(IRIDIUM_windows["seconds"] / 86400, 0, IRIDIUM_windows["duration"] / 60)
axes[0].set_title("Visibility windows of at least one IRIDIUM satellite")
axes[0].set_xlabel("Time [days]")
axes[0].set_ylabel("Window duration [mins]")
# axes[0].set_ylim(0, IRIDIUM_windows["duration"].max() / 60)
# axes[0].set_xlim(0, IRIDIUM_windows["seconds"].max() / 86400)
pf.finish_light_figure(fig, "results/IRIDIUM_windows_light.png", show=True)