sits_timeline_match: Find dates in the input data cube that match those of the...

Description Usage Arguments Value Author(s) Examples

View source: R/sits_timeline.R

Description

For correct classification, the input time series should be aligned to that of the reference data set (usually a set of patterns). This function aligns these data sets so that shape matching works correctly

Usage

1
2
3
4
5
6
sits_timeline_match(
  timeline,
  ref_start_date,
  ref_end_date,
  interval = "12 month"
)

Arguments

timeline

Timeline of input observations (vector).

ref_start_date

Reference for starting the classification.

ref_end_date

Reference for ending the classification.

interval

Period between two classification.

Value

A list of breaks that will be applied to the input data set.

Author(s)

Gilberto Camara, gilberto.camara@inpe.br

Examples

1
2
3
4
5
6
7
# get a timeline for MODIS data
data("timeline_2000_2017")
# get a set of subsets for a period of 10 years
ref_start_date   <- lubridate::ymd("2000-08-28")
ref_end_date     <- lubridate::ymd("2000-08-13")
subset_dates.lst <- sits_timeline_match(timeline_2000_2017,
                       ref_start_date, ref_end_date)

e-sensing/sits.data documentation built on Dec. 26, 2019, 11:02 p.m.