ws_slope: Compute the slope along the river channel

View source: R/topology.r

ws_slopeR Documentation

Compute the slope along the river channel

Description

This computes the change in elevation from one watershed unit to the next. Computation by pixel is only recommended if the elevation model used to create the watershed is very accurate; otherwise unrealistic slopes can occur. Reach-based computation uses a much larger range of pixels to compute the slope, and so is less prone to DEM errors.

Usage

ws_slope(ws, by = c("reach", "pixel"))

Arguments

ws

A watershed

by

Should the slope be computed for each reach (recommended) or from one pixel to the next

Value

A vector of slopes, one per pixel

Examples


ws_slope(ws)
ws_slope(ws, by = "pixel")


mtalluto/WatershedTools documentation built on May 21, 2022, 7:49 p.m.