Align raster data by bringing it in the same geometry and extent.
If the data set is not in the same projection as the template, the alignment
will be computed by reprojection. 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.
Raster* or spatial data set from which geometry can be
extracted.
band_codes
Band ID(s) to be resampled. If not supplied and type is
not given, too, all bands will be considered for resampling.
type
Type of bands (e.g. VIS, NIR) which should be considered. If not
supplied, all types will be processed depending and bands to be processed can
be defined by band_codes.
method
Method for resampling; "bilinear" for bilinear interpolation
(default) or "ngb" for nearest neighbor interpolation. See e.g.
resample, projectRaster.