HypeSubidChecks | R Documentation |
Quickly query vectors of HYPE sub-basin IDs (SUBID) for various properties.
IsHeadwater(subid, gd)
IsOutlet(subid, gd)
IsRegulated(subid, gd, dd = NULL, ld = NULL)
subid |
Numeric, vector of SUBIDs to be queried |
gd |
|
dd |
Data frame, typically an imported
DamData.txt file. Defaults
to |
ld |
Data frame, typically an imported
LakeData.txt file. Defaults
to |
These are convenience functions to query subbasin properties. Some functions can be inefficient if applied to many or all subbasins of a HYPE model setup and more efficient functions may exist in HYPEtools, see links in See also section below or browse the package index.
The functions return a logical vector of the same length as subid
, with NA
values for all SUBIDs which do not exist
in gd
.
AllUpstreamSubids()
; AllDownstreamSubids()
; OutletSubids()
; OutletIds()
te <- ReadGeoData(filename = system.file("demo_model", "GeoData.txt", package = "HYPEtools"))
IsHeadwater(subid = 40556, gd = te)
IsHeadwater(subid = te$SUBID, gd = te)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.