flood-adapt 1.0.4__py3-none-any.whl → 1.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. flood_adapt/__init__.py +2 -3
  2. flood_adapt/adapter/fiat_adapter.py +8 -3
  3. flood_adapt/adapter/sfincs_adapter.py +2 -2
  4. flood_adapt/adapter/sfincs_offshore.py +1 -1
  5. flood_adapt/config/fiat.py +1 -1
  6. flood_adapt/config/gui.py +185 -8
  7. flood_adapt/database_builder/database_builder.py +155 -129
  8. flood_adapt/database_builder/metrics_utils.py +1834 -0
  9. flood_adapt/dbs_classes/database.py +23 -28
  10. flood_adapt/dbs_classes/dbs_benefit.py +0 -26
  11. flood_adapt/dbs_classes/dbs_event.py +2 -2
  12. flood_adapt/dbs_classes/dbs_measure.py +2 -2
  13. flood_adapt/dbs_classes/dbs_scenario.py +0 -24
  14. flood_adapt/dbs_classes/dbs_static.py +4 -4
  15. flood_adapt/dbs_classes/dbs_strategy.py +2 -4
  16. flood_adapt/dbs_classes/dbs_template.py +65 -25
  17. flood_adapt/flood_adapt.py +63 -12
  18. flood_adapt/misc/exceptions.py +43 -6
  19. {flood_adapt-1.0.4.dist-info → flood_adapt-1.1.0.dist-info}/METADATA +3 -3
  20. {flood_adapt-1.0.4.dist-info → flood_adapt-1.1.0.dist-info}/RECORD +24 -44
  21. flood_adapt/database_builder/templates/infographics/OSM/config_charts.toml +0 -90
  22. flood_adapt/database_builder/templates/infographics/OSM/config_people.toml +0 -57
  23. flood_adapt/database_builder/templates/infographics/OSM/config_risk_charts.toml +0 -121
  24. flood_adapt/database_builder/templates/infographics/OSM/config_roads.toml +0 -65
  25. flood_adapt/database_builder/templates/infographics/US_NSI/config_charts.toml +0 -126
  26. flood_adapt/database_builder/templates/infographics/US_NSI/config_people.toml +0 -60
  27. flood_adapt/database_builder/templates/infographics/US_NSI/config_risk_charts.toml +0 -121
  28. flood_adapt/database_builder/templates/infographics/US_NSI/config_roads.toml +0 -65
  29. flood_adapt/database_builder/templates/infographics/US_NSI/styles.css +0 -45
  30. flood_adapt/database_builder/templates/infometrics/OSM/metrics_additional_risk_configs.toml +0 -4
  31. flood_adapt/database_builder/templates/infometrics/OSM/with_SVI/infographic_metrics_config.toml +0 -143
  32. flood_adapt/database_builder/templates/infometrics/OSM/with_SVI/infographic_metrics_config_risk.toml +0 -153
  33. flood_adapt/database_builder/templates/infometrics/OSM/without_SVI/infographic_metrics_config.toml +0 -127
  34. flood_adapt/database_builder/templates/infometrics/OSM/without_SVI/infographic_metrics_config_risk.toml +0 -57
  35. flood_adapt/database_builder/templates/infometrics/US_NSI/metrics_additional_risk_configs.toml +0 -4
  36. flood_adapt/database_builder/templates/infometrics/US_NSI/with_SVI/infographic_metrics_config.toml +0 -191
  37. flood_adapt/database_builder/templates/infometrics/US_NSI/with_SVI/infographic_metrics_config_risk.toml +0 -153
  38. flood_adapt/database_builder/templates/infometrics/US_NSI/without_SVI/infographic_metrics_config.toml +0 -178
  39. flood_adapt/database_builder/templates/infometrics/US_NSI/without_SVI/infographic_metrics_config_risk.toml +0 -57
  40. flood_adapt/database_builder/templates/infometrics/mandatory_metrics_config.toml +0 -9
  41. flood_adapt/database_builder/templates/infometrics/mandatory_metrics_config_risk.toml +0 -65
  42. /flood_adapt/database_builder/templates/infographics/{OSM/styles.css → styles.css} +0 -0
  43. {flood_adapt-1.0.4.dist-info → flood_adapt-1.1.0.dist-info}/LICENSE +0 -0
  44. {flood_adapt-1.0.4.dist-info → flood_adapt-1.1.0.dist-info}/WHEEL +0 -0
  45. {flood_adapt-1.0.4.dist-info → flood_adapt-1.1.0.dist-info}/top_level.txt +0 -0
