Learn R Programming

phenex (version 1.4-5)

integrateTimeserie: Integration of timeserie

Description

Extracts the integral of the vegetation index between start and end date.

Usage

integrateTimeserie(x, start, end, n)

Arguments

x
An object of class ‘NDVI’ containing modelled NDVI values.
start
A list containing the starting date(s) for integration as ‘mean’ and its standard deviation(s) as ‘sd’. Use a list with multiple entries (as vector) for ‘mean’ and ‘sd’ if the NDVI object contains multiple seasons.
end
A list containing the end date(s) for integration as ‘mean’ and its standard deviation(s) as ‘sd’. Use a list with multiple entries (as vector) for ‘mean’ and ‘sd’ if the NDVI object contains multiple seasons.
n
The number ‘n’ of normal distributed values to create around start and end date.

Value

A list containing the integral(s) as ‘mean’ and a standard devation(s) ‘sd’.

See Also

, integrate

Examples

Run this code
	# load data
	data(avhrr)

	# create NDVI object, correct and model NDVI values
	ndvi <- modelNDVI(ndvi.values=avhrr.ndvi/10000, year.int=1995, 
				correction="bise", method="LinIP", MARGIN=2, 
				doParallel=FALSE, slidingperiod=40)[[1]]

	# extract greenup DOY
	greenup <- phenoPhase(ndvi, phase="greenup", method="local", threshold=0.55, n=1000)
	senesc <- phenoPhase(ndvi, phase="senescence", method="local", threshold=0.55, n=1000)

	# extract green season integrated vegetation index
	gsivi <- integrateTimeserie(ndvi, start=greenup, end=senesc, n=1000)

Run the code above in your browser using DataLab