Learn R Programming

sits (version 0.13.1)

.sits_smooth_map_layer: Parallel processing of classified images

Description

Process chunks of raster bricks individually in parallel.

Usage

.sits_smooth_map_layer(
  cube,
  cube_out,
  overlapping_y_size = 0,
  func,
  func_args = NULL,
  multicores = 1,
  memsize = 1,
  gdal_datatype,
  gdal_options,
  ...
)

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.

memsize

Maximum 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