Returns an empty SpatRast obj with prescibed properties

materilize_grid(
  file = NULL,
  ext = NULL,
  diminsion = NULL,
  projection = NULL,
  fillValue = NULL
)

Arguments

file

path to a gridded file (either .tif or .nc), or SpatRast object

ext

extent (xmin, xmax, ymin, ymax) in some coordinate system

diminsion

dimension (number of columns, number of rows)

projection

projection - the actual coordinate system

Value

SpatRaster object