Learn R Programming

sits (version 1.12.0)

sits_merge: Merge two satellite image time series

Description

This function merges the time series of two sits tibbles. To merge two series, we consider that they contain different attributes but refer to the same coverage, and spatio-temporal location. This function is useful to merge different bands of the same spatio-temporal locations. For example, one may want to put the raw and smoothed bands for the same set of locations in the same tibble.

Usage

sits_merge(data1.tb, data2.tb)

Arguments

data1.tb

The first sits tibble to be merged.

data2.tb

The second sits tibble to be merged.

Value

A merged sits tibble with a nested set of time series.

Examples

Run this code
# NOT RUN {
#' # Retrieve a time series with values of NDVI
data(point_ndvi)
# Filter the point using the whittaker smoother
point_ws.tb <- sits_whittaker(point_ndvi, lambda = 3.0)
# Plot the two points to see the smoothing effect
sits_plot(sits_merge(point_ndvi, point_ws.tb))
# }

Run the code above in your browser using DataLab