10. Parallel functions

gmtra.parallel.bridge_extraction(save_all=False)[source]

Function to extract all bridges from OpenStreetMap.

Optional Arguments:
save_all : Default is False. Set to True if you would like to save all bridges of the world in one csv file. Will become a big csv!
gmtra.parallel.SSBN_merge(from_=0, to_=235)[source]

Merge all countries parallel.

Optional Arguments:

from_ : Default is 0. Set to a different value if you would like to select a different subset.

to_ : Default is 235. Set to a different value if you would like to select a different subset.

gmtra.parallel.tree_values(rail=False)[source]

Function to run intersection with global tree density map for all regions parallel.

Optional Arguments:
rail : Default is False. Set to True if you would like to intersect the railway assets in a region.
gmtra.parallel.liquefaction_overlays(rail=False)[source]

Function to run intersection with global liquefaction map for all regions parallel.

Optional Arguments:
rail : Default is False. Set to True if you would like to intersect the railway assets in a region.
gmtra.parallel.hazard_intersection(hzd, rail=False, from_=0, to_=46433)[source]

Function to run intersection with hazard data for all regions parallel.

Arguments:
hzd : abbrevation of the hazard we want to intersect. FU for river flooding, PU for surface flooding and CF for coastal flooding.
Optional Arguments:

rail : Default is False. Set to True if you would like to intersect the railway assets in a region.

from_ : Default is 0. Set to a different value if you would like to select a different subset.

to_ : Default is 46433. Set to a different value if you would like to select a different subset.

gmtra.parallel.exposure_analysis(rail=False)[source]

Get exposure statistics for all road or railway assets in all regions.

Optional Arguments:
rail : Default is False. Set to True if you would like to intersect the railway assets in a region.
gmtra.parallel.bridge_damage(rail=False)[source]

Function to calculate the damage to bridges for all regions and all hazards.

Optional Arguments:
rail : Default is False. Set to True if you would like to intersect the railway assets in a region.
gmtra.parallel.cyclone_damage(rail=False)[source]

Function to calculate the cyclone damage to road or railway assets for all regions.

Optional Arguments:
rail : Default is False. Set to True if you would like to intersect the railway assets in a region.
gmtra.parallel.earthquake_damage(rail=False)[source]

Function to calculate the earthquake damage to road or railway assets for all regions.

Optional Arguments:
rail : Default is False. Set to True if you would like to intersect the railway assets in a region.
gmtra.parallel.flood_damage(hazard, rail=False)[source]

Function to calculate the flood damage to road or railway assets for all regions.

Arguments:
hzd : abbrevation of the hazard we want to intersect. FU for river flooding, PU for surface flooding and CF for coastal flooding.
Optional Arguments:
rail : Default is False. Set to True if you would like to intersect the railway assets in a region.
gmtra.parallel.bridge_sensitivity(rail=False, region_count=1000)[source]

Function to calculate the damage to bridges for all regions and all hazards.

Optional Arguments:

rail : Default is False. Set to True if you would like to intersect the railway assets in a region.

region_count : Default is 1000. Change this number if you want to include a different amount of regions.

gmtra.parallel.cyclone_sensitivity(rail=False, region_count=1000)[source]

Function to perform the caculations for a sensitivity analysis related to cyclone damage to road or railway assets for all regions.

Optional Arguments:

rail : Default is False. Set to True if you would like to intersect the railway assets in a region.

region_count : Default is 1000. Change this number if you want to include a different amount of regions.

gmtra.parallel.earthquake_sensitivity(rail=False, region_count=1000)[source]

Function to perform the caculations for a sensitivity analysis related to earthquake damage to road or railway assets for all regions.

Optional Arguments:

rail : Default is False. Set to True if you would like to intersect the railway assets in a region.

region_count : Default is 1000. Change this number if you want to include a different amount of regions.

gmtra.parallel.flood_sensitivity(hazard, rail=False, region_count=1000)[source]

Function to perform the caculations for a sensitivity analysis related to flood damage to road or railway assets for all regions.

Optional Arguments:

rail : Default is False. Set to True if you would like to intersect the railway assets in a region.

region_count : Default is 1000. Change this number if you want to include a different amount of regions.