time_series {Rwtss} | R Documentation |
Get time series
Description
Retrieves the time series for a pair of coordinates
Usage
time_series(
URL,
name,
attributes = NULL,
longitude,
latitude,
start_date = NULL,
end_date = NULL,
token = NULL,
...
)
Arguments
URL |
URL of the server |
name |
Coverage name. |
attributes |
Vector of band names. |
longitude |
Longitude in WGS84 coordinate system. |
latitude |
Latitude in WGS84 coordinate system. |
start_date |
Start date in the format yyyy-mm-dd or yyyy-mm depending on the coverage. |
end_date |
End date in the format yyyy-mm-dd or yyyy-mm depending on the coverage. |
token |
A character with token to be add in URL. |
... |
Additional parameters that can be added in httr. |
Value
time series in a tibble format (NULL)
Author(s)
Gilberto Camara
Examples
## Not run:
# connect to a WTSS server
wtss_server <- "https://brazildatacube.dpi.inpe.br/wtss/"
# retrieve a time series
ndvi_ts <- Rwtss::time_series(wtss_server,
"LC8_30_16D_STK-1",
attributes = "NDVI",
latitude = -14.31,
longitude = -51.16,
token = "YOUR-BDC-TOKEN")
# plot the time series
plot(ndvi_ts)
## End(Not run)
[Package Rwtss version 0.9.2 Index]