Learn R Programming

bfastSpatial (version 0.6.2)

processMODISbatch: Wrapper/batcher to pre-process MODIS data in batch mode

Description

Processes MODIS data for subsequentent use in time-series analysis. Performs MODIS cleaning and mosaicking operations with parallel support. This function requires rgdal to be configured with HDF4 driver.

Usage

processMODISbatch(x, pattern = NULL, data_SDS, QC_SDS, bit = FALSE, QC_val,
  fill = NULL, outdir, mosaic = TRUE, mc.cores = 1)

Arguments

x

Character. Directory where the data is located. Or list of file names.

pattern

Only useful if x is of length 1. See list.files for more details

data_SDS
QC_SDS
bit
QC_val
outdir

Character. Directory where the output should be written.

mosaic

Logical. When working with several tiles, should these be mosaicked or kept as separate output files. Default is TRUE

mc.cores

Numeric. Number of cores to use for processing. See mclapply

Value

This function is used for its side effect of producing cleaned modis data, hence written to disk at outdir location

See Also

cleanMODIS, and timeStackMODIS for stacking.