combineStreamflow {CityWaterBalance}R Documentation

Combines streamflow records to estimate total flows

Description

This function combines streamflow data from multiple gages, averaging records according to a multiplier list

Usage

combineStreamflow(flowlist, mult, approx = FALSE)

Arguments

flowlist

list of flow data, output of getStreamflow or gapfillStreamflow

mult

list of multipliers, one for each gage

approx

option to interpolate missing values

Value

total flow for each timestep (as xts)

Examples

gages <- c('05551540', '05552500')
flow <- getStreamflow('2000-01-01', '2010-12-31', gages)
flow <- gapfillStreamflow(flow, list(c(gages[1], gages[2])))
flow <- combineStreamflow(flow, c(0.5, 0.5))

[Package CityWaterBalance version 0.1.0 Index]