sort_non_strategic: Helper function for building topology or reservoirs

Description Usage Arguments Value

Description

Sorts non-strategic reservoirs by assigning them to nearest strategic whenever there is one

Usage

1
sort_non_strategic(strategic, non_strategic, riv_l)

Arguments

strategic

is a group of res_geom_list from build_reservoir_topology(). It is obtained by grouping by nearest river

non_strategic

is a group of res_geom_list from build_reservoir_topology(). It is obtained by grouping by nearest river

riv_l

is the river linestring corresponding to the group res_geom_list being handled ie the nearest river

Value

non_strategic_df a dataframe with no geometry attributes with a res_down column filled where possible


jmigueldelgado/a5udes documentation built on Dec. 21, 2021, 1:12 a.m.