Learn R Programming

sits (version 1.1.0)

.sits_classify_multicores: Classify a chunk of raster data using multicores

Description

Classifies a block of data using multicores. It breaks the data into horizontal blocks and divides them between the available cores.

Reads data using terra, cleans the data for NAs and missing values. The clean data is stored in a data table with the time instances for all pixels of the block. The algorithm then classifies data on an year by year basis. For each year, extracts the sub-blocks for each band.

After all cores process their blocks, it joins the result and then writes it in the classified images for each corresponding year.

Usage

.sits_classify_multicores(
  tile,
  ml_model,
  roi,
  filter_fn,
  impute_fn,
  memsize,
  multicores,
  output_dir,
  version,
  verbose,
  progress
)

Value

List of the classified raster layers.

Arguments

tile

Single tile of a data cube.

ml_model

Model trained by sits_train.

roi

Region of interest.

filter_fn

Smoothing filter function to be applied to the data.

impute_fn

Impute function to replace NA.

memsize

Memory available for classification (in GB).

multicores

Number of cores.

output_dir

Output directory.

version

Version of result.

verbose

print processing information?

progress

Show progress bar?

Author

Rolf Simoes, rolf.simoes@inpe.br

Gilberto Camara, gilberto.camara@inpe.br