calcCatchmArea_assignNetID: 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