time_series: Get time series

Description Usage Arguments Value Author(s) Examples

View source: R/wtss.R

Description

Retrieves the time series for a pair of coordinates

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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)

Rwtss documentation built on June 28, 2021, 5:09 p.m.