cell_distance | R Documentation |
Calculate the pairwise distances between the centroids of the raster grid cells that a set of points fall into. This is useful as an alternative to the distances between the points themselves, if distances are going to be compared to other metrics that are based on cell centers (e.g. wind connectivity).
cell_distance(x, ll)
x |
SpatRaster |
ll |
two-column matrix of site coordinates |
Pairwise distances between the cell centroids, in km
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.