| sits_merge {sits} | R Documentation |
To merge two series, we consider that they contain different attributes but refer to the same data cube, and spatio-temporal location. This function is useful to merge different bands of the same locations. For example, one may want to put the raw and smoothed bands for the same set of locations in the same tibble.
To merge data cubes, they should share the same sensor, resolution, bounding box, timeline, and have different bands.
sits_merge(data1, data2)
data1 |
sits tibble or cube to be merged. |
data2 |
sits tibble or cube to be merged. |
merged data sets
Gilberto Camara, gilberto.camara@inpe.br
{
# Retrieve a time series with values of NDVI
point_ndvi <- sits_select(point_mt_6bands, bands = "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
plot(sits_merge(point_ndvi, point_ws.tb))
}