50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


sits (version 0.10.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(
  cube,
  ml_model,
  name,
  roi,
  filter,
  impute_fn,
  memsize,
  multicores,
  output_dir,
  version,
  .verbose
)

Arguments

cube

data cube.

ml_model

model trained by sits_train.

name

name of the output data cube

roi

region of interest

filter

smoothing filter 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 information about processing steps

Value

List of the classified raster layers.