Description Usage Arguments Value Examples
Resample a numeric RasterLayer
1 2 3 | resampleBy(x, factor, method = c("bilinear", "ngb"))
resampleTo(x, nrow = 180, ncol = 360, method = c("bilinear", "ngb"))
|
x |
RasterLayer object to be resampled. Currently it MUST be backed by a
.grd file and must have |
factor |
Factor to resize by (for example, |
method |
|
nrow,ncol |
Number of rows and columns in the output layer. |
Resampled raster.
1 2 3 4 5 | library(raster)
src <- raster(system.file("sample.grd", package = "rasterfaster"))
plot(src)
system.time(result <- resampleBy(src, 8.4))
plot(result)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.