Generates a Gaussian random field (GRF) based on the Matern model of spatial autocorrelation.
Arguments
- x
A template raster of class
SpatRaster(from the terra package).- range
Numeric. The range parameter of the variogram model (in spatial units of
xraster).- fun
A function to apply to the generated values (default is
scaleto standardize the GRF).- ...
Additional arguments passed to the function specified in
fun.
Value
A SpatRaster object containing the generated Gaussian random field.
