catchment: Catchment Compute catchment area or catchment spatial objects...

View source: R/catchment.R

catchmentR Documentation

Catchment Compute catchment area or catchment spatial objects from delineated streams

Description

Catchment Compute catchment area or catchment spatial objects from delineated streams

Usage

catchment(
  x,
  type = c("outlet", "reach", "points", "pixel"),
  y,
  area = TRUE,
  Tp
)

Arguments

x

A raster::stack, such as one created by delineate().

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 TRUE returns the catchment area, if FALSE returns a raster

Tp

Optional topology, used if type != "points", will be computed if not provided

Details

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

Examples


    data(kamp_dem)
    x = delineate(kamp_dem)
    catchment(x)


flee-group/watershed documentation built on July 25, 2022, 12:46 p.m.