mcCalc: Multicore implementation of the raster::'calc' function.

Description Usage Arguments Details Value Author(s) See Also

Description

Allows functions to be applied to raster objects, with multicore support, controlling the chunksize with minrows. In parallel mode, intermediate blocks will always be written to disk. Mosaicing depends on gdalUtils::mosaic_rasters

Usage

1
2
mcCalc(x, minrows = 1, fun, mc.cores = 1, logfile = NULL, out_name,
  datatype = "FLT4S", of = "ENVI", ...)

Arguments

x

Raster* object

minrows

Integer

fun

Function to be applied to the raster object.

mc.cores

Integer Numvber of cores, see mclapply. 0 will call normal calc.

logfile

Character Logfile for debugging parallel execution.

out_name

Character fielname for output brick.

datatype

Character raster::dataType for output. Will be converted to gdal ot.

...

Arguments to be passed to raster::calc, if single core is used.

Details

For further help, see calc. Warnings of the parallel package (see mclapply for instance) apply to this function.

Value

a Raster* object, (always written to disk in multicore case!)

Author(s)

Loic Dutrieux, adaption by Johannes Eberenz

Johannes Eberenz, adapted from Loic Dutrieux

See Also

calc


johanez/probaV documentation built on May 19, 2019, 3:01 p.m.