Learn R Programming

sits (version 1.12.0)

.sits_from_csv: Obtain timeSeries from time series server, based on a CSV file.

Description

reads descriptive information about a set of spatio-temporal locations from a CSV file. Then, it uses the WTSS time series service to retrieve the time series, and stores the time series on a sits tibble for later use. The CSV file should have the following column names: "longitude", "latitude", "start_date", "end_date", "label"

Usage

.sits_from_csv(csv_file, coverage, bands, prefilter, .n_start, .n_max,
  .n_save)

Arguments

csv_file

Name of a CSV file with information <id, latitude, longitude, from, end, label>.

coverage

A tibble with metadata about coverage which contains data to be retrieved.

bands

A string vector with the names of the bands to be retrieved.

prefilter

String ("0" - none, "1" - no data correction, "2" - cloud correction, "3" - no data and cloud correction).

.n_start

Row on the CSV file to start reading (optional).

.n_max

Maximum number of samples to be read.

.n_save

Number of samples to save as intermediate files (used for long reads).

Value

A sits tibble.