gsp: gsp: Total precipitation during growing season

Description Usage Arguments Value See Also Examples

Description

gsp calculates total precipitation during the growing season.

Usage

1
gsp(prec, gseason)

Arguments

prec

a three dimensional array of precipitation values.

gseason

a three dimensional array of binary values (1 = growing season, 0 = not growing season).

Value

a matrix of values of total precipitation during the growing season.

See Also

the gseason() function can be used to create an array of growing conditions (1) = yes, (0) = no accounting for temperature, precipitation and daylight hours.

Examples

1
2
3
4
5
prec <- array(10 * sin(c(0:1459) * (pi / -1400)) + runif(1460, 0, 10) +10, dim=c(1,1,1460))
tme <- tmecreate(2010, 6)
gs <- gseason_day(tme, 6, 21)
gseason <- array(gs, dim=c(1, 1, 1460))
gsp(prec, gseason)

ilyamaclean/climvars documentation built on June 19, 2019, 2:22 p.m.