Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove jupyter notebooks #505

Merged
merged 13 commits into from
Aug 2, 2024
1 change: 0 additions & 1 deletion docs/3_setup_guide/Delft_Fiat/hydromt_fiat_gui.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ filters:
lightbox: auto
execute:
echo: false
jupyter: python3
number-sections: false
format: html
---
Expand Down
33 changes: 1 addition & 32 deletions docs/3_setup_guide/Delft_Fiat/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -36,35 +36,4 @@ The **secondary occupancy type** can be optional, but will sometimes be required

**Vulnerability data** in Delft-FIAT are captured in depth-damage curves. These translate inundation depths at an asset to a fraction of total damage (@fig-damagefunction). The depth-damage curve is related to the building type (e.g. 'residential 1-story building') and the inundation depth during a flood event. Different types of assets incur different degrees of damage at varying inundation levels.



```{python}
#| echo: false
#| label: fig-damagefunction
#| fig-cap: "Example of depth-damage functions."
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from pathlib import Path


file_path = Path.cwd()

file_path = Path(file_path.parents[1], "_static", "files", "vulnerability_curves.csv")
file_path = file_path.resolve()
data = df = pd.read_csv(file_path, comment='#')
df = pd.DataFrame({
('water depth'): data.iloc[:, 0],
('STRUCT1'): data.iloc[:, 1],
('STRUCT2'): data.iloc[:, 2],

})

labels=["example building type 1","example building type 1"]
plt.plot(df['water depth'], df['STRUCT1'])
plt.plot(df['water depth'], df['STRUCT2'])
plt.xlabel('Water depth (m)')
plt.ylabel('Fraction of maximum potential damage')
plt.legend(labels)
plt.gca().get_legend().set_title('')
```
![Example of depth-damage functions.](../../_static/figures/damage_curves.svg){#fig-damagefunction}
Loading
Loading