Global river slopes
River slope is a very useful parameter in stream geomorphology, aquatic ecology, hydrology… but hard to obtain easily at any location in the globe. This R script can obtain the stream channel just providing a pair of coordinates of a stream. The workflow is as follows:
- Download a high resolution digital elevation model (DEM) around the site, using the package “elevatr”.
- Model the flow accumulation in the landscape to see the stream channels.
- Snap the coordinates provided to the closest stream.
- An algorithm then follows the stream channel upstream for a predetermined length, and estimates the slope as the elevation difference between the site and upstream divided by the distance.