set_wateruse.wateres: Water use setting

Description Usage Arguments Details Value Examples

View source: R/variables.R

Description

Sets time series of water use for the reservoir.

Usage

1
2
3
4
set_wateruse(reser, values)

## S3 method for class 'wateres'
set_wateruse(reser, values)

Arguments

reser

A wateres object.

values

A vector of water use values in m3, either monthly or daily of length of reservoir time series, or 12 monthly values starting by January (for monthly or daily time step of length one only), or one constant value. Positive values mean water release to the reservoir, negative withdrawal from the reservoir.

Details

Water use is applied when calculating reservoir water balance in two ways: positive water use (release) is always added to the storage, whereas negative water use (withdrawal) is considered after the yield and evaporation demands are satisfied.

Value

A modified wateres object with water use time series added (denoted as W).

Examples

1
2
3
4
5
6
7
8
reser = data.frame(
    Q = c(0.078, 0.065, 0.168, 0.711, 0.154, 0.107, 0.068, 0.057, 0.07, 0.485, 0.252, 0.236,
          0.498, 0.248, 0.547, 0.197, 0.283, 0.191, 0.104, 0.067, 0.046, 0.161, 0.16, 0.094),
    DTM = seq(as.Date("2000-01-01"), by = "months", length.out = 24))
reser = as.wateres(reser, storage = 14.4e6, area = 754e3)
sry(reser, storage = 21e3, yield = 0.14)
reser = set_wateruse(reser, -1 * c(7, 14, 40, 62, 82, 96, 109, 102, 75, 48, 34, 13))
resul = calc_series(reser, storage = 21e3, yield = 0.14)

tgmwri/wateres documentation built on Jan. 2, 2018, 2:20 p.m.