sits_linear_interp {sits}R Documentation

Interpolation function of the time series in a sits tibble

Description

Computes the linearly interpolated bands for a given resolution using the R base function approx.

Usage

sits_linear_interp(data = NULL, n = 23)

Arguments

data

A tibble with time series data and metadata.

n

Number of time series elements to be created between start date and end date.

Value

A sits tibble with same samples and the new bands.

Author(s)

Rolf Simoes, rolf.simoes@inpe.br

Examples

# Retrieve a time series with values of NDVI
point_ndvi <- sits_select(point_mt_6bands, bands = "NDVI")
# find out how many time instances are there
n_times <- nrow(sits_time_series(point_ndvi))
# interpolate three times more points
point_int.tb <- sits_linear_interp(point_ndvi, n = 3 * n_times)
# plot the result
plot(point_int.tb)

[Package sits version 0.14.0 Index]