View source: R/hydSpatRaster.R
hydSpatRaster | R Documentation |
SpatRaster
for the flood-functionsTo initialize an object of class SpatRaster
with layers dem and csa this function should be used. It checks all the
required input data, downloads missing data automatically, clips and
returns the final object, prepared for the flood()
functions
(flood1
, flood2
and flood3
).
hydSpatRaster(filename_dem = "", filename_csa = "", ext, crs, ...)
filename_dem |
an optional argument of length 1 with type
If the file exists it is imported via An existing dataset must be either in the coordinate reference system (crs)
'ETRS 1989 UTM 32N' (epsg: 25832) for the River Rhine or 'ETRS 1989 UTM 33N'
(epsg: 25833) for the River Elbe. It must also overlap with the active
floodplains ( If argument Supported file types depend on available GDAL raster drivers. |
filename_csa |
an optional argument of length 1 with type
If the file exists it is imported via An existing dataset must be either in the coordinate reference system (crs)
'ETRS 1989 UTM 32N' (epsg: 25832) for the River Rhine or 'ETRS 1989 UTM 33N'
(epsg: 25833) for the River Elbe. It must also overlap with the active
floodplains ( If argument Supported file types depend on available GDAL raster drivers. |
ext |
optional argument of type |
crs |
optional argument of type |
... |
additional parameters passed to
|
Since the underlying tiled digital elevation models (dem) are rather
large datasets hydflood provides options to permanentely cache these
datasets. options("hydflood.datadir" = tempdir())
is the default. To
modify the location of your raster cache to your needs set the respective
options()
prior to loading the package, e.g.
options("hydflood.datadir" = "~/.hydflood");library(hydflood)
. The
location can also be determined through the environmental variable
hydflood_datadir.
Since downloads of large individual datasets might cause timeouts, it is
recommended to increase options("timeout")
.
SpatRaster
object containing digital elevation (dem
)
and cross section area (csa
) raster layers.
wsv_dgmw_2016hydflood
\insertRefbrockmann_auswertung_2008hydflood
\insertRefbrockmann_produktblatt_2012hydflood
\insertRefbrockmann_digitales_2008hydflood
\insertRefsmile_consult_gmbh_dgm-w_2011hydflood
\insertReffugro-hgn_gmbh_aufbau_2011hydflood
\insertRefarge_vermessung_schmid_-_inphoris_aufbau_2012hydflood
\insertRefweber_dgms_2020hydflood
\insertRefweber_dgm_elbe_2020hydflood
\insertRefweber_dgm_rhine_2020hydflood
\insertRefbundesanstalt_fur_gewasserkunde_flys_2016hydflood
\insertRefbrunotte_flussauen_data_2009hydflood
SpatRaster-class
,
rast
, writeRaster
,
flood1
, flood2
, flood3
,
sf.afe
, sf.afr
options("hydflood.datadir" = tempdir())
options("timeout" = 200)
library(hydflood)
e <- ext(436500, 438000, 5415000, 5416500)
c <- st_crs("EPSG:25832")
r <- hydSpatRaster(ext = e, crs = c)
r
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.