HeadwaterSubids: Find all headwater SUBIDs of a model domain

View source: R/function_HeadwaterSubids.R

HeadwaterSubidsR Documentation

Find all headwater SUBIDs of a model domain

Description

Function to find all headwater SUBIDs of a HYPE model domain.

Usage

HeadwaterSubids(gd)

Arguments

gd

A data frame, containing among others two columns subid and maindown. Column names are not case-sensitive and column positions in the data frame are irrelevant. Typically a 'GeoData.txt' file imported using ReadGeoData.

Details

HeadwaterSubids finds all headwater SUBIDs of a model domain as provided in a 'GeoData.txt' file, i.e. all subcatchments which do not have any upstream subcatchments.

Value

HeadwaterSubids returns a vector of outlet SUBIDs.

See Also

AllUpstreamSubids

Examples

te <- ReadGeoData(filename = system.file("demo_model", "GeoData.txt", package = "HYPEtools"))
HeadwaterSubids(gd = te)


HYPEtools documentation built on Sept. 11, 2024, 8:34 p.m.