calcCatchmArea_assignNetID: Calculate total catchment area of a stream segment and assign...

View source: R/calc_edges.R

calcCatchmArea_assignNetIDR Documentation

Calculate total catchment area of a stream segment and assign a network id.

Description

Recursive function to calculate the upstream area of each stream segment and assign a unique network id. It is called by calc_edges for each outlet and should not be called by the user.

Usage

calcCatchmArea_assignNetID(dt, id, net_ID)

Arguments

dt

data.table containing the attributes of the stream segments

id

integer; 'stream' of the stream segment

netID

integer; network ID

Details

calcCatchmArea_assignNetID

Value

Total catchment area upstream of the segment

Author(s)

Mira Kattwinkel, mira.kattwinkel@gmx.net


MiKatt/openSTARS documentation built on June 17, 2022, 5:08 a.m.