View source: R/function_SortGeoData.R
SortGeoData | R Documentation |
Function to sort an imported GeoData.txt file in downstream order, so that all upstream sub-basins are listed in rows above downstream sub-basins.
SortGeoData(gd, bd = NULL, progbar = TRUE)
gd |
A data frame containing a column with SUBIDs and a column (MAINDOWN) containing the corresponding downstream SUBID, e.g. an imported 'GeoData.txt' file. |
bd |
A data frame with bifurcation connections, e.g. an imported 'BranchData.txt' file. Optional argument. |
progbar |
Logical, display a progress bar while calculating SUBID sorting. |
GeoData.txt files need to be sorted in downstream order for HYPE to run without errors. SortGeoData
considers bifurcation connections, but not
irrigation or groundwater flow links.
SortGeoData
returns a GeoData dataframe.
AllUpstreamSubids
OutletSubids
te <- ReadGeoData(filename = system.file("demo_model", "GeoData.txt", package = "HYPEtools"))
SortGeoData(gd = te)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.