Skip to content

Commit

Permalink
Merge pull request #302 from Deltares/feat/losses
Browse files Browse the repository at this point in the history
Losses module
  • Loading branch information
Carsopre authored Mar 12, 2024
2 parents 8e6114b + 6e8d72f commit 049cfb8
Show file tree
Hide file tree
Showing 112 changed files with 23,082 additions and 148 deletions.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
building,i_type_EV1,nr_isolated,hazard
apartments,flooded,398,EV1
apartments,isolated,86,EV1
commercial,flooded,3,EV1
garage,flooded,4,EV1
house,flooded,342,EV1
house,isolated,3,EV1
industrial,flooded,8,EV1
industrial,isolated,6,EV1
yes,flooded,2,EV1
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name = multi link isolated locations
save_gpkg = True
save_csv = True
analysis = multi_link_isolated_locations
weighing = length
loss_per_distance =
loss_type =
disruption_per_category =
traffic_cols = []
duration_event = nan
duration_disruption = nan
fraction_detour = nan
fraction_drivethrough = nan
rest_capacity = nan
maximum_jam = nan
partofday =
aggregate_wl = max
threshold = 0.1
threshold_destinations = nan
uniform_duration = nan
gdp_percapita = nan
equity_weight =
calculate_route_without_disruption = False
buffer_meters = 100.0
threshold_locations = nan
category_field_name = building
save_traffic = False
11 changes: 11 additions & 0 deletions examples/data/losses/analysis.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[project]
name = republic_dominican

[analysis1]
name = republic_dominican_redundancy
analysis = single_link_redundancy
weighing = time
aggregate_wl = max
threshold = 0.5
save_csv = True
save_gpkg = True
29 changes: 29 additions & 0 deletions examples/data/losses/network.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[project]
name = republic_dominican

[network]
directed = True
source = shapefile
primary_file = Red_Vial_RD_wgs84.geojson
diversion_file = None
file_id = fid_id
polygon = None
network_type = drive
road_types = motorway,motorway_link,primary,primary_link,secondary,secondary_link,tertiary,tertiary_link,residential
save_gpkg = True

[origins_destinations]
origins = None
destinations = None
origins_names = None
destinations_names = None
id_name_origin_destination = None
origin_count = None
origin_out_fraction = None

[hazard]
hazard_map = Inundacion_Fluvial_tr1000.tif
hazard_id = None
hazard_field_name = waterdepth
aggregate_wl = max
hazard_crs = EPSG:4326
11 changes: 11 additions & 0 deletions examples/data/losses/output/analysis.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[project]
name = republic_dominican

[analysis1]
name = republic_dominican_redundancy
analysis = single_link_redundancy
weighing = time
aggregate_wl = max
threshold = 0.5
save_csv = True
save_gpkg = True
Binary file added examples/data/losses/output/hazard_names.xlsx
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
30 changes: 30 additions & 0 deletions examples/data/losses/output/multi_link_redundancy/settings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name = republic_dominican_redundancy
save_gpkg = True
save_csv = True
analysis = multi_link_redundancy
weighing = time
loss_per_distance =
loss_type =
disruption_per_category =
traffic_cols = []
duration_event = nan
duration_disruption = nan
fraction_detour = nan
fraction_drivethrough = 0
rest_capacity = nan
maximum_jam = nan
partofday = day
performance = diff_time
resilience_curve_file =
disruption_steps_file =
aggregate_wl = max
threshold = 0.5
threshold_destinations = nan
uniform_duration = nan
gdp_percapita = nan
equity_weight =
calculate_route_without_disruption = False
buffer_meters = nan
threshold_locations = nan
category_field_name =
save_traffic = False
29 changes: 29 additions & 0 deletions examples/data/losses/output/network.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[project]
name = republic_dominican

[network]
directed = True
source = shapefile
primary_file = Red_Vial_RD_wgs84.geojson
diversion_file = None
file_id = fid_id
polygon = None
network_type = drive
road_types = motorway,motorway_link,primary,primary_link,secondary,secondary_link,tertiary,tertiary_link,residential
save_gpkg = True

[origins_destinations]
origins = None
destinations = None
origins_names = None
destinations_names = None
id_name_origin_destination = None
origin_count = None
origin_out_fraction = None

[hazard]
hazard_map = Inundacion_Fluvial_tr1000.tif
hazard_id = None
hazard_field_name = waterdepth
aggregate_wl = max
hazard_crs = EPSG:4326

Large diffs are not rendered by default.

Binary file not shown.
30 changes: 30 additions & 0 deletions examples/data/losses/output/single_link_redundancy/settings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name = republic_dominican_redundancy
save_gpkg = True
save_csv = True
analysis = single_link_redundancy
weighing = time
loss_per_distance =
loss_type =
disruption_per_category =
traffic_cols = []
duration_event = nan
duration_disruption = nan
fraction_detour = nan
fraction_drivethrough = 0
rest_capacity = nan
maximum_jam = nan
partofday = day
performance = diff_time
resilience_curve_file =
disruption_steps_file =
aggregate_wl = max
threshold = 0.5
threshold_destinations = nan
uniform_duration = nan
gdp_percapita = nan
equity_weight =
calculate_route_without_disruption = False
buffer_meters = nan
threshold_locations = nan
category_field_name =
save_traffic = False
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<PAMDataset>
<PAMRasterBand band="1">
<Metadata>
<MDI key="STATISTICS_MAXIMUM">4</MDI>
<MDI key="STATISTICS_MEAN">1.0818632422472</MDI>
<MDI key="STATISTICS_MINIMUM">1</MDI>
<MDI key="STATISTICS_STDDEV">0.3754778835639</MDI>
</Metadata>
</PAMRasterBand>
</PAMDataset>
Loading

0 comments on commit 049cfb8

Please sign in to comment.