streams2basins | R Documentation |
Transfer statistic values from stream segments to the corresponding contributing basins. It allows to provide a continuous representation of variables defined along the stream network such as chi, for visualization purpose.
streams2basins(st, rst, FUN = "mean")
st |
A SpatRaster object from 'dem_process' |
rst |
A SpatRaster with the variable of interest (defined along streams), which will be transferred to the corresponding contributing areas. |
FUN |
The function used to summarize the values for each stream segment (character string : mean, min, max, median) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.