ws_slope | R Documentation |
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.
ws_slope(ws, by = c("reach", "pixel"))
ws |
A watershed |
by |
Should the slope be computed for each reach (recommended) or from one pixel to the next |
A vector of slopes, one per pixel
ws_slope(ws) ws_slope(ws, by = "pixel")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.