proxy_ogc.RdReturns a function that generates Oblique Geographic Coordinates (OGC) as covariates.
proxy_ogc(n = 5)A function that accepts rast_grid and returns a SpatRaster
Møller, A. B., Beuchert, A. M., Pouladi, N., & Greve, M. H. (2020). Oblique geographic coordinates as covariates for digital soil mapping. Soil, 6(2), 269-289.
rast_grid = terra::rast(
ncols = 300, nrows = 100,
xmin = 0, xmax = 300,
ymin = 0, ymax = 100
)
make_proxy(rast_grid, proxy_ogc(n = 5))
#> class : SpatRaster
#> size : 100, 300, 5 (nrow, ncol, nlyr)
#> resolution : 1, 1 (x, y)
#> extent : 0, 300, 0, 100 (xmin, xmax, ymin, ymax)
#> coord. ref. :
#> source(s) : memory
#> names : OGC_0, OGC_36, OGC_72, OGC_108, OGC_144
#> min values : 0.5, 0.6984011, 0.6300368, -92.07506, -242.00670
#> max values : 299.5, 300.7852224, 187.1807132, 94.47561, 58.08012