surfaceResample: Resample raster

Description Usage Arguments Value Note Author(s) Examples

View source: R/impactFunctions.R

Description

Resamples one raster to the resolution of the second raster.

Usage

1
surfaceResample(rSurface, rBase)

Arguments

rSurface

Raster to be resampled.

rBase

Raster with desired resolution and extent.

Value

Raster sampled from data in rSurface with resolution and extent of rBase

Note

Edited by CDMartinez 28 June 16

Author(s)

Created by CDMartinez 28 June 16

Examples

1
2
3
4
5
6
library(raster)
rLogo = raster(system.file("external/rlogo.grd", package="raster"))
rBase = raster(resolution = c(0.5,0.5), xmn = 0, xmx = 101, ymn = 0, ymx = 77)
rLogoFine = surfaceResample(rLogo, rBase)
plot(rLogoFine)
plot(rLogo)

madorning/energySimMD documentation built on May 22, 2019, 2:40 p.m.