Learn R Programming

HYPEtools (version 1.6.4)

HeadwaterSubids: Find all headwater SUBIDs of a model domain

Description

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

Usage

HeadwaterSubids(gd)

Value

HeadwaterSubids returns a vector of outlet SUBIDs.

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.

See Also

AllUpstreamSubids

Examples

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

Run the code above in your browser using DataLab