Learn R Programming

sharpshootR (version 1.6)

monthlyWB: Monthly Water Balances

Description

Monthly water balances and visualization by "leaky bucket" model, provided by the hydromad package.

Usage

monthlyWB(AWC, PPT, PET, S_init=AWC, starting_month=1, rep=1, keep_last=FALSE)

plotWB(AWC, WB, fig.title='', sw.col='#377EB8', surplus.col='#4DAF4A', et.col='#E41A1C', deficit.col='#FF7F00')

Arguments

AWC

available water-holding capacity (mm)

PPT

time-series of monthly PPT (mm), calendar year ordering

PET

time-series of monthly PET (mm), calendar year ordering

S_init

intitial soil water storage (mm)

starting_month

starting month index, 1=January, 9=September

rep

number of cycles to run water balance

keep_last

keep only the last iteration of the water balance

WB

output from monthlyWB

fig.title

a title

sw.col

color for soil water

surplus.col

color for surplus water

et.col

color for ET

deficit.col

color for deficit

Value

a data.frame with the following elements:

PPT

monthly PPT values

PPT

monthly PET values

U

monthly U values

S

monthly S values

ET

monthly ET values

D

monthly D values

month

month number

mo

month label

Details

This function depends on the hydromad package.