You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user-guide/usecases/pinelli/4usecase.md
+81-69Lines changed: 81 additions & 69 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ The uniqueness of this project lies in its transparency, flexibility, and modula
17
17
18
18
The primary audience for this project includes researchers in wind engineering, structural safety, and risk analysis who require transparent methods for vulnerability modeling. It is also intended for insurance and reinsurance professionals seeking empirically derived curves for underwriting, pricing, and capital allocation. Policy makers and engineers can use the results to support evidence-based decision making and improvements in building codes. Finally, educators and students can adopt the notebooks as teaching material for courses on catastrophe modeling, vulnerability analysis, and disaster risk reduction.
19
19
20
-
**Key steps:**
20
+
**Key steps:**
21
21
22
22
-**Data Processing:** Cleaning raw datasets and producing an integrated hazard–damage file.
23
23
-**Damage Ratio Calculation:** Computing losses relative to replacement value and assigning wind-speed bins.
@@ -35,62 +35,64 @@ You can access and run them directly on **DesignSafe** by clicking the link belo
| Generate processed hazard & exposure dataset |`00_generator_of_processed_Info_Natural_Event.ipynb`|[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)|
39
-
| Compute damage ratios and define wind ranges |`03_damage_ratios_&_ranges.ipynb`|[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)|
40
-
| Build empirical vulnerability matrix |`05_vulnerability_matrix.ipynb`|[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)|
41
-
| Fit and visualize vulnerability curves |`08_vulnerability_curve_analysis.ipynb`|[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)|
42
-
| Generate fragility curves |`13_Fragility_curve_analysis.ipynb`|[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)|
43
-
| Compare curves across structural classes |`18_Comparison_of_curves_analysis.ipynb`|[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)|
38
+
| Generate processed hazard & exposure dataset |`00_generator_of_processed_Info_Natural_Event.ipynb`|[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)|
39
+
| Compute damage ratios and define wind ranges |`03_damage_ratios_&_ranges.ipynb`|[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)|
40
+
| Build empirical vulnerability matrix |`05_vulnerability_matrix.ipynb`|[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)|
41
+
| Fit and visualize vulnerability curves |`08_vulnerability_curve_analysis.ipynb`|[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)|
42
+
| Generate fragility curves |`13_Fragility_curve_analysis.ipynb`|[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)|
43
+
| Compare curves across structural classes |`18_Comparison_of_curves_analysis.ipynb`|[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)|
44
44
45
45
### DesignSafe Resources
46
46
47
47
The following DesignSafe resources were used in developing this Use Case:
48
48
49
-
-[Jupyter notebook on DesignSafe JupyterHub](https://www.designsafe-ci.org/rw/workspace/jupyter/)
49
+
-[Jupyter notebook on DesignSafe JupyterHub](https://www.designsafe-ci.org/rw/workspace/jupyter/)
50
50
-[DesignSafe Publication: Empirical Hurricane Vulnerability and Fragility Curves (DOI: 10.17603/ds2-q60v-z247)](https://doi.org/10.17603/ds2-q60v-z247)
51
51
52
52
## System Requirements
53
53
54
-
-**Python 3.11+**
55
-
-**Jupyter Notebook environment** (DesignSafe JupyterHub or local)
54
+
-**Python 3.11+**
55
+
-**Jupyter Notebook environment** (DesignSafe JupyterHub or local)
56
56
57
57
## Required Libraries
58
58
59
59
Before running the notebook, make sure the following Python libraries are installed:
60
60
61
61
|**Package**|**Description**|
62
62
|-------------|-----------------|
63
-
|`numpy`| Numerical operations and array handling |
64
-
|`pandas`| Data manipulation and tabular data processing |
65
-
|`scipy`| Curve fitting and optimization routines (`curve_fit`) |
66
-
|`scikit-learn`| Regression metrics (R², MAE, RMSE) used for evaluating fitted curves |
67
-
|`matplotlib`| Plotting vulnerability and fragility curves |
68
-
|`seaborn`| Statistical visualization and enhanced plotting (used in damage ratio analysis) |
63
+
|`numpy`| Numerical operations and array handling |
64
+
|`pandas`| Data manipulation and tabular data processing |
65
+
|`scipy`| Curve fitting and optimization routines (`curve_fit`) |
66
+
|`scikit-learn`| Regression metrics (R², MAE, RMSE) used for evaluating fitted curves |
67
+
|`matplotlib`| Plotting vulnerability and fragility curves |
68
+
|`seaborn`| Statistical visualization and enhanced plotting (used in damage ratio analysis) |
69
69
70
70
## Steps to Run
71
71
72
-
1.**Download or access the repository:**[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)
72
+
1.**Download or access the repository:**[](https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-6138?version=2)
73
73
74
74
2.**Open the Jupyter notebooks** located in the root directory:
This notebook loads the cleaned input files found in `00_data_cleaned/`, verifies their structure, and merges hazard data (wind speeds) with exposure and damage attributes.
107
-
It produces the first standardized dataset used by all subsequent steps.
This notebook loads the cleaned input files found in `00_data_cleaned/`, verifies their structure, and merges hazard data (wind speeds) with exposure and damage attributes.
109
+
It produces the first standardized dataset used by all subsequent steps.
109
110
111
+
**Outputs:**
112
+
`01_checking_data.csv`,
113
+
`02_combined_processed_files.csv`.
110
114
111
115
2. **Compute damage ratios and define wind-speed ranges**
112
116
113
-
**Notebook:**`03_damage_ratios_&_ranges.ipynb`
114
-
This step calculates the *damage ratio* for each record (loss divided by replacement value) and assigns each row to a wind-speed bin.
115
-
The notebook also produces exploratory visualizations to understand early behavior of the data.
This step calculates the *damage ratio* for each record (loss divided by replacement value) and assigns each row to a wind-speed bin.
119
+
The notebook also produces exploratory visualizations to understand early behavior of the data.
120
+
121
+
**Output:**
122
+
`04_combined_processed_with_ratios.csv`.
117
123
118
124
3. **Build the empirical vulnerability matrix**
119
125
120
-
**Notebook:**`05_vulnerability_matrix.ipynb`
121
-
This notebook aggregates thousands of records into an empirical vulnerability matrix, where each wind-speed bin is associated with an Expected Damage Ratio (EDR).
122
-
It also generates a graphical summary of empirical EDR values.
This notebook aggregates thousands of records into an empirical vulnerability matrix, where each wind-speed bin is associated with an Expected Damage Ratio (EDR).
128
+
It also generates a graphical summary of empirical EDR values.
The final step allows side-by-side comparisons of vulnerability and fragility curves across construction classes, building types, or datasets.
167
+
This notebook highlights differences in performance and produces publication-ready figures.
161
168
169
+
**Outputs:**
170
+
`19_comparison_vulnerability_curves.csv`,
171
+
`20_comparison_vulnerability_curves.png`,
172
+
`21_fragility_comparison_Fragility_10.csv`,
173
+
`22_fragility_comparison_Fragility_10.png`.
162
174
163
175
164
176
### Summary
@@ -200,7 +212,7 @@ This enables evaluation across construction periods, structural types, and datas
200
212
## Citation
201
213
> Bonfante, N., Pinelli, J.-P., Bakhshandeh, M., & Guennec, T. (2025). *Empirical Hurricane Vulnerability and Fragility Curves*. DesignSafe-CI. DOI: [10.17603/ds2-q60v-z247](https://doi.org/10.17603/ds2-q60v-z247)
202
214
## Licensing
203
-
**License:** BSD 3-Clause License
215
+
**License:** BSD 3-Clause License
204
216
205
217
## Acknowledgment:
206
218
This research was supported by the **National Science Foundation (NSF)** under **Award No. 1520817**, through the **NHERI DesignSafe Cyberinfrastructure**. The opinions and conclusions expressed are those of the authors and do not necessarily reflect the views of the NSF.
0 commit comments