Learn R Programming

sits (version 1.1.0)

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

.mesma_raster_blocks(nbands, 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

nbands

Number of bands to open.

sub_image

Bounding box of the ROI.

memsize

Memory available for classification (in GB).

multicores

Number of cores to process the time series.

Author

Gilberto Camara, gilberto.camara@inpe.br