Description Usage Arguments Value Examples
View source: R/runout_geometry.R
Computes runnout attributes: width, length, area, max. min. elevation, and surface area using Spatial Polygons and a DEM
1 | runoutGeom(runout_plys, elev, ID = NULL)
|
runout_plys |
A SpatialPolygonsDataFrame of runout tracks |
elev |
A RasterLayer DEM |
ID |
NOT SURE... |
A data frame containing runout geometries
1 2 3 4 5 6 7 8 9 | # Load elevation model (DEM)
dem <- raster::raster(system.file("extdata/elev_12_5m.tif", package="runout.opt"))
# Load runout polygons
file_nm <- system.file("extdata/dflow_runout_ply.shp", package="runout.opt")
slide_plys <- rgdal::readOGR(file_nm)
slide_geom <- runoutGeom(slide_plys, dem)
slide_geom
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.