project_raster | R Documentation |
Project a raster according to a specified CRS and resolution. It will adjust the output extent according to the resolution.
project_raster(rast, epsg, resolution, method = "bilinear", trim = FALSE)
rast |
input raster ('SpatRaster') |
epsg |
the EPSG code to use for projecting the raster |
resolution |
the resolution of the projected raster (pixel size in m) |
method |
the projection method (default 'bilinear', see 'project' from 'terra' package for other available options) |
trim |
flag (default 'FALSE') to trim the periphery of the rast after projection and remove all NA pixels (use with caution as it can shrink substantially the output raster) |
a projected raster
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.