R: Define a reasonable block size to process an image subset

.sits_raster_blocks {sits} | R Documentation

## 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).

### Author(s)

Gilberto Camara, gilberto.camara@inpe.br

[Package sits version 0.16.2 Index]