Learn R Programming

sits (version 0.10.0)

sits_get_data.satveg_cube: Obtain time series from satveg

Description

Obtain time series from satveg

Usage

# S3 method for satveg_cube
sits_get_data(
  cube,
  file = NULL,
  ...,
  longitude = NULL,
  latitude = NULL,
  start_date = NULL,
  end_date = 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).

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 {
cube_terra <- sits_cube(type = "SATVEG", name = "terra")
point_terra <- sits_get_data(cube_terra,
    longitude = -55.50563, latitude = -11.71557
)
plot(point_terra)
# }

Run the code above in your browser using DataLab