wtss_to_zoo: Export data to be used to the zoo format

View source: R/wtss_time_series.R

wtss_to_zooR Documentation

Export data to be used to the zoo format

Description

Converts data from a tibble to a list of a zoo series.

Usage

wtss_to_zoo(data, band = NULL)

Arguments

data

A tibble with time series.

band

Name of the band to be exported (if NULL all bands are exported).

Value

List of time series in zoo format.

Author(s)

Gilberto Camara, gilberto.camara@inpe.br

Examples

## Not run: 
# retrieve a time series
wtss_service <- "https://brazildatacube.dpi.inpe.br/wtss/"
ts_wtss  <- Rwtss::time_series(
                 wtss_service,
                 "MOD13Q1-6", 
                 c("NDVI","EVI"),
                 longitude = -45.00, 
                 latitude  = -12.00,
                 start_date = "2000-02-18", 
                 end_date = "2016-12-18",
                 token = "YOUR-BDC-TOKEN")
# convert to zoo
zoo.lst <- Rwtss::wtss_to_zoo(ts_wtss)

## End(Not run)

Rwtss documentation built on April 25, 2022, 9:07 a.m.