gseason_soilmoist: gseason_soilmoist: Growing season soil moisture content

Description Usage Arguments Value See Also Examples

Description

gseason_soilmoist calculates the average soil moisture content during the growing season over specified years.

Usage

1
gseason_soilmoist(startyear, endyear, gs, sm)

Arguments

startyear

earliest calender year to be considered in calculations.

endyear

latest calender year to be considered in calculations.

gs

array of growing binary values indicating growing (1) or non-growing (0) season for one year.

sm

array of soil moisture values for one year.

ga

array of growing binary values indicating growing (1) or non-growing (0) season.

Value

A matrix of mean growing season soil moisture values over specified years.

See Also

Requires function gssm() to be loaded.

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

mtoraster()

Requires that function gssm() is also loaded.

Examples

1
2
3
4
5
6
require(microclima)
tme <- as.POSIXlt(c(0:1459) * 3600 * 6, origin = "2010-01-01 00:00", tz = "GMT")
gs <- gseason_day(tme, 6, 21)
gseason <- matrix(gs, dim=c(1, 1, 1460))
soilm <- array(runif(1460, 0, 100), dim= c(1,1,1460))
gseason_soilmoist(2010, 2010, gs, soilm)

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