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

Buildings exposure, disaggregation of value, activity and trade flows #189

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
435df41
Draft buildings download rules
tomalrussell Feb 2, 2024
1c91282
Add rules to Snakefile
tomalrussell Feb 2, 2024
02f8f60
Download GHSL built surface, volume and height
tomalrussell Feb 9, 2024
5384cf6
National and ADM1 summary of GIRI BEM values
tomalrussell Feb 9, 2024
910ac81
Add capital stock datasets for comparison
tomalrussell Feb 9, 2024
f98e54e
JRC building damage curves for asia
tomalrussell Feb 9, 2024
889a70b
WIP disaggregate BEM with GHSL_BUILT_V
tomalrussell Feb 16, 2024
0de2724
Sketch working with built-up area layers by country
tomalrussell Apr 5, 2024
e7052ee
Lift admin helper to package
tomalrussell Apr 11, 2024
6f2ebbf
Fix CSV format
tomalrussell Apr 22, 2024
3457a53
WIP exploring process in notebooks
tomalrussell Jun 5, 2024
d8755b9
Ignore sync directories
tomalrussell Jun 5, 2024
99a7ba0
Add helper package irv-datapkg
tomalrussell Jun 5, 2024
f46e1d3
Explore, merge and group mode split trade data
tomalrussell Jun 12, 2024
ac0ffdf
Update damage curves
tomalrussell Oct 1, 2024
40b28f8
WIP capital stocks, activity and trade disaggregation
tomalrussell Oct 1, 2024
24e0051
Drop overture download
tomalrussell Oct 1, 2024
0f48c46
Update variable name comment
tomalrussell Oct 1, 2024
dac5df5
Add nbstripout for notebooks
tomalrussell Oct 1, 2024
6b5dea4
Allow multiple columns in damage curves, default to second column for…
tomalrussell Oct 1, 2024
3da75a2
Drop overture include
tomalrussell Oct 1, 2024
d48c51c
Format script
tomalrussell Oct 1, 2024
e939186
Download JRC river flood rp maps
tomalrussell Oct 17, 2024
81e2905
Start RP demo
tomalrussell Oct 18, 2024
9c146c5
Add helper functions
tomalrussell Oct 18, 2024
8a564b7
Add powerplant damage curve
tomalrussell Oct 18, 2024
7eae18d
Return period JRC damage demo, factor out some helpers
tomalrussell Nov 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ build
data/*
results/*
*.bak
soge-sync
push
pull
SCRATCH

# snakemake
.snakemake/
Expand Down
13 changes: 13 additions & 0 deletions config/damage_curves/flood/commercial_asia.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Huizinga et al., 2017 European Commission JRC Techical Report
# https://publications.jrc.ec.europa.eu/repository/handle/JRC105688
# table 3-6: Average continental damage function for Asia - commerce.
inundation_depth_(m),damage_fraction
0,0
0.5,0.38
1,0.54
1.5,0.66
2,0.76
3,0.88
4,0.94
5,0.98
6,1
13 changes: 13 additions & 0 deletions config/damage_curves/flood/industrial_asia.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Huizinga et al., 2017 European Commission JRC Techical Report
# https://publications.jrc.ec.europa.eu/repository/handle/JRC105688
# table 3-11: Average continental damage function for Asia - industry.
inundation_depth_(m),damage_fraction
0,0
0.5,0.28
1,0.48
1.5,0.63
2,0.72
3,0.86
4,0.91
5,0.96
6,1
66 changes: 66 additions & 0 deletions config/damage_curves/flood/powerplants.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# https://zenodo.org/records/10203846
# Table_D2_Multi-Hazard_Fragility_and_Vulnerability_Curves_V1.0.0.xlsx
# Nirandjan 2024, V1.0, F_Vuln_Depth, F1.1, F1.2, F1.3 (identical)
depth_m,damage_fraction
0.00,0.000
0.05,0.004
0.10,0.008
0.15,0.012
0.20,0.016
0.25,0.021
0.30,0.025
0.35,0.029
0.40,0.033
0.45,0.037
0.50,0.041
0.55,0.045
0.60,0.049
0.65,0.053
0.70,0.057
0.75,0.062
0.80,0.066
0.85,0.070
0.90,0.074
0.95,0.078
1.00,0.082
1.05,0.086
1.10,0.090
1.15,0.094
1.20,0.098
1.25,0.103
1.30,0.107
1.35,0.111
1.40,0.115
1.45,0.119
1.50,0.123
1.55,0.127
1.60,0.131
1.65,0.135
1.70,0.139
1.75,0.144
1.80,0.148
1.85,0.152
1.90,0.156
1.95,0.160
2.00,0.164
2.05,0.168
2.10,0.172
2.15,0.176
2.20,0.180
2.25,0.185
2.30,0.189
2.35,0.193
2.40,0.197
2.45,0.201
2.50,0.205
2.55,0.209
2.60,0.213
2.65,0.217
2.70,0.243
2.75,0.251
2.80,0.259
2.85,0.268
2.90,0.276
2.95,0.284
3.00,0.292
3.05,0.300
246 changes: 123 additions & 123 deletions config/damage_curves/flood/rail_railway.csv
Original file line number Diff line number Diff line change
@@ -1,125 +1,125 @@
# https://zenodo.org/records/10203846
# Table_D2_Multi-Hazard_Fragility_and_Vulnerability_Curves_V1.0.0.xlsx
# Nirandjan 2024, V1.0, F_Vuln_Depth, F8.6
inundation_depth_(m),damage_fraction
0.00,0.000
0.05,0.021
0.10,0.043
0.15,0.064
0.20,0.086
0.25,0.107
0.30,0.129
0.35,0.150
0.40,0.172
0.45,0.193
0.50,0.214
0.55,0.230
0.60,0.246
0.65,0.262
0.70,0.278
0.75,0.294
0.80,0.309
0.85,0.325
0.90,0.341
0.95,0.357
1.00,0.373
1.05,0.396
1.10,0.419
1.15,0.442
1.20,0.465
1.25,0.488
1.30,0.511
1.35,0.535
1.40,0.558
1.45,0.581
1.50,0.604
1.55,0.615
1.60,0.625
1.65,0.636
1.70,0.646
1.75,0.657
1.80,0.667
1.85,0.678
1.90,0.689
1.95,0.699
2.00,0.710
2.05,0.715
2.10,0.720
2.15,0.724
2.20,0.729
2.25,0.734
2.30,0.739
2.35,0.744
2.40,0.749
2.45,0.754
2.50,0.759
2.55,0.764
2.60,0.769
2.65,0.774
2.70,0.779
2.75,0.784
2.80,0.789
2.85,0.794
2.90,0.799
2.95,0.803
3.00,0.808
3.05,0.812
3.10,0.816
3.15,0.820
3.20,0.824
3.25,0.828
3.30,0.832
3.35,0.836
3.40,0.840
3.45,0.844
3.50,0.848
3.55,0.852
3.60,0.856
3.65,0.860
3.70,0.864
3.75,0.867
3.80,0.871
3.85,0.875
3.90,0.879
3.95,0.883
4.00,0.887
4.05,0.891
4.10,0.895
4.15,0.899
4.20,0.903
4.25,0.908
4.30,0.912
4.35,0.916
4.40,0.920
4.45,0.924
4.50,0.928
4.55,0.932
4.60,0.936
4.65,0.940
4.70,0.944
4.75,0.948
4.80,0.952
4.85,0.957
4.90,0.961
4.95,0.965
5.00,0.969
5.05,0.970
5.10,0.972
5.15,0.973
5.20,0.975
5.25,0.977
5.30,0.978
5.35,0.980
5.40,0.981
5.45,0.983
5.50,0.984
5.55,0.986
5.60,0.988
5.65,0.989
5.70,0.991
5.75,0.992
5.80,0.994
5.85,0.995
5.90,0.997
5.95,0.998
6.00,1.000
# Nirandjan 2024, V1.0, F_Vuln_Depth, F8.6a,F8.6b
inundation_depth_(m),damage_fraction,high
0,0.000,0.000
0.05,0.015,0.028
0.1,0.029,0.057
0.15,0.044,0.085
0.2,0.058,0.114
0.25,0.073,0.142
0.3,0.087,0.170
0.35,0.102,0.199
0.4,0.116,0.227
0.45,0.131,0.255
0.5,0.145,0.284
0.55,0.160,0.300
0.6,0.176,0.316
0.65,0.191,0.333
0.7,0.207,0.349
0.75,0.222,0.365
0.8,0.237,0.382
0.85,0.253,0.398
0.9,0.268,0.414
0.95,0.283,0.430
1,0.299,0.447
1.05,0.309,0.483
1.1,0.319,0.519
1.15,0.329,0.556
1.2,0.339,0.592
1.25,0.348,0.628
1.3,0.358,0.665
1.35,0.368,0.701
1.4,0.378,0.737
1.45,0.388,0.773
1.5,0.398,0.810
1.55,0.402,0.827
1.6,0.406,0.844
1.65,0.410,0.861
1.7,0.415,0.878
1.75,0.419,0.895
1.8,0.423,0.912
1.85,0.427,0.929
1.9,0.431,0.946
1.95,0.435,0.963
2,0.439,0.980
2.05,0.447,0.981
2.1,0.454,0.982
2.15,0.461,0.983
2.2,0.469,0.984
2.25,0.476,0.985
2.3,0.484,0.986
2.35,0.491,0.987
2.4,0.498,0.988
2.45,0.506,0.989
2.5,0.513,0.990
2.55,0.521,0.991
2.6,0.528,0.992
2.65,0.535,0.993
2.7,0.543,0.994
2.75,0.550,0.995
2.8,0.558,0.996
2.85,0.565,0.997
2.9,0.572,0.998
2.95,0.580,0.999
3,0.587,1.000
3.05,0.595,1.000
3.1,0.604,1.000
3.15,0.612,1.000
3.2,0.620,1.000
3.25,0.629,1.000
3.3,0.637,1.000
3.35,0.645,1.000
3.4,0.654,1.000
3.45,0.662,1.000
3.5,0.670,1.000
3.55,0.679,1.000
3.6,0.687,1.000
3.65,0.695,1.000
3.7,0.704,1.000
3.75,0.712,1.000
3.8,0.720,1.000
3.85,0.729,1.000
3.9,0.737,1.000
3.95,0.745,1.000
4,0.754,1.000
4.05,0.761,1.000
4.1,0.769,1.000
4.15,0.777,1.000
4.2,0.784,1.000
4.25,0.792,1.000
4.3,0.799,1.000
4.35,0.807,1.000
4.4,0.815,1.000
4.45,0.822,1.000
4.5,0.830,1.000
4.55,0.838,1.000
4.6,0.845,1.000
4.65,0.853,1.000
4.7,0.860,1.000
4.75,0.868,1.000
4.8,0.876,1.000
4.85,0.883,1.000
4.9,0.891,1.000
4.95,0.899,1.000
5,0.906,1.000
5.05,0.911,1.000
5.1,0.916,1.000
5.15,0.920,1.000
5.2,0.925,1.000
5.25,0.930,1.000
5.3,0.934,1.000
5.35,0.939,1.000
5.4,0.944,1.000
5.45,0.948,1.000
5.5,0.953,1.000
5.55,0.958,1.000
5.6,0.962,1.000
5.65,0.967,1.000
5.7,0.972,1.000
5.75,0.977,1.000
5.8,0.981,1.000
5.85,0.986,1.000
5.9,0.991,1.000
5.95,0.995,1.000
6,1.000,1.000
13 changes: 13 additions & 0 deletions config/damage_curves/flood/residential_asia.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Huizinga et al., 2017 European Commission JRC Techical Report
# https://publications.jrc.ec.europa.eu/repository/handle/JRC105688
# table 3-2: average continental damage function for Asia - residential buildings
inundation_depth_(m),damage_fraction
0,0
0.5,0.33
1,0.49
1.5,0.62
2,0.72
3,0.87
4,0.93
5,0.98
6,1
Loading