-
Notifications
You must be signed in to change notification settings - Fork 1
/
auto_reports.py
39 lines (34 loc) · 1013 Bytes
/
auto_reports.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
from plots import create_storm_surge_report
import pandas as pd
import sys
import os
import logging
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
STORMS = { # tuple of (start, end, regions)
"Babet": (
pd.Timestamp("2023-09-30"),
pd.Timestamp("2023-10-30"),
["Denmark and Germany", "Belgium and NL", "UK West and Ireland"],
),
"Ciarán": (
pd.Timestamp("2023-10-08"),
pd.Timestamp("2023-11-08"),
[
"English Channel",
"French Channel",
"French Gulf of Gascogne",
"Spain Gulf of Gascogne",
"Portugal",
"Spain Atlantic",
"Med Spain",
"Med France",
"Med Ligure",
"Italy mainland west",
"Adriatic",
],
),
}
WORKDIR = os.path.dirname(os.path.realpath(__file__))
for storm in STORMS.keys():
start, end, regions = STORMS[storm]
create_storm_surge_report(start, end, regions, storm, WORKDIR)