Skip to content

Commit

Permalink
Do not rely on symlinks for test damage curves / costs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-fred committed Apr 2, 2024
1 parent fb740d0 commit df1f746
Show file tree
Hide file tree
Showing 19 changed files with 1,219 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/config/damage_curves

This file was deleted.

Empty file.
19 changes: 19 additions & 0 deletions tests/config/damage_curves/flood/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Damage curves

Each CSV file in this directory pertains to a particular `Asset`. When networks
of nodes or edges are created, each feature of interest should be tagged with
an `asset_type`. Currently accepted values may found in the open_gira.assets module.

The contents of the CSV files should be:

1) A header describing the source of the data to follow. Header lines should be prefixed with '#', e.g.
\# Source:
\# Nirandjan et al., 2024, F8.4

2) The first non-header line gives the column headings. For flooding this should be:
inundation_depth_(m),damage_fraction

3) The inundation and damage ratio data should follow, one record per line, e.g.
0.0,0.0
0.5,0.2
1.0,0.33
125 changes: 125 additions & 0 deletions tests/config/damage_curves/flood/rail_railway.csv
Original file line number Diff line number Diff line change
@@ -0,0 +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.6a
inundation_depth_(m),damage_fraction
0.00,0.000
0.05,0.015
0.10,0.029
0.15,0.044
0.20,0.058
0.25,0.073
0.30,0.087
0.35,0.102
0.40,0.116
0.45,0.131
0.50,0.145
0.55,0.160
0.60,0.176
0.65,0.191
0.70,0.207
0.75,0.222
0.80,0.237
0.85,0.253
0.90,0.268
0.95,0.283
1.00,0.299
1.05,0.309
1.10,0.319
1.15,0.329
1.20,0.339
1.25,0.348
1.30,0.358
1.35,0.368
1.40,0.378
1.45,0.388
1.50,0.398
1.55,0.402
1.60,0.406
1.65,0.410
1.70,0.415
1.75,0.419
1.80,0.423
1.85,0.427
1.90,0.431
1.95,0.435
2.00,0.439
2.05,0.447
2.10,0.454
2.15,0.461
2.20,0.469
2.25,0.476
2.30,0.484
2.35,0.491
2.40,0.498
2.45,0.506
2.50,0.513
2.55,0.521
2.60,0.528
2.65,0.535
2.70,0.543
2.75,0.550
2.80,0.558
2.85,0.565
2.90,0.572
2.95,0.580
3.00,0.587
3.05,0.595
3.10,0.604
3.15,0.612
3.20,0.620
3.25,0.629
3.30,0.637
3.35,0.645
3.40,0.654
3.45,0.662
3.50,0.670
3.55,0.679
3.60,0.687
3.65,0.695
3.70,0.704
3.75,0.712
3.80,0.720
3.85,0.729
3.90,0.737
3.95,0.745
4.00,0.754
4.05,0.761
4.10,0.769
4.15,0.777
4.20,0.784
4.25,0.792
4.30,0.799
4.35,0.807
4.40,0.815
4.45,0.822
4.50,0.830
4.55,0.838
4.60,0.845
4.65,0.853
4.70,0.860
4.75,0.868
4.80,0.876
4.85,0.883
4.90,0.891
4.95,0.899
5.00,0.906
5.05,0.911
5.10,0.916
5.15,0.920
5.20,0.925
5.25,0.930
5.30,0.934
5.35,0.939
5.40,0.944
5.45,0.948
5.50,0.953
5.55,0.958
5.60,0.962
5.65,0.967
5.70,0.972
5.75,0.977
5.80,0.981
5.85,0.986
5.90,0.991
5.95,0.995
6.00,1.000
125 changes: 125 additions & 0 deletions tests/config/damage_curves/flood/road_motorway.csv
Original file line number Diff line number Diff line change
@@ -0,0 +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, F7.4
inundation_depth_(m),damage_fraction
0.00,0.000
0.05,0.001
0.10,0.002
0.15,0.003
0.20,0.004
0.25,0.005
0.30,0.006
0.35,0.007
0.40,0.008
0.45,0.009
0.50,0.010
0.55,0.012
0.60,0.014
0.65,0.016
0.70,0.018
0.75,0.020
0.80,0.022
0.85,0.024
0.90,0.026
0.95,0.028
1.00,0.030
1.05,0.035
1.10,0.039
1.15,0.044
1.20,0.048
1.25,0.053
1.30,0.057
1.35,0.062
1.40,0.066
1.45,0.071
1.50,0.075
1.55,0.078
1.60,0.080
1.65,0.083
1.70,0.085
1.75,0.088
1.80,0.090
1.85,0.093
1.90,0.095
1.95,0.098
2.00,0.100
2.05,0.101
2.10,0.103
2.15,0.104
2.20,0.105
2.25,0.106
2.30,0.108
2.35,0.109
2.40,0.110
2.45,0.111
2.50,0.113
2.55,0.114
2.60,0.115
2.65,0.116
2.70,0.118
2.75,0.119
2.80,0.120
2.85,0.121
2.90,0.123
2.95,0.124
3.00,0.125
3.05,0.126
3.10,0.128
3.15,0.129
3.20,0.130
3.25,0.131
3.30,0.133
3.35,0.134
3.40,0.135
3.45,0.136
3.50,0.138
3.55,0.139
3.60,0.140
3.65,0.141
3.70,0.143
3.75,0.144
3.80,0.145
3.85,0.146
3.90,0.148
3.95,0.149
4.00,0.150
4.05,0.151
4.10,0.153
4.15,0.154
4.20,0.155
4.25,0.156
4.30,0.158
4.35,0.159
4.40,0.160
4.45,0.161
4.50,0.163
4.55,0.164
4.60,0.165
4.65,0.166
4.70,0.168
4.75,0.169
4.80,0.170
4.85,0.171
4.90,0.173
4.95,0.174
5.00,0.175
5.05,0.176
5.10,0.178
5.15,0.179
5.20,0.180
5.25,0.181
5.30,0.183
5.35,0.184
5.40,0.185
5.45,0.186
5.50,0.188
5.55,0.189
5.60,0.190
5.65,0.191
5.70,0.193
5.75,0.194
5.80,0.195
5.85,0.196
5.90,0.198
5.95,0.199
6.00,0.200
Loading

0 comments on commit df1f746

Please sign in to comment.