findDwnstrmHydroseg: Find Hydro Segment of Downstream Site

View source: R/findDwnstrmHydroseg.R

findDwnstrmHydrosegR Documentation

Find Hydro Segment of Downstream Site

Description

Based on NHDPlus layer ('flow_lines') that includes the hydro sequence of the next downstream segment, this function systematically moves downstream, identifying the next downstream hydro sequence, until it reaches a pre-determined hydro sequence number, at which point it stops.

Usage

findDwnstrmHydroseg(hydro_id, flow_lines, hydro_pause_ids)

Arguments

hydro_id

a character or numeric input containing the starting hydro sequence

flow_lines

An 'sf' object containing the flowlines (output of 'queryFlowlines()'). Must have a column name called Hydroseq with unique identifiers, and a column name called DnHydroseq containing the hydro sequence of the next downstream segment

hydro_pause_ids

a vector of hydro sequences containing possible end points

Value

character of the nearest downstream HY segment to starting segment that falls within a list of possible stopping segments.

Author(s)

Kevin See


KevinSee/PITcleanr documentation built on Feb. 27, 2024, 11:03 p.m.