Description Usage Arguments Value
This function builds the topology of the reservoir network. Depends on data(river_graph)
and data(river_geometry)
. It starts by identifying which reservoirs
are located over the river network (strategic reservoirs) and builds their topology by filling the res_down
column.
Then it looks at reservoirs outside the river network (in general smaller reservoirs and here called non-strategic)
and assigns them to a strategic reservoir (with sf::st_nearest_feature()
) in case there is one in the river reach
or simply assigns the next downstream strategic reservoir as res_down
1 | build_reservoir_topology(res_geom)
|
res_geom |
is a subset of |
the column res_down
in the geospatial dataframe res_geom
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.