Quick Start Guide

The hazard mapping program takes inputs from Flood Hazard Maps, Earthquake Risk Data, Volcanic Hazard Data, and building style and size information to generate a series of multi-hazard risk maps.

The program is written in Python and is run from the terminal or command line with the command:

python hazardmap.py

This file is located in the hazardmap subdirectory of the top level repository folder.

The parameters and config settings are all read in from the config.py settings file in the hazardmap folder.

Data location

There are a large number of data files required to run the analysis, in the current version, these should be placed in the same location (all in the same folder). The location of this folder is specified in config.py under the DATADIR variable.

You may place the data in a different location/drive, and symbolically link to the folder as well, if you are using linux/unix.

Config file

The config file is where the input file names, and other parameters are set. A working example is saved under config_tanzania.py - however - you should rename this to config.py when you wish to use it. This allows us to keep records/backups of the parameters for future model runs, e.g. config_nepal.py, config_tanzania.py etc…

Vulnerability Curve inputs

It is possible to use custom vulnerability curves to determine the hazard multiplier for the hazard map generation. This means, given a user specified hazard intensity set in the config.py file, this value is used to look up the corresponding damage multiplier in the csv file curve, unique to each building type. The hazard risk for the relevant risk type is then based on the value found in the vulnerability curve in the final map.

Currently this is only available for Earthquakes.

To use this, in the config.py file, set the folllowing paramters:

hazard_intensity = 2.0    # Used to lookup the damage multiplier
vuln_curve_file = "vuln_curve_tanzania.csv"

The vulnerability curve file is a plain text csv file with columns giving damage multiplier by building code type, and rows giving the hazard intensity. The code is able to look-up the closest appropriate multiplier in the csv file, so if you specify “2.0” as the hazard intensity, the code will automatically select, say, “2.12” if that happeneed to be the nearest matching value, so it is not necessary to know the exact values of hazard intensity, as long as your input value is within the range of intensities given in the input file.

Outputs

A full set of example outputs can be found in the plots folder in this repository. The final hazard map (hmap) should look something like this:

hmap_sample

At the moment, further customisation is possible via editing hazardmap.py