streams2basins: Compute continuous maps for variable defined along the stream...

View source: R/utils.R

streams2basinsR Documentation

Compute continuous maps for variable defined along the stream network

Description

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.

Usage

streams2basins(st, rst, FUN = "mean")

Arguments

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)


VincentGodard/gtbox documentation built on Sept. 4, 2022, 3:46 a.m.