Description Usage Arguments Value Note Author(s) Examples
View source: R/impactFunctions.R
Resamples one raster to the resolution of the second raster.
1 | surfaceResample(rSurface, rBase)
|
rSurface |
Raster to be resampled. |
rBase |
Raster with desired resolution and extent. |
Raster sampled from data in rSurface
with resolution and extent of rBase
Edited by CDMartinez 28 June 16
Created by CDMartinez 28 June 16
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.