openSTARS (version 1.2.2)

get_streams_edges_in_catchment: get_streams_edges_in_catchment Returns the stream values of this and all upstream edges

Description

Recursive function to get the stream from one segment upstream. This function is used internally and is not intended to be called by the user.

Usage

get_streams_edges_in_catchment(dt, str_id)

Arguments

dt

data.table containing the attributes of the stream segments

str_id

integer giving the stream_id ('stream') of the starting edge

Value

vector of stream values of all upstream edges and the calling one.