Skip to content

Commit

Permalink
Update damageFunctions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
matamadio committed Sep 20, 2023
1 parent c221d23 commit da39354
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Top-down/parallelization/damageFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def damage_factor_agri(x):
# return (x) # For DR impacts
# return np.maximum(0.0, np.minimum(1.0, -0.0039 * x ** 3 + 0.0383 * x ** 2 + 0.0768 * x)) # Floods - AFRICA
return np.maximum(0.0, np.minimum(1.0, 0.00723 * x ** 3 - 0.1000 * x ** 2 + 0.5060 * x)) # Floods - ASIA
# return (x+999)/(x+999)


# Flood over Population mortality
Expand All @@ -65,5 +64,4 @@ def mortality_factor(x):
----------
Jonkman SN, 2008 - Loss of life due to floods
"""
return np.maximum(0.0, np.minimum(1.0, 0.985 / (1 + np.exp(6.32 - 1.412 * x)))) # Floods - Global
# return (x+999)/(x+999)
return np.maximum(0.0, np.minimum(1.0, 0.985 / (1 + np.exp(6.32 - 1.412 * x)))) # Floods - Global

0 comments on commit da39354

Please sign in to comment.