| time_series | R Documentation |
Retrieves the time series for a pair of coordinates
time_series( URL, name, attributes = NULL, longitude, latitude, start_date = NULL, end_date = NULL, token = NULL, ... )
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. |
time series in a tibble format (NULL)
Gilberto Camara
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.