phenoCropClass: phenoCropClass

Description Usage Arguments Details Value See Also Examples

View source: R/phenoCropClass.R

Description

Spatially explicit and phenology driven classification scheme for cropland mapping.

Usage

1

Arguments

x

A matrix or data.frame.

y

A character vector.

z

A numeric element. Default is 1.

match

logical argument.

Details

Correlates x with each row in y. The row in y with the highest correlation is reported as the selected class. If match is set to TRUE the function will use Dynamic Time Wrapping (DTW) x and y at each iteration. z sets the temporal buffer used to search to matching data points. The final output is a data.frame containing:

Value

A list containing a set of reference profiles for each unique class in y.

See Also

analyseTS phenoCropVal

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
{

require(fieldRS)

# read reference profiles
data(referenceProfiles)

# target time series
x <- c(2200, 4500, 4600, 6400, 1600)
y <- referenceProfiles[,2:6]

# Perform classification
c <-phenoCropClass(x, y)
head(c)

}

CAWaR documentation built on July 8, 2020, 7:06 p.m.