Raster package internal read raster file function
Raster package internal write raster file function
.raster_read_rast(file, block = NULL, ...).raster_write_rast(
r_obj,
file,
format,
data_type,
gdal_options,
overwrite,
...
)
file path to save raster file
numeric vector with names "col", "ncols", "row", "nrows".
additional parameters to be passed to raster package
raster package object to be written
GDAL file format string (e.g. GTiff)
sits internal raster data type. One of "INT1U", "INT2U", "INT2S", "INT4U", "INT4S", "FLT4S", "FLT8S".
GDAL creation option string (e.g. COMPRESS=LZW)
logical indicating if file can be overwritten
numeric matrix
numeric matrix