set_precipitation | R Documentation |
Sets time series of precipitation on the reservoir area.
set_precipitation(reser, values)
## S3 method for class 'wateres'
set_precipitation(reser, values)
reser |
A |
values |
A vector of precipitation values in mm, either monthly or daily of length of reservoir time series, or 12 monthly values starting by January (for monthly or daily data only). |
Precipitation is applied when calculating reservoir water balance. When calculating precipitation volume, the flooded area related to the potential storage is always used.
A modified wateres
object with precipitation time series added (denoted as P
).
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.17)
reser = set_precipitation(reser, c(55, 40, 44, 43, 81, 72, 85, 84, 52, 54, 48, 58))
resul = calc_series(reser, storage = 21e3, yield = 0.17)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.