Learn R Programming

sits (version 1.12.0)

sits_coverage: Provides information about one coverage used to retrieve data

Description

Defines a coverage to retrieve data. As default, it uses the metadata about a chosen coverage stored in an yml configuration file.

  • service: Name of time series service that provides the coverage (e.g., "WTSS", "SATVEG", "RASTER").

  • name: Name of the coverage (must be unique).

  • bands: Vector of bands.

  • scale_factor: Vector of scale factors.

  • missing_values: Vector of missing values.

  • minimum_values: Vector of minimum values.

  • maximum_values: Vector of maximum values.

  • timeline: The timelines of the coverage (more than one if data has been classified).

  • xmin: Spatial extent (xmin).

  • ymin: Spatial extent (ymin).

  • xmax: Spatial extent (xmax).

  • ymax: Spatial extent (ymin).

  • xres: Spatial resolution (x dimension).

  • yres: Spatial resolution (y dimension).

  • crs: Projection CRS.

  • files: Files associated with the coverage (in case of raster data).

Usage

sits_coverage(service = "RASTER", name, timeline = NULL,
  bands = NULL, missing_values = NULL, scale_factors = NULL,
  minimum_values = NULL, maximum_values = NULL, files = NA)

Arguments

service

Name of the time series service.

name

Name of the coverage.

timeline

Vector with the timeline of the coverage.

bands

Vector of bands.

missing_values

Vector of missing values for each band.

scale_factors

Vector with the scale factor for each band.

minimum_values

Vector of minimum values for each band.

maximum_values

Vector of maximum values for each band.

files

Vector of file names for each band (only for raster data).

See Also

To see the available values for the parameters above use sits_services, sits_config or sits_show_config.

Examples

Run this code
# NOT RUN {
# Example 1. Retrieve information about a WTSS coverage
coverage.tb <- sits_coverage(service = "WTSS-INPE", name = "MOD13Q1")

# Example 2. Create a raster coverage with metadata
# read a raster file and put it into a vector
files <- c(system.file("extdata/raster/mod13q1/sinop-crop-ndvi.tif", package = "sits"))

# create a raster coverage file based on the information about the files
raster.tb <- sits_coverage(service = "RASTER", name  = "Sinop-crop",
             timeline = timeline_modis_392, bands = "ndvi", files = files)
# }

Run the code above in your browser using DataLab