Learn R Programming

sits (version 1.1.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)

Value

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

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.

Author

Gilberto Camara, gilberto.camara@inpe.br