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.
.sits_classify_multicores(
tile,
ml_model,
roi,
filter_fn,
impute_fn,
memsize,
multicores,
output_dir,
version,
verbose,
progress
)
List of the classified raster layers.
Single tile of a data cube.
Model trained by sits_train
.
Region of interest.
Smoothing filter function to be applied to the data.
Impute function to replace NA.
Memory available for classification (in GB).
Number of cores.
Output directory.
Version of result.
print processing information?
Show progress bar?
Rolf Simoes, rolf.simoes@inpe.br
Gilberto Camara, gilberto.camara@inpe.br