wbl | R Documentation |
Calculate water balance within a time span
wbl(sim, obs, time = "year")
sim |
xts object of simulated data |
obs |
xts object of observed data |
time |
character string of time span. |
Sim and obs are subsetted into bits given by time. Accepted values are "none", "year".
Cumulated sums are then calculated of the time spans for sim and obs and returned as a list.
If time = year, sim and obs are subsetted in hydrological years (1st of November until 30th of October).
list containing xts objects of sim and obs data per time span unit
Simon Frey
readCosero
data("area")
fpath <- system.file("extdata", "Q_output.txt", package = "TigeR")
x <- readCosero(qoutput = fpath, area = area)
sim <- x$runoff$sim.mm[,1]
obs <- x$runoff$obs.mm[,1]
wb <- wbl(sim = sim, obs = obs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.