make_tiles | R Documentation |
split a raster in a number of same size tiles
make_tiles( r, ncol = 2, nrow = 2, path = NULL, sufix = "tile_", format = ".tif", datatype = "FLT4S" )
r |
SpatRaster |
ncol |
number of vertical divisions |
nrow |
number of horizontal divisions |
path |
folder to save tiles |
sufix |
sufix to be add to filename |
format |
format of file to be saved |
datatype |
type of data (byte, integer, float). Values for datatype are "INT1U", "INT2U", "INT2S", "INT4U", "atatype = "FLT4S"atatype = "FLT4S"", "FLT4S", "FLT8S". The first three letters indicate whether the datatype is integer (whole numbers) of a real number (decimal numbers), the fourth character indicates the number of bytes used (allowing for large numbers and/or more precision), and the "S" or "U" indicate whether the values are signed (both negative and positive) or unsigned (positive values only). |
SpatRaster
Cassio Moquedace and Elpidio Filho
# tl = make_tiles(r = r1, ncol = 2, nrow = 2, # path = 'tiles', sufix = 'tl', format = '.tif', datatype = "FLT4S")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.