sits_select {sits} | R Documentation |
Filter bands on a data set (tibble or cube)
Description
Filter only the selected bands and dates from a set of time series or froam a data cube.
Usage
sits_select(data, bands = NULL, start_date = NULL, end_date = NULL, ...)
## S3 method for class 'sits'
sits_select(data, bands = NULL, start_date = NULL, end_date = NULL, ...)
## S3 method for class 'raster_cube'
sits_select(
data,
bands = NULL,
start_date = NULL,
end_date = NULL,
...,
dates = NULL,
tiles = NULL
)
## S3 method for class 'patterns'
sits_select(data, bands = NULL, start_date = NULL, end_date = NULL, ...)
## Default S3 method:
sits_select(data, ...)
Arguments
data |
Tibble with time series or data cube. |
bands |
Character vector with the names of the bands. |
start_date |
Date in YYYY-MM-DD format: start date to be filtered. |
end_date |
Date in YYYY-MM-DD format: end date to be filtered. |
... |
Additional parameters to be provided |
dates |
Character vector with sparse dates to select. |
tiles |
Character vector with the names of the tiles. |
Value
Tibble with time series or data cube.
Author(s)
Rolf Simoes, rolf.simoes@inpe.br
Examples
# Retrieve a set of time series with 2 classes
data(cerrado_2classes)
# Print the original bands
sits_bands(cerrado_2classes)
# Select only the NDVI band
data <- sits_select(cerrado_2classes, bands = c("NDVI"))
# Print the labels of the resulting tibble
sits_bands(data)
# select start and end date
point_2010 <- sits_select(point_mt_6bands,
start_date = "2000-01-01",
end_date = "2030-12-31")
[Package sits version 1.5.0 Index]