Learn R Programming

sits (version 0.10.0)

sits_get_data.wtss_cube: Obtain time series from wtss

Description

Obtain time series from wtss

Usage

# S3 method for wtss_cube
sits_get_data(
  cube,
  file = NULL,
  ...,
  longitude = NULL,
  latitude = NULL,
  start_date = NULL,
  end_date = NULL,
  bands = NULL,
  label = "NoClass"
)

Arguments

cube

Data cube from where data is to be retrieved.

file

File with information on the data to be retrieved.

...

Other parameters to be passed for specific types.

longitude

Longitude of the chosen location.

latitude

Latitude of the chosen location.

start_date

Start of the interval for the time series in "YYYY-MM-DD" format (optional).

end_date

End of the interval for the time series in "YYYY-MM-DD" format (optional).

bands

Bands to be retrieved (optional).

label

Label to be assigned to the time series (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"
)
point.tb <- sits_get_data(wtss_cube,
    longitude = -55.50563,
    latitude = -11.71557
)
plot(point.tb)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab