Learn R Programming

sits (version 1.12.0)

sits_match_timeline: Find dates in the input coverage that match those of the patterns

Description

For correct classification, the time series of the input data set 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

sits_match_timeline(timeline, ref_start_date, ref_end_date,
  interval = "12 month")

Arguments

timeline

Timeline of input observations (vector).

ref_start_date

The day of the year to be taken as reference for starting the classification.

ref_end_date

The day of the year to be taken as reference for end the classification.

interval

Period between two classification.

Value

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

Examples

Run this code
# NOT RUN {
# 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_match_timeline (timeline_2000_2017, ref_start_date, ref_end_date)
# }

Run the code above in your browser using DataLab