runoutGeom: Runout Geometry

Description Usage Arguments Value Examples

View source: R/runout_geometry.R

Description

Computes runnout attributes: width, length, area, max. min. elevation, and surface area using Spatial Polygons and a DEM

Usage

1
runoutGeom(runout_plys, elev, ID = NULL)

Arguments

runout_plys

A SpatialPolygonsDataFrame of runout tracks

elev

A RasterLayer DEM

ID

NOT SURE...

Value

A data frame containing runout geometries

Examples

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

jngtz/runout.opt documentation built on Sept. 8, 2021, 2:15 p.m.