Divide a SpatRaster into "tiles". The cells of another SpatRaster (normally with a much lower resolution) or a SpatVector with polygon geometry can be used to define the tiles.
Usage
# S4 method for SpatRaster
makeTiles(x, y, filename="tile_.tif", extend=FALSE, na.rm=FALSE, ...)
Value
character (filenames)
Arguments
x
SpatRaster
y
SpatRaster or SpatVector
filename
character. Output filename template. Filenames will be altered by adding the tile number for each tile
extend
logical. If TRUE, the extent of y is expanded to assure that it covers all of x
na.rm
logical. If TRUE, tiles with only missing values are ignored
...
additional arguments for writing files as in writeRaster