preprocessGIMMS: GIMMS NDVI3g.v1 Processing Chain

Description Usage Arguments Value See Also Examples

Description

This function covers the major tasks related to GIMMS NDVI3g.v1 preprocessing including file download (downloadGimms), rasterization and quality control (rasterizeGimms), creation of monthly value composites (monthlyComposite), and subsequent application of the Whittaker smoother (whittaker.raster).

Usage

1
preprocessGIMMS(x, ext = NULL, keep = NULL, cores = 1L, ...)

Arguments

x

character. Vector of local filepaths created e.g. from downloadGimms. See also rasterizeGimms.

ext

Extent, or any object from which an Extent can be extracted, see crop.

keep

integer. Flag values of NDVI3g.v1 pixels to spare during quality control, see rasterizeGimms.

cores

integer. Number of cores for parallel computing.

...

Additional arguments passed to whittaker.raster (except for 'vi' and 'timeInfo').

Value

A RasterStack of Whittaker-smoothed GIMMS NDVI3g.v1 monthly value composites.

See Also

downloadGimms, rasterizeGimms, monthlyComposite, whittaker.raster.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
## modis options
MODIS::MODISoptions(localArcPath = "MODIS/MODIS_ARC",
                    outDirPath = "MODIS/MODIS_ARC/PROCESSED/",
                    outProj = "+init=epsg:4326",
                    MODISserverOrder = c("LAADS", "LPDAAC"))

## clipping extent
ext <- raster::getData(country = "DEU", level = 0)

## initialize processing
rst <- preprocessGIMMS(ext = ext,
                         keep = 0)  # keep pixels flagged 'good' only

## display the first 12 months (Jul 1981 to Jun 1982)
raster::plot(rst[[1:12]])

## End(Not run)

environmentalinformatics-marburg/ESD documentation built on May 16, 2019, 7:49 a.m.