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,121 +0,0 @@
1
- [Charts]
2
- [Charts.2Y]
3
- Name = "2Y"
4
- Image = "{image_path}/house.png"
5
- [Charts.5Y]
6
- Name = "5Y"
7
- Image = "{image_path}/house.png"
8
- [Charts.10Y]
9
- Name = "10Y"
10
- Image = "{image_path}/house.png"
11
- [Charts.25Y]
12
- Name = "25Y"
13
- Image = "{image_path}/house.png"
14
- [Charts.50Y]
15
- Name = "50Y"
16
- Image = "{image_path}/house.png"
17
- [Charts.100Y]
18
- Name = "100Y"
19
- Image = "{image_path}/house.png"
20
-
21
- [Categories]
22
- [Categories.LowVulnerability]
23
- Name = "LowVulnerability"
24
- Color = "#D5DEE1"
25
- [Categories.HighVulnerability]
26
- Name = "HighVulnerability"
27
- Color = "#88A2AA"
28
-
29
- [Slices]
30
- [Slices.Low_Vulnerability_2Y]
31
- Name = "2Y Low Vulnerability"
32
- Query = "ImpactedHomes2YLowSVI"
33
- Chart = "2Y"
34
- Category = "LowVulnerability"
35
- [Slices.High_Vulnerability_2Y]
36
- Name = "2Y High Vulnerability"
37
- Query = "ImpactedHomes2YHighSVI"
38
- Chart = "2Y"
39
- Category = "HighVulnerability"
40
- [Slices.Low_Vulnerability_5Y]
41
- Name = "5Y Low Vulnerability"
42
- Query = "ImpactedHomes5YLowSVI"
43
- Chart = "5Y"
44
- Category = "LowVulnerability"
45
- [Slices.High_Vulnerability_5Y]
46
- Name = "5Y High Vulnerability"
47
- Query = "ImpactedHomes5YHighSVI"
48
- Chart = "5Y"
49
- Category = "HighVulnerability"
50
- [Slices.Low_Vulnerability_10Y]
51
- Name = "10Y Low Vulnerability"
52
- Query = "ImpactedHomes10YLowSVI"
53
- Chart = "10Y"
54
- Category = "LowVulnerability"
55
- [Slices.High_Vulnerability_10Y]
56
- Name = "10Y High Vulnerability"
57
- Query = "ImpactedHomes10YHighSVI"
58
- Chart = "10Y"
59
- Category = "HighVulnerability"
60
- [Slices.Low_Vulnerability_25Y]
61
- Name = "25Y Low Vulnerability"
62
- Query = "ImpactedHomes25YLowSVI"
63
- Chart = "25Y"
64
- Category = "LowVulnerability"
65
- [Slices.High_Vulnerability_25Y]
66
- Name = "25Y High Vulnerability"
67
- Query = "ImpactedHomes25YHighSVI"
68
- Chart = "25Y"
69
- Category = "HighVulnerability"
70
- [Slices.Low_Vulnerability_50Y]
71
- Name = "50Y Low Vulnerability"
72
- Query = "ImpactedHomes50YLowSVI"
73
- Chart = "50Y"
74
- Category = "LowVulnerability"
75
- [Slices.High_Vulnerability_50Y]
76
- Name = "50Y High Vulnerability"
77
- Query = "ImpactedHomes50YHighSVI"
78
- Chart = "50Y"
79
- Category = "HighVulnerability"
80
- [Slices.Low_Vulnerability_100Y]
81
- Name = "100Y Low Vulnerability"
82
- Query = "ImpactedHomes100YLowSVI"
83
- Chart = "100Y"
84
- Category = "LowVulnerability"
85
- [Slices.High_Vulnerability_100Y]
86
- Name = "100Y High Vulnerability"
87
- Query = "ImpactedHomes100YHighSVI"
88
- Chart = "100Y"
89
- Category = "HighVulnerability"
90
-
91
- [Other]
92
- [Other.Expected_Damages]
93
- title = "Expected annual damages"
94
- image = "{image_path}/money.png"
95
- image_scale = 1.3
96
- title_font_size = 25
97
- numbers_font_size = 20
98
- height = 300
99
-
100
- [Other.Flooded]
101
- title = "Number of homes with a high chance of being flooded in a 30-year period"
102
- image = "{image_path}/house.png"
103
- image_scale = 0.7
104
- title_font_size = 25
105
- numbers_font_size = 20
106
- height = 300
107
-
108
- [Other.Return_Periods]
109
- title = "Buildings impacted"
110
- font_size = 25
111
- image_scale = 0.2
112
- numbers_font = 15
113
- subtitle_font = 22
114
- legend_font = 20
115
- plot_height = 300
116
-
117
- [Other.Info]
118
- text="""Thresholds:<br>
119
- Impacted: >= 0.25 feet<br>"""
120
- image="https://openclipart.org/image/800px/302413"
121
- scale=0.1
@@ -1,65 +0,0 @@
1
- [Charts]
2
- [Charts.Flooded_roads]
3
- Name = "Flooded Roads"
4
-
5
- [Categories]
6
- [Categories.Slightly_Flooded]
7
- Name = "Slightly Flooded"
8
- Color = "#D5DEE1"
9
- Image = "{image_path}/walking_person.png"
10
- [Categories.Minor_Flooded]
11
- Name = "Minor Flooded"
12
- Color = "#88A2AA"
13
- Image = "{image_path}/car.png"
14
- [Categories.Major_Flooded]
15
- Name = "Major Flooded"
16
- Color = "#88A2AA"
17
- Image = "{image_path}/truck.png"
18
- [Categories.Fully_Flooded]
19
- Name = "Fully Flooded"
20
- Color = "#88A2AA"
21
- Image = "{image_path}/ambulance.png"
22
-
23
- [Slices]
24
- [Slices.Slightly_Flooded]
25
- Name = "Slightly Flooded"
26
- Query = "SlightlyFloodedRoads"
27
- Chart = "Flooded Roads"
28
- Category = "Slightly Flooded"
29
- [Slices.Minor_Flooded]
30
- Name = "Minor Flooded"
31
- Query = "MinorFloodedRoads"
32
- Chart = "Flooded Roads"
33
- Category = "Minor Flooded"
34
- [Slices.Major_Flooded]
35
- Name = "Major Flooded"
36
- Query = "MajorFloodedRoads"
37
- Chart = "Flooded Roads"
38
- Category = "Major Flooded"
39
- [Slices.Fully_Flooded]
40
- Name = "Fully Flooded"
41
- Query = "FullyFloodedRoads"
42
- Chart = "Flooded Roads"
43
- Category = "Fully Flooded"
44
-
45
- [Other]
46
- [Other.Plot]
47
- image_scale = 0.1
48
- numbers_font = 20
49
- height = 350
50
- width = 600
51
- [Other.Title]
52
- text = "Interrupted roads"
53
- font = 30
54
- [Other.Subtitle]
55
- font = 25
56
- [Other.Y_axis_title]
57
- text = "Miles"
58
- [Other.Info]
59
- text="""Thresholds:<br>
60
- Pedestrians: 0.3 feet<br>
61
- Cars: 0.5 feet<br>
62
- Trucks: 1 feet<br>
63
- Rescue vehicles: 2 feet"""
64
- image="{image_path}/info.png"
65
- scale=0.1
@@ -1,45 +0,0 @@
1
- * {
2
- box-sizing: border-box;
3
- }
4
-
5
- html, body {
6
- height: 10%;
7
- margin: 0;
8
- }
9
-
10
- .container {
11
- height: 10vmin;
12
- display: grid;
13
- grid-template-columns: 1fr 1fr 1fr 1fr;
14
- grid-template-rows: 1fr 1fr;
15
- }
16
-
17
- .top-half {
18
- grid-column-start: 1;
19
- grid-column-end: span 4;
20
- grid-row-start: 1;
21
- grid-row-end: span 1;
22
- align-items: center;
23
- justify-content: center;
24
- display: block;
25
- }
26
-
27
- .bottom-left{
28
- grid-column-start: 1;
29
- grid-column-end: span 2;
30
- grid-row-start: 2;
31
- grid-row-end: span 1;
32
- align-items: center;
33
- justify-content: center;
34
- display: block;
35
- }
36
-
37
- .bottom-right{
38
- grid-column-start: 3;
39
- grid-column-end: span 2;
40
- grid-row-start: 2;
41
- grid-row-end: span 1;
42
- align-items: center;
43
- justify-content: center;
44
- display: block;
45
- }
@@ -1,4 +0,0 @@
1
- [flood_exceedance]
2
- column = "Inundation Depth"
3
- threshold = 0.05
4
- period = 30
@@ -1,143 +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 ('residential') AND `Inundation Depth` <= 0.25 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 ('residential') AND `Inundation Depth` <= 1.5 AND `Inundation Depth` > 0.25 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 ('residential') AND `Inundation Depth` > 1.5 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 ('commercial') AND `Inundation Depth` <= 0.25 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 ('commercial') AND `Inundation Depth` <= 1.5 AND `Inundation Depth` > 0.25 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 ('commercial') AND `Inundation Depth` > 1.5 AND `Total Damage` > 0"
50
- long_name = "Destroyed Commercial Buildings"
51
- show_in_metrics_table = "False"
52
-
53
- [[queries]]
54
- name = "IndustrialMinorCount"
55
- description = "Number of industrial buildings with minor flooding"
56
- select = "COUNT(*)"
57
- filter = "`Secondary Object Type` IN ('industrial') AND `Inundation Depth` <= 0.25 AND `Total Damage` > 0"
58
- long_name = "Minor Damaged Industrial Buildings"
59
- show_in_metrics_table = "False"
60
-
61
- [[queries]]
62
- name = "IndustrialMajorCount"
63
- description = "Number of industrial buildings with major flooding"
64
- select = "COUNT(*)"
65
- filter = "`Secondary Object Type` IN ('industrial') AND `Inundation Depth` <= 1.5 AND `Inundation Depth` > 0.25 AND `Total Damage` > 0"
66
- long_name = "Major Damaged Industrial Buildings"
67
- show_in_metrics_table = "False"
68
-
69
- [[queries]]
70
- name = "IndustrialDestroyedCount"
71
- description = "Number of destroyed industrial buildings"
72
- select = "COUNT(*)"
73
- filter = "`Secondary Object Type` IN ('industrial') AND `Inundation Depth` > 1.5 AND `Total Damage` > 0"
74
- long_name = "Destroyed Industrial Buildings"
75
- show_in_metrics_table = "False"
76
-
77
- # Metrics used in people/vulnerability charts
78
-
79
- [[queries]]
80
- name = "FloodedLowVulnerability"
81
- description = "Number of flooded homes with low vulnerability"
82
- select = "COUNT(*)"
83
- filter = "`Primary Object Type` IN ('residential') AND `Inundation Depth` <= 1.5 AND `SVI` < SVI_threshold AND `Total Damage` > 0"
84
- long_name = "Flooded Low Vulnerability"
85
- show_in_metrics_table = "False"
86
-
87
- [[queries]]
88
- name = "FloodedHighVulnerability"
89
- description = "Number of flooded homes with high vulnerability"
90
- select = "COUNT(*)"
91
- filter = "`Primary Object Type` IN ('residential') AND `Inundation Depth` <= 1.5 AND `SVI` >= SVI_threshold AND `Total Damage` > 0"
92
- long_name = "Flooded Homes - High SV (#)"
93
- show_in_metrics_table = "True"
94
-
95
- [[queries]]
96
- name = "DisplacedLowVulnerability"
97
- description = "Number of homes with displaced people with low vulnerability"
98
- select = "COUNT(*)"
99
- filter = "`Primary Object Type` IN ('residential') AND `Inundation Depth` > 1.5 AND `SVI` < SVI_threshold AND `Total Damage` > 0"
100
- long_name = "Displaced Low Vulnerability"
101
- show_in_metrics_table = "False"
102
-
103
- [[queries]]
104
- name = "DisplacedHighVulnerability"
105
- description = "Number of homes with displaced people high vulnerability"
106
- select = "COUNT(*)"
107
- filter = "`Primary Object Type` IN ('residential') AND `Inundation Depth` > 1.5 AND `SVI` >= SVI_threshold AND `Total Damage` > 0"
108
- long_name = "Displaced High Vulnerability"
109
- show_in_metrics_table = "False"
110
-
111
- # Metrics used in road impacts graph
112
-
113
- [[queries]]
114
- name = "SlightlyFloodedRoads"
115
- description = "Roads disrupted for pedestrians"
116
- select = "SUM(`Segment Length`)*0.001"
117
- filter = "`Inundation Depth` > 0.05"
118
- long_name = "Slightly flooded roads"
119
- show_in_metrics_table = "False"
120
-
121
- [[queries]]
122
- name = "MinorFloodedRoads"
123
- description = "Roads disrupted for cars"
124
- select = "SUM(`Segment Length`)*0.001"
125
- filter = "`Inundation Depth` >= 0.1"
126
- long_name = "Minor flooded roads"
127
- show_in_metrics_table = "False"
128
-
129
- [[queries]]
130
- name = "MajorFloodedRoads"
131
- description = "Roads disrupted for trucks"
132
- select = "SUM(`Segment Length`)*0.001"
133
- filter = "`Inundation Depth` >= 0.25"
134
- long_name = "Major flooded roads"
135
- show_in_metrics_table = "False"
136
-
137
- [[queries]]
138
- name = "FullyFloodedRoads"
139
- description = "Roads disrupted for rescue vehicles"
140
- select = "SUM(`Segment Length`)*0.001"
141
- filter = "`Inundation Depth` >= 0.4"
142
- long_name = "Fully flooded roads"
143
- 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.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 = "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.1 AND `Primary Object Type` = 'residential' 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.1 AND `Primary Object Type` = 'residential' 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.1 AND `Primary Object Type` = 'residential'"
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.1 AND `Primary Object Type` = 'residential' 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.1 AND `Primary Object Type` = 'residential' 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.1 AND `Primary Object Type` = 'residential'"
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.1 AND `Primary Object Type` = 'residential' 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.1 AND `Primary Object Type` = 'residential' 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.1 AND `Primary Object Type` = 'residential'"
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.1 AND `Primary Object Type` = 'residential' 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.1 AND `Primary Object Type` = 'residential' 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.1 AND `Primary Object Type` = 'residential'"
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.1 AND `Primary Object Type` = 'residential' 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.1 AND `Primary Object Type` = 'residential' 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.1 AND `Primary Object Type` = 'residential'"
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.1 AND `Primary Object Type` = 'residential' 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.1 AND `Primary Object Type` = 'residential' AND `SVI` < SVI_threshold"
152
- long_name = "Less vulnerable flooded homes RP100"
153
- show_in_metrics_table = "False"
@@ -1,127 +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 ('residential') AND `Inundation Depth` <= 0.25 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 ('residential') AND `Inundation Depth` <= 1.5 AND `Inundation Depth` > 0.25 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 ('residential') AND `Inundation Depth` > 1.5 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 ('commercial') AND `Inundation Depth` <= 0.25 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 ('commercial') AND `Inundation Depth` <= 1.5 AND `Inundation Depth` > 0.25 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 ('commercial') AND `Inundation Depth` > 1.5 AND `Total Damage` > 0"
50
- long_name = "Destroyed Commercial Buildings"
51
- show_in_metrics_table = "False"
52
-
53
- [[queries]]
54
- name = "IndustrialMinorCount"
55
- description = "Number of industrial buildings with minor flooding"
56
- select = "COUNT(*)"
57
- filter = "`Secondary Object Type` IN ('industrial') AND `Inundation Depth` <= 0.25 AND `Total Damage` > 0"
58
- long_name = "Minor Damaged Industrial Buildings"
59
- show_in_metrics_table = "False"
60
-
61
- [[queries]]
62
- name = "IndustrialMajorCount"
63
- description = "Number of industrial buildings with major flooding"
64
- select = "COUNT(*)"
65
- filter = "`Secondary Object Type` IN ('industrial') AND `Inundation Depth` <= 1.5 AND `Inundation Depth` > 0.25 AND `Total Damage` > 0"
66
- long_name = "Major Damaged Industrial Buildings"
67
- show_in_metrics_table = "False"
68
-
69
- [[queries]]
70
- name = "IndustrialDestroyedCount"
71
- description = "Number of destroyed industrial buildings"
72
- select = "COUNT(*)"
73
- filter = "`Secondary Object Type` IN ('industrial') AND `Inundation Depth` > 1.5 AND `Total Damage` > 0"
74
- long_name = "Destroyed Industrial Buildings"
75
- show_in_metrics_table = "False"
76
-
77
- # Metrics used in people/vulnerability charts
78
-
79
- [[queries]]
80
- name = "FloodedHomes"
81
- description = "Number of flooded homes "
82
- select = "COUNT(*)"
83
- filter = "`Primary Object Type` IN ('residential') AND `Inundation Depth` <= 1.5 AND `Total Damage` > 0"
84
- long_name = "Flooded Homes"
85
- show_in_metrics_table = "False"
86
-
87
- [[queries]]
88
- name = "DisplacedHomes"
89
- description = "Number of homes with displaced people"
90
- select = "COUNT(*)"
91
- filter = "`Primary Object Type` IN ('residential') AND `Inundation Depth` > 1.5 AND `Total Damage` > 0"
92
- long_name = "Homes with Displaced People"
93
- show_in_metrics_table = "False"
94
-
95
- # Metrics used in road impacts graph
96
-
97
- [[queries]]
98
- name = "SlightlyFloodedRoads"
99
- description = "Roads disrupted for pedestrians"
100
- select = "SUM(`Segment Length`)*0.001"
101
- filter = "`Inundation Depth` > 0.05"
102
- long_name = "Slightly flooded roads"
103
- show_in_metrics_table = "False"
104
-
105
- [[queries]]
106
- name = "MinorFloodedRoads"
107
- description = "Roads disrupted for cars"
108
- select = "SUM(`Segment Length`)*0.001"
109
- filter = "`Inundation Depth` >= 0.1"
110
- long_name = "Minor flooded roads"
111
- show_in_metrics_table = "False"
112
-
113
- [[queries]]
114
- name = "MajorFloodedRoads"
115
- description = "Roads disrupted for trucks"
116
- select = "SUM(`Segment Length`)*0.001"
117
- filter = "`Inundation Depth` >= 0.25"
118
- long_name = "Major flooded roads"
119
- show_in_metrics_table = "False"
120
-
121
- [[queries]]
122
- name = "FullyFloodedRoads"
123
- description = "Roads disrupted for rescue vehicles"
124
- select = "SUM(`Segment Length`)*0.001"
125
- filter = "`Inundation Depth` >= 0.4"
126
- long_name = "Fully flooded roads"
127
- show_in_metrics_table = "False"