make_swc {TTR.PGM}R Documentation

make_swc

Description

Creates soil water content index from input precipitation, potential evapotranspiration, field capacity and wilting point.

Usage

make_swc(rain, pet, fc, wp, seconds, iterations)

Arguments

rain

matrix with ntimesteps rows, nsites columns, containing precipitation [kg*m^(-2)*s^(-1)]

pet

matrix with ntimesteps rows, nsites columns, containing potential evapotranspiration [kg*m^(-2)*s^(-1)]

fc

vector of length nsites containing the field capacity [cm^3/cm^3]

wp

vector of length nsites containing the wilting point [cm^3/cm^3]

seconds

number of seconds in a time step

iterations

number of times to run through the data, default is 3

Details

This function is called internally by get_input().

Value

matrix with ntimesteps rows, nsites columns, containing a soil water content index scaled from 0-100


[Package TTR.PGM version 1.0.0 Index]