Learn R Programming

gimms (version 1.0.0)

qualityControl: Perform Quality Control on GIMMS NDVI3g Data

Description

Perform quality control on GIMMS NDVI3g data based on the companion flag information. This is merely a wrapper around overlay and, since quality control is readily available through rasterizeGimms, it is strongly recommended to use the latter function for this purpose.

Usage

# S4 method for RasterStackBrick
qualityControl(x, keep = NULL, filename = "",
  ...)

Arguments

x

A single 2-layered RasterStack object (NDVI and flags).

keep

integer. Accepted flag values (see 'Details').

filename

character. Optional output filename.

...

Further arguments passed to writeRaster.

Value

A quality-controlled 'RasterLayer' object.

Details

If 'keep' is missing, the function will automatically skip quality control and return the input object.

See Also

rasterizeGimms, overlay.

Examples

Run this code
# NOT RUN {
## see 'Examples' section in ?rasterizeGimms

# }

Run the code above in your browser using DataLab