Skip to main content
Reproject a raster to match the geo-reference, CRS, and envelope of a reference raster. The output raster always have the same extent and resolution as the reference raster. For pixels not covered by the input raster, nodata value is assigned, or 0 is assigned if the input raster does not have nodata value. The default resampling algorithm is NearestNeighbor. The following resampling algorithms are supported (case-insensitive):
  1. NearestNeighbor
  2. Bilinear
  3. Bicubic
This function serves the same purpose as the RasterArray.reproject_match function in rioxarray. RS_ReprojectMatch RS_ReprojectMatch_clip

Signatures

Parameters

Raster
required
The input raster.
Raster
required
The reference value.
String
required
The algorithm value.

Return type

The resulting raster.

Example