{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# EU JRC global flood depth-damage functions\n", "\n", "This data set comprises a set of global flood depth-damage functions. Damage curves are specified along with a measure of the uncertainty of the curves. Both the paper and data set itself are available via the link: \n", "\n", "https://publications.jrc.ec.europa.eu/repository/handle/JRC105688\n", "\n", "## Notes\n", "Data from `copy_of_global_flood_depth-damage_functions__30102017.xlsx` has been converted into CSV format in `raw.csv` for easier processing. Previously, this was ingested into the vulnerability model as JSON, but now as vulnerability config. The example below generates the configuration and plots this out.\n", "\n", "From the paper Huizinga et al. 2017: \"The database collects the fractional damage functions which allow to determine the percentage of the asset being damaged at specific flood depth.\" This is taken to be the same as the total insurable value (TIV) of the asset.\n", "\n", "The paper makes use of FEMA Hazus data in North America, which leads to a non-zero damage at zero flood depth for the residential curve. Hazus allows for negative flood depths, corresponding to flooding of a basement. However this convention conflicts with that of various hazard indicators where a zero 1-in-100 year flood depth would be taken to mean no flood risk for those return periods. The configuration builder therefore zeros fractional damage <= 1cm." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import plotly.graph_objs as go\n", "import plotly.io\n", "from plotly.subplots import make_subplots\n", "from physrisk.vulnerability_models.configuration.config_builders import ConfigBuilderJRCFlood\n", "plotly.io.renderers.default = \"notebook\"\n", "\n", "builder = ConfigBuilderJRCFlood()\n", "config_items = builder.build_config()" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "