Calculate surrounding topography for lake

Share:

Description

This function combines all input datasets into a lakeMorphoClass. As a part of this combination, the surrounding topography is also determined. If no input catchements are used, it is assumed that a buffer equal to the maximum in lake distance is used. If an input catchement is used, then the surrounding topography is the land area represented by the catchements that intersect the lake.

Usage

1
lakeSurroundTopo(inLake, inElev, inCatch = NULL, reso = res(inElev)[1])

Arguments

inLake

a SpatialPolygons or SpatialPolygonsDataFrame representing the input lake. Required.

inElev

a RasterLayer representing the elevation around the lake. Required.

inCatch

Optional SpatialPolygons or SpatialPolygonsDataFrame defining the Surrounding Topography. Default is NULL wich uses a buffer equal to the maximum in lake distance.

reso

Optional resolution for raster output (e.g. lake distance). Defaults to the resolution of inElev

Value

Returns an object of class 'lakemorpho' that includes the surrounding topography of the lake.

Examples

1
2
3
4
5
## Not run: 
data(lakes)
inputLM<-lakeSurroundTopo(exampleLake,exampleElev)
inputLM
## End(Not run)