flood.calculate_damage
methods.flood.calculate_damage(hazard_value, red_fact, ft, type_dict, vuln, vul_min, vul_max, vul_round)
Calculate the damage corresponding with the hazard value.
Parameters
Name | Type | Description | Default |
---|---|---|---|
hazard_value |
float | int | The representative hazard value. | required |
red_fact |
float | int | The reduction factor. How much to compensate for the lack of touching the grid by an object (geometry). | required |
ft |
ogr .Feature | list |
A feature or feature info (whichever has to contain the exposure data). See docs on running FIAT with an without csv. | required |
type_dict |
dict | The exposure types and corresponding column id’s. | required |
vuln |
Table |
Vulnerability data. | required |
vul_min |
float | int | Minimum value of the index of the vulnerability data. | required |
vul_max |
float | int | Maximum value of the index of the vulnerability data. | required |
vul_round |
int | Significant decimals to be used. | required |
Returns
Type | Description |
---|---|
tuple | Damage values. |