matchResolution: Match the resolution of two Raster objects

Description Usage Arguments Details Value See Also

Description

Successively projects and resamples a Raster coordinate system and spatial resolution to the reference

Usage

1
matchResolution(x, ref, method = "bilinear", filename = "", ...)

Arguments

x

Raster* object to resample

ref

Reference Raster* object with parameters that x should be resampled to.

method

Character. Method used to compute values for the resampled raster. Can be 'bilinear' for bilinear interpolation or 'ngb' for nearest neighbor interpolation.

filename

Character (optional). Output filename including path to directory and eventually extension

...

Other arguments passed to writeRaster

Details

x and ref must have defined CRS (can be assigned using projection). If the CRS don't match, x is projected to ref CRS prior to resampling. x doesn't inherit the extent of ref.

Value

A Raster* object

See Also

resample, projectRaster, projection


mqueinnec/foster documentation built on June 3, 2019, 4:22 a.m.