wbl: Water balance per time span

View source: R/wbl.r

wblR Documentation

Water balance per time span

Description

Calculate water balance within a time span

Usage

wbl(sim, obs, time = "year")

Arguments

sim

xts object of simulated data

obs

xts object of observed data

time

character string of time span.

Details

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).

Value

list containing xts objects of sim and obs data per time span unit

Author(s)

Simon Frey

See Also

readCosero

Examples

    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)

freysimon/TigR documentation built on April 20, 2024, 9:28 p.m.