Learn R Programming

sits (version 0.10.0)

sits_get_data.csv_wtss_cube: Obtain time series from wtss based on CSV file

Description

Obtain time series from wtss based on CSV file

Usage

# S3 method for csv_wtss_cube
sits_get_data(cube, file, ..., bands = NULL)

Arguments

cube

Data cube from where data is to be retrived.

file

CSV File with information on the data to be retrieved

...

Other parameters to be passed for specific types

bands

Bands to be retrieved (optional)

Value

A tibble with time series data and metadata.

Examples

Run this code
# NOT RUN {
# Read a single lat long point from a WTSS server
# Requires access to external service

wtss_cube <- sits_cube(
    type = "WTSS",
    URL = "http://www.esensing.dpi.inpe.br/wtss/",
    name = "MOD13Q1"
)

# Read a set of points defined in a CSV file from a WTSS server
csv_file <- system.file("extdata/samples/samples_matogrosso.csv",
    package = "sits"
)
points.tb <- sits_get_data(wtss_cube, file = csv_file)
# show the points retrieved for the WTSS server
plot(points.tb[1:3, ])
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab