floodam.building is an R library for producing flood damage functions for built assets (dwellings, economic activities).
This library has been developed within the French working group “GT AMC” which aims at developing methodologies for the economic appraisal of flood management policies. In this context, the development of floodam.building has received the support of the French Ministry in charge of the Environment.
floodam.building is based on a decomposition of an asset (designated as a model) which includes:
floodam.building include a collection of elementary damage components that describe how elementary components may be impacted in terms of monetary damage when flooded in specific conditions.
From this information, floodam.building can calculate the following outputs:
floodam.building cannot (and is not intended to):
floodam.building cannot (but should at some point be able to) :
You can download and install it from this archive: [www.floodam.org/library/floodam.building_1.3.1.0.tar.gz] (http://www.floodam.org/library/floodam.building_1.3.1.0.tar.gz).
For instance, in a linux environment, you can use those bash instructions:
# without devtools
wget www.floodam.org/library/floodam.building_1.3.1.0.tar.gz
R -e "install.packages(pkgs = 'floodam.building_1.3.1.0.tar.gz', type = 'source', repos = NULL, dependencies = TRUE)"
rm floodam.building_1.3.1.0.tar.gz
# with devtools
R -e "devtools::install_url('www.floodam.org/library/floodam.building_1.3.1.0.tar.gz')"
In case you are not using a linux environment, you can do the same within a R session:
# without devtools
archive = "floodam.building_1.3.1.0.tar.gz"
url = file.path("www.floodam.org/library", archive)
download.file(url = url, destfile = archive)
install.packages(pkgs = archive, type = 'source', repos = NULL, dependencies = TRUE)
unlink(archive)
# with devtools
devtools::install_url('www.floodam.org/library/floodam.building_1.3.1.0.tar.gz')
To enable the simulation of the interior hydraulic behavior of built assets you need to make sure that Python 3 is available in your machine and install the NumPy
and pandas
Python packages.
Assuming you have the pip
module installed, the commands you can use to install these packages are listed below:
Platform | Commands |
---|---|
Mac/Linux | |
Windows |