Description Usage Arguments Value
Resample a raster to a standard matrix grid
1 | snap_to_grid(x, grid, coords, method = "ngb")
|
x |
A Raster object to be resampled. |
grid |
A list of matrices as returned by |
coords |
A numeric vector of length two indicating the spatial coordinates of the "center" grid cell. |
method |
Name of the resampling method passed to raster::resample. Can be "ngb" (the default) or "bilinear". |
A matrix that matches spatial dimensions of grid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.