Skip to contents

This function permit to add Reservoir node in a GRiwrm object. Reservoirs id, down & length are set in cfg object

Usage

addReservoirsGRiwrm(griwrm, cfg = loadConfig())

Arguments

griwrm

Network description (See CreateGRiwrm)

cfg

a config object. Configuration to use. See loadConfig.

Value

GRiwrm object with connections of the reservoirs to the Seine network

Examples

griwrm = getGRiwrm()
#> Rows: 152 Columns: 14
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: "\t"
#> chr (9): id_amont, id_aval, nom, code_station_h3, code_site_h3, station_cmpl...
#> dbl (5): distance_aval, area, area_inter, lambert2.x, lambert2.y
#> 
#>  Use `spec()` to retrieve the full column specification for this data.
#>  Specify the column types or set `show_col_types = FALSE` to quiet this message.
griwrm = addReservoirsGRiwrm(griwrm)