sits_merge {sits}R Documentation

Merge two data sets (time series or cubes)

Description

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.

Usage

sits_merge(data1, data2, ..., suffix = c(".1", ".2"))

Arguments

data1

sits tibble or cube to be merged.

data2

sits tibble or cube to be merged.

...

additional parameters

suffix

If there are duplicate bands in data1 and data2 these suffixes will be added to the output to disambiguate them.

Value

merged data sets

Author(s)

Gilberto Camara, gilberto.camara@inpe.br

Examples

{
# Retrieve a time series with values of NDVI
point_ndvi <- sits_select(point_mt_6bands, bands = "NDVI")
# Apply Savitsky-Golay filter on NDVI
point_ndvi_sg <- point_ndvi %>%
   sits_filter(sits_sgolay())

# Merge time series back
point <- sits_merge(point_ndvi, point_ndvi_sg, suffix = c("", ".SG"))
}


[Package sits version 0.16.2 Index]