gsl: gsl: Growing season length

Description Usage Arguments Value See Also Examples

Description

gsl calculates the length of the growing season in decimal days.

Usage

1
gsl(gseason, year)

Arguments

gseason

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

year

calander year.

Value

a matrix of values of growing season length in decimal days.

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
tme <- as.POSIXlt(c(0:1459) * 3600 * 6, origin = "2010-01-01 00:00", tz = "GMT")
gs <- gseason_day(tme, 6, 21)
gsa <- array(gs, dim=c(1, 1, 1460))
gsl <- gsl(gsa, 2010)

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