Learn R Programming

sits (version 1.12.0)

.sits_raster_blocks: Define a reasonable block size to process a RasterBrick

Description

Defines the size of the block of a Raster Brick to be read into memory. The total pixels of a RasterBrick is given by combining the size of the timeline with the number of rows and columns of the Brick. 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(coverage, ml_model, interval, memsize, multicores)

Arguments

coverage

Input raster coverage.

ml_model

Machine learning model.

interval

Classification interval.

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