Skip to contents

Trace upstream

Usage

trace_upstream(df, start_segment, max_distance = Inf, current_distance = 0)

Arguments

df

REC sf object

start_segment

Starting segment

max_distance

Maximum distance to trace upstream, set to Inf to goto top of catchment

current_distance

Set to 0

Value

A list of segments which are upstream of the starting segment