Raster* Layer, Stack, Brick, SpatRaster (terra), stars, or a list of rasterLayers.
pad_raster_value
Value of cells added
pad_raster_cells
Number of rows and columns added
global
Only pad around the raster extent or also NA holes "inside"
return_raster
If false, matrix is returned
to_disk
Logical argument, if FALSE results of get_patches are hold
in memory. If true, pad_raster writes temporary files and hence, does not hold
everything in memory. Can be set with a global option, e.g. option(to_disk = TRUE).
Details
Adds equally (in all four directions) additional cells around the raster