The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The R package hydflood is designed to compute flood extents and durations along the German federal waterways Elbe and Rhine.
hydflood is available from CRAN. To install it run:
install.packages("hydflood")
To install the latest development version from Github run:
install.packages("devtools")
library(devtools)
::install_github("bafg-bund/hydflood") devtools
The package hydflood is build around the packages
terra
and hyd1d
.
# load the package
options("hydflood.datadir" = tempdir())
library(hydflood)
# import the raster data and create a raster stack
<- hydSpatRaster(filename_dem = "data-raw/raster.dem.tif",
x filename_csa = "data-raw/raster.csa.tif")
# create a temporal sequence
<- seq(as.Date("2016-12-01"), as.Date("2016-12-31"), by = "day")
seq
# compute a flood duration
<- flood3(x = x, seq = seq)
fd
# and plot it
plot(fd)
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.