catchment | R Documentation |
Catchment Compute catchment area or catchment spatial objects from delineated streams
catchment( x, type = c("outlet", "reach", "points", "pixel"), y, area = TRUE, Tp )
x |
A raster::stack, such as one created by |
type |
The scale at which to compute catchments, see 'details' |
y |
Matrix, 2-columns, giving coordinates at which to compute the catchments |
area |
boolean, if |
Tp |
Optional topology, used if type != "points", will be computed if not provided |
The type parameter controls how many catchments/catchment areas are computed (and how long the function will take).
'outlet'
: Compute only for the outlet of the entire network
'reach'
: Compute one catchment area per reach, computed at the bottom of the reach
'points'
: Compute catchment for user-specified points, given by the y
parameter
'pixel'
: Compute catchment area for each pixel; this can take a very long time
data(kamp_dem) x = delineate(kamp_dem) catchment(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.