Skip to contents

Materialize Grid from File or inputs

Usage

discritize(
  ext = NULL,
  dim = default_dim,
  in_crs = default_crs,
  out_crs = default_crs,
  spatrast = FALSE,
  fillValue = NULL,
  showWarnings = TRUE
)

Arguments

ext

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

dim

dimension (number of columns, number of rows)

in_crs

projection of input ext

out_crs

projection of output object

spatrast

should a SpatRaster object be returned? Default is FALSE

fillValue

in spatrast is TRUE, what values should fill the object

showWarnings

should warnings be shown?

Value

list or SpatRaster object