integrateTimeserie {phenex} | R Documentation |
Extracts the integral of the vegetation index between start and end date.
integrateTimeserie(x, start, end, n)
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. |
A list containing the integral(s) as ‘mean’ and a standard devation(s) ‘sd’.
Daniel Doktor, Maximilian Lange
# 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)