proxy_coordinates.RdReturns a function that generates coordinate layers (X, Y) for a raster.
proxy_coordinates()A function that accepts rast_grid and returns a SpatRaster
rast_grid = terra::rast(
ncols = 300, nrows = 100,
xmin = 0, xmax = 300,
ymin = 0, ymax = 100
)
make_proxy(rast_grid, proxy_coordinates())
#> class : SpatRaster
#> size : 100, 300, 2 (nrow, ncol, nlyr)
#> resolution : 1, 1 (x, y)
#> extent : 0, 300, 0, 100 (xmin, xmax, ymin, ymax)
#> coord. ref. :
#> source(s) : memory
#> names : X, Y
#> min values : 0.5, 0.5
#> max values : 299.5, 99.5