sits_select | R Documentation |
Filter only the selected bands and dates from a set of time series or from a data cube.
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, ...)
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. |
Tibble with time series or data cube.
Rolf Simoes, rolf.simoes@inpe.br
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.