Learn R Programming

lakemorpho (version 1.0.2)

lakeSurroundTopo: Calculate surrounding topography for lake

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

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

Run this code
## Not run: 
# data(lakes)
# inputLM<-lakeSurroundTopo(exampleLake,exampleElev)
# inputLM## End(Not run)

Run the code above in your browser using DataLab