Learn R Programming

sits (version 0.10.0)

.sits_map_layer_cluster: parallel raster brick

Description

Process chunks of raster brick individually in parallel.

Usage

.sits_map_layer_cluster(
  cube,
  cube_out,
  overlapping_y_size = 0,
  func,
  func_args = NULL,
  multicores = 1,
  memory = 1,
  ...
)

Arguments

cube

Probability data cube

cube_out

Output probability data cube

func

a function that receives RasterBrick and returns any Raster*.

multicores

Number of process to run the Bayesian smoothing in snow subprocess.

memory

Maximul overall memory (in GB) to run the Bayesian smoothing.

...

optional arguments to merge final raster (see writeRaster function)

overlapping_rows

number of overlapping rows of each chunk.

args

additional arguments to pass to fun function.

Value

RasterBrick object