View source: R/SOptim_RasterTiling.R
createRasterTiles | R Documentation |
A function used to cut an input SpatRaster
object into several tiles
usable by values
to read data by chunks.
createRasterTiles(rst, nd = 2)
rst |
A |
nd |
Number of times to slice the SpatRaster across row
and column direction. The total number of tiles will be given by:
|
A SOptim.Tiles
object with nd^2 tiles each with the starting
row and column numbers as well as the number of rows and columns to read.
library(terra)
r <- rast(ncol = 100, nrow = 100)
rtiles <- createRasterTiles(r, nd = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.