@@ -1,57 +0,0 @@
1
- aggregateBy = []
2
-
3
- [[queries]]
4
- name = "FloodedHomes"
5
- description = "Homes likely to flood (Inundation Depth > 0.05) in 30 year period"
6
- select = "COUNT(*)"
7
- filter = "`Exceedance Probability` > 50 AND `Primary Object Type` = 'residential'"
8
- long_name = "Homes likely to flood in 30-year period (#)"
9
- show_in_metrics_table = "False"
10
-
11
- [[queries]]
12
- name = "ImpactedHomes2Y"
13
- description = "Homes impacted (Inundation Depth > 0.25) in the 2-year event"
14
- select = "COUNT(*)"
15
- filter = "`Inundation Depth (2Y)` >= 0.1 AND `Primary Object Type` = 'residential'"
16
- long_name = "Flooded homes RP2"
17
- show_in_metrics_table = "True"
18
-
19
- [[queries]]
20
- name = "ImpactedHomes5Y"
21
- description = "Homes impacted (Inundation Depth > 0.25) in the 5-year event"
22
- select = "COUNT(*)"
23
- filter = "`Inundation Depth (5Y)` >= 0.1 AND `Primary Object Type` = 'residential'"
24
- long_name = "Flooded homes RP5"
25
- show_in_metrics_table = "True"
26
-
27
- [[queries]]
28
- name = "ImpactedHomes10Y"
29
- description = "Homes impacted (Inundation Depth > 0.25) in the 10-year event"
30
- select = "COUNT(*)"
31
- filter = "`Inundation Depth (10Y)` >= 0.1 AND `Primary Object Type` = 'residential'"
32
- long_name = "Flooded homes RP10"
33
- show_in_metrics_table = "True"
34
-
35
- [[queries]]
36
- name = "ImpactedHomes25Y"
37
- description = "Homes impacted (Inundation Depth > 0.25) in the 25-year event"
38
- select = "COUNT(*)"
39
- filter = "`Inundation Depth (25Y)` >= 0.1 AND `Primary Object Type` = 'residential'"
40
- long_name = "Flooded homes RP25"
41
- show_in_metrics_table = "True"
42
-
43
- [[queries]]
44
- name = "ImpactedHomes50Y"
45
- description = "Homes impacted (Inundation Depth > 0.25) in the 50-year event"
46
- select = "COUNT(*)"
47
- filter = "`Inundation Depth (50Y)` >= 0.1 AND `Primary Object Type` = 'residential'"
48
- long_name = "Flooded homes RP50"
49
- show_in_metrics_table = "True"
50
-
51
- [[queries]]
52
- name = "ImpactedHomes100Y"
53
- description = "Homes impacted (Inundation Depth > 0.25) in the 100-year event"
54
- select = "COUNT(*)"
55
- filter = "`Inundation Depth (100Y)` >= 0.1 AND `Primary Object Type` = 'residential'"
56
- long_name = "Flooded homes RP100"
57
- show_in_metrics_table = "True"
@@ -1,4 +0,0 @@
1
- [flood_exceedance]
2
- column = "Inundation Depth"
3
- threshold = 0.2
4
- period = 30
@@ -1,191 +0,0 @@
1
- aggregateBy = []
2
-
3
- # Metrics used in buildings damaged charts
4
-
5
- [[queries]]
6
- name = "ResidentialMinorCount"
7
- description = "Number of residences with minor damage"
8
- select = "COUNT(*)"
9
- filter = "`Primary Object Type` IN ('RES') AND `Inundation Depth` <= 1 AND `Total Damage` > 0"
10
- long_name = "Res buildings w/ minor flooding (#)"
11
- show_in_metrics_table = "False"
12
-
13
- [[queries]]
14
- name = "ResidentialMajorCount"
15
- description = "Number of residences with major damage"
16
- select = "COUNT(*)"
17
- filter = "`Primary Object Type` IN ('RES') AND `Inundation Depth` <= 6 AND `Inundation Depth` > 1 AND `Total Damage` > 0"
18
- long_name = "Res buildings w/ major flooding (#)"
19
- show_in_metrics_table = "False"
20
-
21
- [[queries]]
22
- name = "ResidentialDestroyedCount"
23
- description = "Number of destroyed residences"
24
- select = "COUNT(*)"
25
- filter = "`Primary Object Type` IN ('RES') AND `Inundation Depth` > 6 AND `Total Damage` > 0"
26
- long_name = "Res buildings destroyed (#)"
27
- show_in_metrics_table = "False"
28
-
29
- [[queries]]
30
- name = "CommercialMinorCount"
31
- description = "Number of commercial buildings with minor flooding"
32
- select = "COUNT(*)"
33
- filter = "`Secondary Object Type` IN ('COM1', 'COM2', 'COM3', 'COM4', 'COM5', 'COM8', 'COM9') AND `Inundation Depth` <= 1 AND `Total Damage` > 0"
34
- long_name = "Minor Damaged Commercial Buildings"
35
- show_in_metrics_table = "False"
36
-
37
- [[queries]]
38
- name = "CommercialMajorCount"
39
- description = "Number of commercial buildings with major flooding"
40
- select = "COUNT(*)"
41
- filter = "`Secondary Object Type` IN ('COM1', 'COM2', 'COM3', 'COM4', 'COM5', 'COM8', 'COM9') AND `Inundation Depth` <= 6 AND `Inundation Depth` > 1 AND `Total Damage` > 0"
42
- long_name = "Major Damaged Commercial Buildings"
43
- show_in_metrics_table = "False"
44
-
45
- [[queries]]
46
- name = "CommercialDestroyedCount"
47
- description = "Number of destroyed commercial buildings"
48
- select = "COUNT(*)"
49
- filter = "`Secondary Object Type` IN ('COM1', 'COM2', 'COM3', 'COM4', 'COM5', 'COM8', 'COM9') AND `Inundation Depth` > 6 AND `Total Damage` > 0"
50
- long_name = "Destroyed Commercial Buildings"
51
- show_in_metrics_table = "False"
52
-
53
- [[queries]]
54
- name = "HealthMinorCount"
55
- description = "Number of minor flooded health facilities"
56
- select = "COUNT(*)"
57
- filter = "`Secondary Object Type` IN ('RES6', 'COM6', 'COM7') AND `Inundation Depth` <= 1 AND `Total Damage` > 0 AND `Inundation Depth` > 0"
58
- long_name = "Minor Damaged Health Buildings"
59
- show_in_metrics_table = "False"
60
-
61
- [[queries]]
62
- name = "HealthMajorCount"
63
- description = "Number of major flooded health facilities"
64
- select = "COUNT(*)"
65
- filter = "`Secondary Object Type` IN ('RES6', 'COM6', 'COM7') AND `Inundation Depth` <= 6 AND `Inundation Depth` > 1 AND `Total Damage` > 0"
66
- long_name = "Major Damaged Health Buildings"
67
- show_in_metrics_table = "False"
68
-
69
- [[queries]]
70
- name = "HealthDestroyedCount"
71
- description = "Number of destroyed health facilities"
72
- select = "COUNT(*)"
73
- filter = "`Secondary Object Type` IN ('RES6', 'COM6', 'COM7') AND `Inundation Depth` > 6 AND `Total Damage` > 0"
74
- long_name = "Destroyed Health Buildings"
75
- show_in_metrics_table = "False"
76
-
77
- [[queries]]
78
- name = "SchoolsMinorCount"
79
- description = "Number of minor flooded Schools facilities"
80
- select = "COUNT(*)"
81
- filter = "`Secondary Object Type` IN ('EDU1', 'EDU2') AND `Inundation Depth` <= 1 AND `Total Damage` > 0"
82
- long_name = "Minor Damaged Schools Buildings"
83
- show_in_metrics_table = "False"
84
-
85
- [[queries]]
86
- name = "SchoolsMajorCount"
87
- description = "Number of major flooded Schools facilities"
88
- select = "COUNT(*)"
89
- filter = "`Secondary Object Type` IN ('EDU1', 'EDU2') AND `Inundation Depth` <= 6 AND `Inundation Depth` > 1 AND `Total Damage` > 0"
90
- long_name = "Major Damaged Schools Buildings"
91
- show_in_metrics_table = "False"
92
-
93
- [[queries]]
94
- name = "SchoolsDestroyedCount"
95
- description = "Number of destroyed Schools facilities"
96
- select = "COUNT(*)"
97
- filter = "`Secondary Object Type` IN ('EDU1', 'EDU2') AND `Inundation Depth` > 6 AND `Total Damage` > 0"
98
- long_name = "Destroyed Schools Buildings"
99
- show_in_metrics_table = "False"
100
-
101
- [[queries]]
102
- name = "EmergencyMinorCount"
103
- description = "Number of minor flooded emergency response buildings"
104
- select = "COUNT(*)"
105
- filter = "`Secondary Object Type` IN ('GOV2') AND `Inundation Depth` <= 1 AND `Total Damage` > 0"
106
- long_name = "Minor Damaged Emergency Buildings"
107
- show_in_metrics_table = "False"
108
-
109
- [[queries]]
110
- name = "EmergencyMajorCount"
111
- description = "Number of major flooded emergency response buildings"
112
- select = "COUNT(*)"
113
- filter = "`Secondary Object Type` IN ('GOV2') AND `Inundation Depth` <= 6 AND `Inundation Depth` > 1 AND `Total Damage` > 0"
114
- long_name = "Major Damaged Emergency Buildings"
115
- show_in_metrics_table = "False"
116
-
117
- [[queries]]
118
- name = "EmergencyDestroyedCount"
119
- description = "Number of destroyed emergency response buildings"
120
- select = "COUNT(*)"
121
- filter = "`Secondary Object Type` IN ('GOV2') AND `Inundation Depth` > 6 AND `Total Damage` > 0"
122
- long_name = "Destroyed Emergency Buildings"
123
- show_in_metrics_table = "False"
124
-
125
- # Metrics used in people/vulnerability charts
126
-
127
- [[queries]]
128
- name = "FloodedLowVulnerability"
129
- description = "Number of flooded homes with low vulnerability"
130
- select = "COUNT(*)"
131
- filter = "`Primary Object Type` IN ('RES') AND `Inundation Depth` <= 6 AND `SVI` < SVI_threshold AND `Total Damage` > 0"
132
- long_name = "Flooded Low Vulnerability"
133
- show_in_metrics_table = "False"
134
-
135
- [[queries]]
136
- name = "FloodedHighVulnerability"
137
- description = "Number of flooded homes with high vulnerability"
138
- select = "COUNT(*)"
139
- filter = "`Primary Object Type` IN ('RES') AND `Inundation Depth` <= 6 AND `SVI` >= SVI_threshold AND `Total Damage` > 0"
140
- long_name = "Flooded Homes - High SV (#)"
141
- show_in_metrics_table = "True"
142
-
143
- [[queries]]
144
- name = "DisplacedLowVulnerability"
145
- description = "Number of homes with displaced people with low vulnerability"
146
- select = "COUNT(*)"
147
- filter = "`Primary Object Type` IN ('RES') AND `Inundation Depth` > 6 AND `SVI` < SVI_threshold AND `Total Damage` > 0"
148
- long_name = "Displaced Low Vulnerability"
149
- show_in_metrics_table = "False"
150
-
151
- [[queries]]
152
- name = "DisplacedHighVulnerability"
153
- description = "Number of homes with displaced people high vulnerability"
154
- select = "COUNT(*)"
155
- filter = "`Primary Object Type` IN ('RES') AND `Inundation Depth` > 6 AND `SVI` >= SVI_threshold AND `Total Damage` > 0"
156
- long_name = "Displaced High Vulnerability"
157
- show_in_metrics_table = "False"
158
-
159
- # Metrics used in road impacts graph
160
-
161
- [[queries]]
162
- name = "SlightlyFloodedRoads"
163
- description = "Roads disrupted for pedestrians"
164
- select = "SUM(`Segment Length`)*0.0001894"
165
- filter = "`Inundation Depth` > 0.3"
166
- long_name = "Slightly flooded roads"
167
- show_in_metrics_table = "False"
168
-
169
- [[queries]]
170
- name = "MinorFloodedRoads"
171
- description = "Roads disrupted for cars"
172
- select = "SUM(`Segment Length`)*0.0001894"
173
- filter = "`Inundation Depth` >= 0.5"
174
- long_name = "Minor flooded roads"
175
- show_in_metrics_table = "False"
176
-
177
- [[queries]]
178
- name = "MajorFloodedRoads"
179
- description = "Roads disrupted for trucks"
180
- select = "SUM(`Segment Length`)*0.0001894"
181
- filter = "`Inundation Depth` >= 1"
182
- long_name = "Major flooded roads"
183
- show_in_metrics_table = "False"
184
-
185
- [[queries]]
186
- name = "FullyFloodedRoads"
187
- description = "Roads disrupted for rescue vehicles"
188
- select = "SUM(`Segment Length`)*0.0001894"
189
- filter = "`Inundation Depth` >= 2"
190
- long_name = "Fully flooded roads"
191
- show_in_metrics_table = "False"
@@ -1,153 +0,0 @@
1
- aggregateBy = []
2
-
3
- [[queries]]
4
- name = "FloodedHomes"
5
- description = "Homes likely to flood (Inundation Depth > 0.2) in 30 year period"
6
- select = "COUNT(*)"
7
- filter = "`Exceedance Probability` > 50 AND `Primary Object Type` = 'RES'"
8
- long_name = "Homes likely to flood in 30-year period (#)"
9
- show_in_metrics_table = "False"
10
-
11
- [[queries]]
12
- name = "ImpactedHomes2Y"
13
- description = "Homes impacted (Inundation Depth > 0.25) in the 2-year event"
14
- select = "COUNT(*)"
15
- filter = "`Inundation Depth (2Y)` >= 0.25 AND `Primary Object Type` = 'RES'"
16
- long_name = "Flooded homes RP2"
17
- show_in_metrics_table = "True"
18
-
19
- [[queries]]
20
- name = "ImpactedHomes2YHighSVI"
21
- description = "Highly vulnerable homes impacted (Inundation Depth > 0.25) in the 2-year event"
22
- select = "COUNT(*)"
23
- filter = "`Inundation Depth (2Y)` >= 0.25 AND `Primary Object Type` = 'RES' AND `SVI` >= SVI_threshold"
24
- long_name = "Highly vulnerable flooded homes RP2"
25
- show_in_metrics_table = "True"
26
-
27
- [[queries]]
28
- name = "ImpactedHomes2YLowSVI"
29
- description = "Less-vulnerable homes impacted (Inundation Depth > 0.25) in the 2-year event"
30
- select = "COUNT(*)"
31
- filter = "`Inundation Depth (2Y)` >= 0.25 AND `Primary Object Type` = 'RES' AND `SVI` < SVI_threshold"
32
- long_name = "Less vulnerable flooded homes RP2"
33
- show_in_metrics_table = "False"
34
-
35
- [[queries]]
36
- name = "ImpactedHomes5Y"
37
- description = "Homes impacted (Inundation Depth > 0.25) in the 5-year event"
38
- select = "COUNT(*)"
39
- filter = "`Inundation Depth (5Y)` >= 0.25 AND `Primary Object Type` = 'RES'"
40
- long_name = "Flooded homes RP5"
41
- show_in_metrics_table = "True"
42
-
43
- [[queries]]
44
- name = "ImpactedHomes5YHighSVI"
45
- description = "Highly vulnerable homes impacted (Inundation Depth > 0.25) in the 5-year event"
46
- select = "COUNT(*)"
47
- filter = "`Inundation Depth (5Y)` >= 0.25 AND `Primary Object Type` = 'RES' AND `SVI` >= SVI_threshold"
48
- long_name = "Highly vulnerable flooded homes RP5"
49
- show_in_metrics_table = "True"
50
-
51
- [[queries]]
52
- name = "ImpactedHomes5YLowSVI"
53
- description = "Highly vulnerable homes impacted (Inundation Depth > 0.25) in the 5-year event"
54
- select = "COUNT(*)"
55
- filter = "`Inundation Depth (5Y)` >= 0.25 AND `Primary Object Type` = 'RES' AND `SVI` < SVI_threshold"
56
- long_name = "Less vulnerable flooded homes RP5"
57
- show_in_metrics_table = "False"
58
-
59
- [[queries]]
60
- name = "ImpactedHomes10Y"
61
- description = "Homes impacted (Inundation Depth > 0.25) in the 10-year event"
62
- select = "COUNT(*)"
63
- filter = "`Inundation Depth (10Y)` >= 0.25 AND `Primary Object Type` = 'RES'"
64
- long_name = "Flooded homes RP10"
65
- show_in_metrics_table = "True"
66
-
67
- [[queries]]
68
- name = "ImpactedHomes10YHighSVI"
69
- description = "Highly vulnerable homes impacted (Inundation Depth > 0.25) in the 10-year event"
70
- select = "COUNT(*)"
71
- filter = "`Inundation Depth (10Y)` >= 0.25 AND `Primary Object Type` = 'RES' AND `SVI` >= SVI_threshold"
72
- long_name = "Highly vulnerable flooded homes RP10"
73
- show_in_metrics_table = "True"
74
-
75
- [[queries]]
76
- name = "ImpactedHomes10YLowSVI"
77
- description = "Highly vulnerable homes impacted (Inundation Depth > 0.25) in the 10-year event"
78
- select = "COUNT(*)"
79
- filter = "`Inundation Depth (10Y)` >= 0.25 AND `Primary Object Type` = 'RES' AND `SVI` < SVI_threshold"
80
- long_name = "Less vulnerable flooded homes RP10"
81
- show_in_metrics_table = "False"
82
-
83
- [[queries]]
84
- name = "ImpactedHomes25Y"
85
- description = "Homes impacted (Inundation Depth > 0.25) in the 25-year event"
86
- select = "COUNT(*)"
87
- filter = "`Inundation Depth (25Y)` >= 0.25 AND `Primary Object Type` = 'RES'"
88
- long_name = "Flooded homes RP25"
89
- show_in_metrics_table = "True"
90
-
91
- [[queries]]
92
- name = "ImpactedHomes25YHighSVI"
93
- description = "Highly vulnerable homes impacted (Inundation Depth > 0.25) in the 25-year event"
94
- select = "COUNT(*)"
95
- filter = "`Inundation Depth (25Y)` >= 0.25 AND `Primary Object Type` = 'RES' AND `SVI` >= SVI_threshold"
96
- long_name = "Highly vulnerable flooded homes RP25"
97
- show_in_metrics_table = "True"
98
-
99
- [[queries]]
100
- name = "ImpactedHomes25YLowSVI"
101
- description = "Highly vulnerable homes impacted (Inundation Depth > 0.25) in the 25-year event"
102
- select = "COUNT(*)"
103
- filter = "`Inundation Depth (25Y)` >= 0.25 AND `Primary Object Type` = 'RES' AND `SVI` < SVI_threshold"
104
- long_name = "Less vulnerable flooded homes RP25"
105
- show_in_metrics_table = "False"
106
-
107
- [[queries]]
108
- name = "ImpactedHomes50Y"
109
- description = "Homes impacted (Inundation Depth > 0.25) in the 50-year event"
110
- select = "COUNT(*)"
111
- filter = "`Inundation Depth (50Y)` >= 0.25 AND `Primary Object Type` = 'RES'"
112
- long_name = "Flooded homes RP50"
113
- show_in_metrics_table = "True"
114
-
115
- [[queries]]
116
- name = "ImpactedHomes50YHighSVI"
117
- description = "Highly vulnerable homes impacted (Inundation Depth > 0.25) in the 50-year event"
118
- select = "COUNT(*)"
119
- filter = "`Inundation Depth (50Y)` >= 0.25 AND `Primary Object Type` = 'RES' AND `SVI` >= SVI_threshold"
120
- long_name = "Highly vulnerable flooded homes RP50"
121
- show_in_metrics_table = "True"
122
-
123
- [[queries]]
124
- name = "ImpactedHomes50YLowSVI"
125
- description = "Highly vulnerable homes impacted (Inundation Depth > 0.25) in the 50-year event"
126
- select = "COUNT(*)"
127
- filter = "`Inundation Depth (50Y)` >= 0.25 AND `Primary Object Type` = 'RES' AND `SVI` < SVI_threshold"
128
- long_name = "Less vulnerable flooded homes RP50"
129
- show_in_metrics_table = "False"
130
-
131
- [[queries]]
132
- name = "ImpactedHomes100Y"
133
- description = "Homes impacted (Inundation Depth > 0.25) in the 100-year event"
134
- select = "COUNT(*)"
135
- filter = "`Inundation Depth (100Y)` >= 0.25 AND `Primary Object Type` = 'RES'"
136
- long_name = "Flooded homes RP100"
137
- show_in_metrics_table = "True"
138
-
139
- [[queries]]
140
- name = "ImpactedHomes100YHighSVI"
141
- description = "Highly vulnerable homes impacted (Inundation Depth > 0.25) in the 100-year event"
142
- select = "COUNT(*)"
143
- filter = "`Inundation Depth (100Y)` >= 0.25 AND `Primary Object Type` = 'RES' AND `SVI` >= SVI_threshold"
144
- long_name = "Highly vulnerable flooded homes RP100"
145
- show_in_metrics_table = "True"
146
-
147
- [[queries]]
148
- name = "ImpactedHomes100YLowSVI"
149
- description = "Highly vulnerable homes impacted (Inundation Depth > 0.25) in the 100-year event"
150
- select = "COUNT(*)"
151
- filter = "`Inundation Depth (100Y)` >= 0.25 AND `Primary Object Type` = 'RES' AND `SVI` < SVI_threshold"
152
- long_name = "Less vulnerable flooded homes RP100"
153
- show_in_metrics_table = "False"
@@ -1,178 +0,0 @@
1
- aggregateBy = []
2
-
3
- # Metrics used in buildings damaged charts
4
-
5
- [[queries]]
6
- name = "ResidentialMinorCount"
7
- description = "Number of residences with minor damage"
8
- select = "COUNT(*)"
9
- filter = "`Primary Object Type` IN ('RES') AND `Inundation Depth` <= 1 AND `Total Damage` > 0"
10
- long_name = "Res buildings w/ minor flooding (#)"
11
- show_in_metrics_table = "False"
12
-
13
- [[queries]]
14
- name = "ResidentialMajorCount"
15
- description = "Number of residences with major damage"
16
- select = "COUNT(*)"
17
- filter = "`Primary Object Type` IN ('RES') AND `Inundation Depth` <= 6 AND `Inundation Depth` > 1 AND `Total Damage` > 0"
18
- long_name = "Res buildings w/ major flooding (#)"
19
- show_in_metrics_table = "False"
20
-
21
- [[queries]]
22
- name = "ResidentialDestroyedCount"
23
- description = "Number of destroyed residences"
24
- select = "COUNT(*)"
25
- filter = "`Primary Object Type` IN ('RES') AND `Inundation Depth` > 6 AND `Total Damage` > 0"
26
- long_name = "Res buildings destroyed (#)"
27
- show_in_metrics_table = "False"
28
-
29
- [[queries]]
30
- name = "CommercialMinorCount"
31
- description = "Number of commercial buildings with minor flooding"
32
- select = "COUNT(*)"
33
- filter = "`Secondary Object Type` IN ('COM1', 'COM2', 'COM3', 'COM4', 'COM5', 'COM8', 'COM9') AND `Inundation Depth` <= 1 AND `Total Damage` > 0"
34
- long_name = "Minor Damaged Commercial Buildings"
35
- show_in_metrics_table = "False"
36
-
37
- [[queries]]
38
- name = "CommercialMajorCount"
39
- description = "Number of commercial buildings with major flooding"
40
- select = "COUNT(*)"
41
- filter = "`Secondary Object Type` IN ('COM1', 'COM2', 'COM3', 'COM4', 'COM5', 'COM8', 'COM9') AND `Inundation Depth` <= 6 AND `Inundation Depth` > 1 AND `Total Damage` > 0"
42
- long_name = "Major Damaged Commercial Buildings"
43
- show_in_metrics_table = "False"
44
-
45
- [[queries]]
46
- name = "CommercialDestroyedCount"
47
- description = "Number of destroyed commercial buildings"
48
- select = "COUNT(*)"
49
- filter = "`Secondary Object Type` IN ('COM1', 'COM2', 'COM3', 'COM4', 'COM5', 'COM8', 'COM9') AND `Inundation Depth` > 6 AND `Total Damage` > 0"
50
- long_name = "Destroyed Commercial Buildings"
51
- show_in_metrics_table = "False"
52
-
53
- [[queries]]
54
- name = "HealthMinorCount"
55
- description = "Number of minor flooded health facilities"
56
- select = "COUNT(*)"
57
- filter = "`Secondary Object Type` IN ('RES6', 'COM6', 'COM7') AND `Inundation Depth` <= 1 AND `Total Damage` > 0 AND `Inundation Depth` > 0"
58
- long_name = "Minor Damaged Health Buildings"
59
- show_in_metrics_table = "False"
60
-
61
- [[queries]]
62
- name = "HealthMajorCount"
63
- description = "Number of major flooded health facilities"
64
- select = "COUNT(*)"
65
- filter = "`Secondary Object Type` IN ('RES6', 'COM6', 'COM7') AND `Inundation Depth` <= 6 AND `Inundation Depth` > 1 AND `Total Damage` > 0"
66
- long_name = "Major Damaged Health Buildings"
67
- show_in_metrics_table = "False"
68
-
69
- [[queries]]
70
- name = "HealthDestroyedCount"
71
- description = "Number of destroyed health facilities"
72
- select = "COUNT(*)"
73
- filter = "`Secondary Object Type` IN ('RES6', 'COM6', 'COM7') AND `Inundation Depth` > 6 AND `Total Damage` > 0"
74
- long_name = "Destroyed Health Buildings"
75
- show_in_metrics_table = "False"
76
-
77
- [[queries]]
78
- name = "SchoolsMinorCount"
79
- description = "Number of minor flooded Schools facilities"
80
- select = "COUNT(*)"
81
- filter = "`Secondary Object Type` IN ('EDU1', 'EDU2') AND `Inundation Depth` <= 1 AND `Total Damage` > 0"
82
- long_name = "Minor Damaged Schools Buildings"
83
- show_in_metrics_table = "False"
84
-
85
- [[queries]]
86
- name = "SchoolsMajorCount"
87
- description = "Number of major flooded Schools facilities"
88
- select = "COUNT(*)"
89
- filter = "`Secondary Object Type` IN ('EDU1', 'EDU2') AND `Inundation Depth` <= 6 AND `Inundation Depth` > 1 AND `Total Damage` > 0"
90
- long_name = "Major Damaged Schools Buildings"
91
- show_in_metrics_table = "False"
92
-
93
- [[queries]]
94
- name = "SchoolsDestroyedCount"
95
- description = "Number of destroyed Schools facilities"
96
- select = "COUNT(*)"
97
- filter = "`Secondary Object Type` IN ('EDU1', 'EDU2') AND `Inundation Depth` > 6 AND `Total Damage` > 0"
98
- long_name = "Destroyed Schools Buildings"
99
- show_in_metrics_table = "False"
100
-
101
- [[queries]]
102
- name = "EmergencyMinorCount"
103
- description = "Number of minor flooded emergency response buildings"
104
- select = "COUNT(*)"
105
- filter = "`Secondary Object Type` IN ('GOV2') AND `Inundation Depth` <= 1 AND `Total Damage` > 0"
106
- long_name = "Minor Damaged Emergency Buildings"
107
- show_in_metrics_table = "False"
108
-
109
- [[queries]]
110
- name = "EmergencyMajorCount"
111
- description = "Number of major flooded emergency response buildings"
112
- select = "COUNT(*)"
113
- filter = "`Secondary Object Type` IN ('GOV2') AND `Inundation Depth` <= 6 AND `Inundation Depth` > 1 AND `Total Damage` > 0"
114
- long_name = "Major Damaged Emergency Buildings"
115
- show_in_metrics_table = "False"
116
-
117
- [[queries]]
118
- name = "EmergencyDestroyedCount"
119
- description = "Number of destroyed emergency response buildings"
120
- select = "COUNT(*)"
121
- filter = "`Secondary Object Type` IN ('GOV2') AND `Inundation Depth` > 6 AND `Total Damage` > 0"
122
- long_name = "Destroyed Emergency Buildings"
123
- show_in_metrics_table = "False"
124
-
125
-
126
- # Metrics used in people/vulnerability charts
127
-
128
- [[queries]]
129
- name = "FloodedHomes"
130
- description = "Number of flooded homes "
131
- select = "COUNT(*)"
132
- filter = "`Primary Object Type` IN ('RES') AND `Inundation Depth` <= 6 AND `Total Damage` > 0"
133
- long_name = "Flooded Homes"
134
- show_in_metrics_table = "False"
135
-
136
- [[queries]]
137
- name = "DisplacedHomes"
138
- description = "Number of homes with displaced people"
139
- select = "COUNT(*)"
140
- filter = "`Primary Object Type` IN ('RES') AND `Inundation Depth` > 6 AND `Total Damage` > 0"
141
- long_name = "Homes with Displaced People"
142
- show_in_metrics_table = "False"
143
-
144
-
145
-
146
- # Metrics used in road impacts graph
147
-
148
- [[queries]]
149
- name = "SlightlyFloodedRoads"
150
- description = "Roads disrupted for pedestrians"
151
- select = "SUM(`Segment Length`)*0.0001894"
152
- filter = "`Inundation Depth` > 0.3"
153
- long_name = "Slightly flooded roads"
154
- show_in_metrics_table = "False"
155
-
156
- [[queries]]
157
- name = "MinorFloodedRoads"
158
- description = "Roads disrupted for cars"
159
- select = "SUM(`Segment Length`)*0.0001894"
160
- filter = "`Inundation Depth` >= 0.5"
161
- long_name = "Minor flooded roads"
162
- show_in_metrics_table = "False"
163
-
164
- [[queries]]
165
- name = "MajorFloodedRoads"
166
- description = "Roads disrupted for trucks"
167
- select = "SUM(`Segment Length`)*0.0001894"
168
- filter = "`Inundation Depth` >= 1"
169
- long_name = "Major flooded roads"
170
- show_in_metrics_table = "False"
171
-
172
- [[queries]]
173
- name = "FullyFloodedRoads"
174
- description = "Roads disrupted for rescue vehicles"
175
- select = "SUM(`Segment Length`)*0.0001894"
176
- filter = "`Inundation Depth` >= 2"
177
- long_name = "Fully flooded roads"
178
- show_in_metrics_table = "False"
@@ -1,57 +0,0 @@
1
- aggregateBy = []
2
-
3
- [[queries]]
4
- name = "FloodedHomes"
5
- description = "Homes likely to flood (Inundation Depth > 0.2) in 30 year period"
6
- select = "COUNT(*)"
7
- filter = "`Exceedance Probability` > 50 AND `Primary Object Type` = 'RES'"
8
- long_name = "Homes likely to flood in 30-year period (#)"
9
- show_in_metrics_table = "False"
10
-
11
- [[queries]]
12
- name = "ImpactedHomes2Y"
13
- description = "Homes impacted (Inundation Depth > 0.25) in the 2-year event"
14
- select = "COUNT(*)"
15
- filter = "`Inundation Depth (2Y)` >= 0.25 AND `Primary Object Type` = 'RES'"
16
- long_name = "Flooded homes RP2"
17
- show_in_metrics_table = "True"
18
-
19
- [[queries]]
20
- name = "ImpactedHomes5Y"
21
- description = "Homes impacted (Inundation Depth > 0.25) in the 5-year event"
22
- select = "COUNT(*)"
23
- filter = "`Inundation Depth (5Y)` >= 0.25 AND `Primary Object Type` = 'RES'"
24
- long_name = "Flooded homes RP5"
25
- show_in_metrics_table = "True"
26
-
27
- [[queries]]
28
- name = "ImpactedHomes10Y"
29
- description = "Homes impacted (Inundation Depth > 0.25) in the 10-year event"
30
- select = "COUNT(*)"
31
- filter = "`Inundation Depth (10Y)` >= 0.25 AND `Primary Object Type` = 'RES'"
32
- long_name = "Flooded homes RP10"
33
- show_in_metrics_table = "True"
34
-
35
- [[queries]]
36
- name = "ImpactedHomes25Y"
37
- description = "Homes impacted (Inundation Depth > 0.25) in the 25-year event"
38
- select = "COUNT(*)"
39
- filter = "`Inundation Depth (25Y)` >= 0.25 AND `Primary Object Type` = 'RES'"
40
- long_name = "Flooded homes RP25"
41
- show_in_metrics_table = "True"
42
-
43
- [[queries]]
44
- name = "ImpactedHomes50Y"
45
- description = "Homes impacted (Inundation Depth > 0.25) in the 50-year event"
46
- select = "COUNT(*)"
47
- filter = "`Inundation Depth (50Y)` >= 0.25 AND `Primary Object Type` = 'RES'"
48
- long_name = "Flooded homes RP50"
49
- show_in_metrics_table = "True"
50
-
51
- [[queries]]
52
- name = "ImpactedHomes100Y"
53
- description = "Homes impacted (Inundation Depth > 0.25) in the 100-year event"
54
- select = "COUNT(*)"
55
- filter = "`Inundation Depth (100Y)` >= 0.25 AND `Primary Object Type` = 'RES'"
56
- long_name = "Flooded homes RP100"
57
- show_in_metrics_table = "True"
@@ -1,9 +0,0 @@
1
- aggregateBy = []
2
-
3
- [[queries]]
4
- name = "TotalDamageEvent"
5
- description = "Total building damage"
6
- select = "SUM(`Total Damage`)"
7
- filter = ""
8
- long_name = "Building damage ($)"
9
- show_in_metrics_table = "True"