Learn R Programming

phenex (version 1.4-5)

seasons: Seasons Accessor

Description

Access to detected seasons.

Usage

seasons(x)

Arguments

x
An object of class ‘NDVI’ containing raw NDVI values and detected seasons.

Value

Returns a vector containing position of seasons.

See Also

, detectSeasons

Examples

Run this code
	# load data
	data(avhrr)

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

	#get seasons
	seasondates <- seasons(ndvi)

Run the code above in your browser using DataLab