topoSurface: Topographic distance surface
Description
Generates a TransitionLayer object for topographic distance from a RasterLayer
Usage
topoSurface(DEM, conductance = TRUE, directions = 8, zweight = 1)
Arguments
- DEM
A RasterLayer for digital elevation model (DEM) data.
- conductance
logical (default = TRUE). If FALSE, resistance values are returned. If TRUE, conductance values (1/resistance) are returned.
- directions
numeric (default = 8). Directions of allowable movement between raster cells (4 or 8).
- zweight
numeric (default = 1). The weight to be applied to the elevation (z) distances relative to the horizontal (xy) distances.
Details
This function generates a TransitionLayer from a DEM, which is used by the topoDist and topoLCP functions. It does not need to be called separately from the topoDist and topoLCP functions.
Examples
Run this codeYosTL <- topoSurface(Yosemite$DEM)
Run the code above in your browser using DataLab