-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_examples.py
34 lines (28 loc) · 1.39 KB
/
run_examples.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
"""
Testing map creation without actual signals. Parameters are coordinates of cities at different latitude, and radii of
range from 1km to 25km. At different latitude mapbox behaves differently, so it is important to test a large range of
different altitudes with different radii.
Miha Lotric, April 2020
"""
from signal_visualizer.visualizer import visual_from_data
places = {"Quito": (-0.140287, -78.478916),
"New York": (40.717801, -73.998909),
"Nairobi": (-1.288896, 36.825475),
"Aberdeen": (57.164475, -2.107236),
"London": (51.510950, -0.103222),
"Tartu": (58.377172, 26.781315),
"Baghdad": (33.306328, 44.334720),
"Tokyo": (35.670280, 139.773867),
"Jakarta": (-6.232227, 106.873743),
"Lima District": (-12.077113, -77.063483),
"Melburne": (-37.829621, 145.023435),
"Longyearbyen": (78.223704, 15.635087),
"Ushuaia": (-54.805557, -68.305552)}
# Make maps for all cities provided with radii of 1km, 5km and 25km (1km is min and 25km max for FOAM signals)
for name, coordinates in places.items():
for i in (1, 5, 25):
file_name = f"output/testing_images/{coordinates[0]:.1f}_{name}_{i}.png"
visual_from_data(coordinates, 1000*i, save_as=file_name)
print(name + " done")
# Uncomment to run for a single point
# visual_from_data((46.048526, 14.525562), 15000, show=1)