View source: R/SOptim_RasterTiling.R
readDataByTile | R Documentation |
An ancilary function that uses an SOptim.Tiles
object (generated by
[createRasterTiles()]) and reads pixel-level data to a matrix or data.frame.
readDataByTile(rst, tiles, nd = 2, tileIndex = NULL, as.df = TRUE)
rst |
A |
tiles |
A |
nd |
Number of times to slice the SpatRaster across row
and column direction. The total number of tiles will be given by:
|
tileIndex |
Tile index to read (default: NULL) |
as.df |
Return a data.frame object? (default: TRUE) |
A matrix or data.frame containing pixel-level data for the whole tile. If the input is
a SpatRaster
then each column represents each layer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.