gst: gst: Mean growing season temperature

Description Usage Arguments Value See Also Examples

Description

gst calculates mean temperature during the growing season.

Usage

1
gst(temp, gseason)

Arguments

temp

a three-dimensional array of air temperature values.

gseason

a three-dimensional array of binary values indicating growing conditions (1) = yes, (0) = no.

Value

a matrix of mean air temperature 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
tme <- as.POSIXlt(c(0:1459) * 3600 * 6, origin = "2010-01-01 00:00", tz = "GMT")
gs <- gseason_day(tme, 6, 21)
gseason <- array(gs, dim=c(1, 1, 1460))
temp <- 10 * sin(c(0:1459) / (pi * 150)) + rnorm(1460)
meangst <- gst(temp, gseason)

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