View source: R/raster_gradient.R
grad_raster | R Documentation |
Gradient of raster using bilinear interpolation
grad_raster(rast, pts)
rast |
Raster object |
pts |
Matrix with two columns (one for each coordinate) |
The gradient has a closed form solution if bilinear interpolation is used, as described in Appendix C of Michelot (2019, PhD thesis). https://etheses.whiterose.ac.uk/23688/
Matrix with same dimensions as pts, where the first column gives the gradient along the first dimension, and the second column along the second dimension.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.