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.