reduceGRiwrm | R Documentation |
Reduce the size of a GRiwrm by selecting the subset of nodes corresponding to a downstream node
reduceGRiwrm(griwrm, down_node, check = FALSE)
griwrm |
A GRiwrm object (See CreateGRiwrm) |
down_node |
The ID of the downstream node of the reduced GRiwrm |
check |
logical Check the consistency of the reduced GRiwrm |
A GRiwrm object only containing nodes located upstream the given downstream node
data(Severn)
nodes <- Severn$BasinsInfo
nodes$model <- "RunModel_GR4J"
str(nodes)
# Mismatch column names are renamed to stick with GRiwrm requirements
rename_columns <- list(id = "gauge_id",
down = "downstream_id",
length = "distance_downstream")
griwrm_severn <- CreateGRiwrm(nodes, rename_columns)
griwrm_severn
# Network diagram with upstream basin nodes in blue, intermediate sub-basin in green
plot(griwrm_severn)
plot(reduceGRiwrm(griwrm_severn, "54032"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.