Align a SpatRaster
object to another by harmonizing geometry and extend.
Source: R/utils-spatial.R
alignRasters.Rd
If the data is not in the same projection as the template, the alignment will be computed by reprojection only. If the data has already the same projection, the data set will be cropped and aggregated prior to resampling in order to reduce computation time.
Details
Nearest Neighbour resampling (near) is recommended for discrete and bilinear resampling recommended for continuous data. See also help from terra::resample for other options.