Learn R Programming

sits (version 0.13.0)

.sits_raster_blocks: Define a reasonable block size to process an image subset

Description

Defines the size of the block of an image to be read. For example, a Raster Brick with 500 rows and 500 columns and 400 time instances will have a total pixel size of 800 Mb if pixels are 64-bit.

Usage

.sits_raster_blocks(tile, ml_model, sub_image, memsize, multicores)

Arguments

tile

tile of input data cube.

ml_model

machine learning model.

sub_image

bounding box of the ROI

memsize

memory available for classification (in GB).

multicores

number of threads to process the time series.

Value

list with three attributes: n (number of blocks), rows (list of rows to begin), nrows (number of rows to read at each iteration).