Analyze¶
Create exposure table for a country¶
-
scripts.analyze.
exposure
(country, include_storms=True, parallel=True, save=True)[source] Creation of exposure table of the specified country.
- Arguments:
country (string) – ISO2 code of country to consider.
include_storms (bool) – if set to False, it will only return a list of buildings and their characteristics (default: True).
parallel (bool) – calculates all regions within a country parallel. Set to False if you have little capacity on the machine (default: True).
save (bool) – boolean to decide whether you want to save the output to a csv file (default: True).
- Returns:
- GeoDataframe – Geopandas dataframe with all buildings of the country and potential exposure to wind
Estimate all losses for a country¶
-
scripts.analyze.
losses
(country, parallel=True, event_set=False, save=True)[source] Creation of exposure table of the specified country
- Arguments:
country (string) – ISO2 code of country to consider.
parallel (bool) – calculates all regions within a country parallel. Set to False if you have little capacity on the machine (default: True).
event_set (bool) – if set to True, we will calculate the losses for the event set instead of the historical storms (default: True).
save (bool) – boolean to decide whether you want to save the output to a csv file (default: True).
- Returns:
- GeoDataframe – Geopandas dataframe with all buildings of the country and their losses for each wind storm.
Estimate risk per country¶
-
scripts.analyze.
risk
(country, save=True, parallel=True)[source] Estimate risk based on event set
- Arguments:
country (string) – ISO2 code of country to consider.
path_to_eventset (string) – the location of the event set in the data directory
save (bool) – boolean to decide whether you want to save the output to a csv file (default: True).
parallel (bool) – calculates all regions within a country parallel. Set to False if you have little capacity on the machine (default: True).
Create exposure table for all countries¶
-
scripts.analyze.
all_countries_exposure
()[source] Function to estimate the exposure for all countries consecutively.