
Last chance! 50% off unlimited learning
Sale ends in
Computes the linearly interpolated bands using the R base function approx.
sits_interp(data = NULL, fun = stats::approx, n = base::length, ...)
A tibble with time series data and metadata.
Interpolation function.
Number of time series elements to be created between start date and end date. When a class function is passed to `n`, it is evaluated with each band time series as an argument, e.g. n(band) (default: `length` function).
Additional parameters to be used by the fun function.
A tibble with same samples and the new bands.
# NOT RUN {
# 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_interp(point_ndvi, fun = stats::spline, n = 3 * n_times)
# plot the result
plot(point_int.tb)
# }
Run the code above in your browser using DataLab