alignRasters: Align Rasters

View source: R/utils.R

alignRastersR Documentation

Align Rasters

Description

Aligns multiple rasters with a single reference raster. A raster will be aligned if it doesn't match the dimensions, resolution, extent, origin, or CRS projection of the reference raster.

Usage

alignRasters(referenceRaster = NULL, inputRasters = NULL)

Arguments

referenceRaster

A SpatRaster object to be aligned with.

inputRasters

A list of SpatRaster objects to align with the referenceRaster.

Details

Projecting a raster requires that its cell values be estimated in accordance with its new projection. Continuous variable rasters will use bilinear interpolation while categorical (factor) rasters will use nearest-neighbor sampling.

Value

A list of SpatRaster objects that share the same grid and projection as referenceRaster.


tabrasel/WetlandTools documentation built on Dec. 20, 2024, 8:50 a.m.