get_cats_edges_in_catchment: get_cats_edges_in_catchment Returns the cats of this and all...

View source: R/calc_edges.R

get_cats_edges_in_catchmentR Documentation

get_cats_edges_in_catchment Returns the cats of this and all upstream edges

Description

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

Usage

get_cats_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 cat values of all upstream edges and the calling one.

Author(s)

Mira Kattwinkel, mira.kattwinkel@gmx.net


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