resample_raster: Resample Raster Layer

resample_rasterR Documentation

Resample Raster Layer

Description

Internal function used to resample rasters

Usage

resample_raster(ras1, ras0, rasInit, resampMeth)

Arguments

ras1

SpatRaster object to be resampled

ras0

SpatRaster object with the geometry that ras1 should be resampled to

rasInit

SpatRaster object; original 'raw' raster (before projecting)

resampMeth

character; method used for estimating the new cell values. If NULL, the user is interactively asked to select one of the available methods for terra::resample function.

Value

a list of length 2; the first element is the processed SpatRaster object and the second element is the selected resampling method (for track record)


ptimoner/inAccMod documentation built on Jan. 27, 2025, 9:34 a.m.