Learn R Programming

sits (version 0.10.0)

sits_get_data.shp_raster_cube: Obtain time series from brick based on SHP file

Description

Obtain time series from brick based on SHP file

Usage

# S3 method for shp_raster_cube
sits_get_data(
  cube,
  file,
  ...,
  start_date = NULL,
  end_date = NULL,
  bands = NULL,
  label = "NoClass",
  shp_attr = NULL,
  impute_fn = sits_impute_linear(),
  .n_shp_pol = 30
)

Arguments

cube

Data cube from where data is to be retrieved.

file

SHP File with information on the data to be retrieved.

...

Other parameters to be passed for specific types.

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)

shp_attr

Attribute in the shapefile to be used as a polygon label (for shapefiles only.

impute_fn

Imputation function for NA values

.n_shp_pol

Number of samples per polygon to be read (for POLYGON or MULTIPOLYGON shapes).

Value

A tibble with time series data and metadata.