gsmax: gsmax: Maximum temperature during the growing season

Description Usage Arguments Value See Also Examples

Description

Calculates maximum air temperature during the growing season.

Usage

1
gsmax(temp, gseason)

Arguments

temp

a three dimensional array of temperature values.

gseason

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

Value

a matrix of values of maximum growing season temperatures.

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
temp <- array(10 * sin(c(0:1459) / (pi * 150)) + rnorm(1460), dim=c(73,144,1460))
tme <- tmecreate(2010, 6)
gs <- gseason_day(tme, 6, 21)
gseason <- array(gs, dim=c(73, 144, 1460))
maxgst <- gsmax(temp, gseason)

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