calc_catchment_attributes_rast: calc_catchment_attributes_rast Aggregate attributes for the...

Description Usage Arguments Value

Description

This function aggregates the attributes of each segment for the total catchment of each stream segment. It is called within calc_attributes_edges and should not be called by the user.

Usage

1
calc_catchment_attributes_rast(dt, stat_rast, attr_name_rast, round_dig)

Arguments

dt

data.table of stream topology and attributes per segment.

stat_rast

name or character vector giving the statistics to be calculated, must be one of: min, max, mean, percent, sum.

attr_name_rast

name or character vector of column names for the attribute(s) to be calculated.

round_dig

integer; number of digits to round results to. Can be a vector of different values or just one value for all attributes.

Value

Nothing. The function changes the values of the columns attr_name_rast in dt.


openSTARS documentation built on Feb. 4, 2022, 5:08 p.m.