-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplot_sphere.py
More file actions
23 lines (18 loc) · 841 Bytes
/
plot_sphere.py
File metadata and controls
23 lines (18 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import pandas as pd
from matplotlib import pyplot as plt
from simurg_plotter.sphere_animation.animation import plot_sphere
from simurg_plotter.sphere_animation.utils import get_all_data
if __name__ == '__main__':
file_path = r"file.h5"
central_longitude = 104.280606 # Долгота
central_latitude = 52.289588 # Широта
# ROTI: 0 - 0.5
# Variations: -0.2 - 0.2
# TecTrusted: 0 - 100
vmax = 0.5
vmin = 0
data = get_all_data(file_path)
all_data = [(group, pd.DataFrame(dataset_data)) for group, dataset_data in data.items() if '/data/' in group]
scater = plot_sphere(central_longitude, central_latitude, all_data[45][1], all_data[45][0], vmax=vmax, vmin=vmin, scale=True,
scale_label="TECu/min", marker_size=15, title="ROTI")
plt.show()