-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
executable file
·125 lines (104 loc) · 4.9 KB
/
constants.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# --------------------------------------------------------------------------- #
# Constants
# ----------------------------------------------------------------------------#
QUALITY_CODES = {
0: 'SUSPECT',
2: 'SUSPECT',
4: 'SUSPECT',
3: 'GOOD',
5: 'GOOD',
8: 'GOOD',
9: 'GOOD',
10: 'GOOD',
1: 'CORRUPT',
6: 'CORRUPT',
7: 'EXTRAORDINARY',
-1: 'NO_DATA',
}
ENCODING = 'iso-8859-1'
LOCATIONS = {
# OASI locations
'bioggio': 'BIO',
'brionesm': 'BRI',
'chiasso': 'CHI',
'giubiasco': 'GIU',
'locarno': 'LOC',
'mendrisio': 'MEN',
'sagno': 'SAG',
'tesserete': 'TES',
# OASI-NABEL locations
'nabel-lugano': 'LUG',
'nabel-magadino': 'NA-MAG',
# MeteoSvizzera locations
'meteosvizzera-acquarossacomprovasco': 'MS-COM',
'meteosvizzera-cimetta': 'MS-CIM',
'meteosvizzera-montegeneroso': 'MS-GEN',
'meteosvizzera-gutsch': 'MS-GUT',
'meteosvizzera-kloten': 'MS-KLO',
'meteosvizzera-locarnomonti': 'MS-OTL',
'meteosvizzera-magadino': 'MS-MAG',
'meteosvizzera-ludianomatro': 'MS-MAT',
'meteosvizzera-lugano': 'MS-LUG',
'meteosvizzera-stabio': 'MS-STB',
# ARPA locations
'Bormio': 'IT-BOR',
'Castronno': 'IT-CAS',
'Chiavenna': 'IT-CHI',
'Como': 'IT-COM',
'Gallarate': 'IT-GAL',
'Lecco': 'IT-LEC',
'Merate': 'IT-MER',
'Milano': 'IT-MIL',
'Saronno': 'IT-SAR',
'Varese': 'IT-VAR',
}
FILLED_DATA_LOCATIONS = {
# OASI locations
'Bioggio': 'BIO',
'Brione': 'BRI',
'Chiasso': 'CHI',
'Locarno': 'LOC',
'Mendrisio': 'MEN',
'Sagno': 'SAG',
'Tesserete': 'TES',
# ARPA locations
'Bormio': 'IT-BOR',
'Castronno': 'IT-CAS',
'Chiavenna': 'IT-CHI',
'Como': 'IT-COM',
'Gallarate': 'IT-GAL',
'Lecco': 'IT-LEC',
'Merate': 'IT-MER',
'Milano': 'IT-MIL',
'Saronno': 'IT-SAR',
'Varese': 'IT-VAR',
}
NOT_USED_VARS = ['Tdew']
METEO_FORECAST_STATIONS = ['COM', 'MAG', 'MAG_MAG', 'MTR', 'OTL', 'P_BSM', 'P_LOC', 'TIGIU', 'GEN', 'P_BIO', 'P_CAP',
'P_SAG', 'SBO', 'TICIA', 'TICIA_TICIA']
COPERNICUS_STATIONS = ['STC', 'SPC']
COPERNICUS_SIGNALS = ['dust_lvl50_copern', 'nmvoc_conc_lvl50_copern', 'no2_conc_lvl50_copern', 'no_conc_lvl50_copern',
'o3_conc_lvl50_copern', 'pm10_conc_lvl50_copern', 'pm2p5_conc_lvl50_copern',
'dust_lvl1000_copern', 'nmvoc_conc_lvl1000_copern', 'no2_conc_lvl1000_copern', 'no_conc_lvl1000_copern',
'o3_conc_lvl1000_copern', 'pm10_conc_lvl1000_copern', 'pm2p5_conc_lvl1000_copern']
CHUNKS_FORECASTS = {
'03': {
'chunk1': {'start': 1, 'end': 8},
'chunk2': {'start': 9, 'end': 17},
'chunk3': {'start': 18, 'end': 25},
'chunk4': {'start': 26, 'end': 33},
},
'12': {
'chunk1': {'start': 6, 'end': 11},
'chunk2': {'start': 12, 'end': 17},
'chunk3': {'start': 18, 'end': 23},
'chunk4': {'start': 24, 'end': 33},
},
}
OZONE_INDEXES_LIMITS = ['1: [0-60] μg/m³', '2: [61-120] μg/m³', '3: [121-135] μg/m³',
'4: [136-180] μg/m³', '5: [181-240] μg/m³', '6: [>240] μg/m³']
SIGNAL_EXCEPTIONS = ['DayWeek', 'IsWeekend', 'IsHolyday', 'RHW__d0', 'RHW__d1', 'RHW__d2', 'RHW__d3', 'RHW__d4',
'RHW__d5']
ARTIFICIAL_FEATURES = ['Totale', 'transf', '24h', '48h', '72h', 'mean_mor', 'mean_eve', 'TOT_PREC__sum',
'NOx__12h_mean', 'T_2M__12h_mean']
HOLYDAYS = ['06-29', '08-01', '08-15']