Description Usage Arguments Details Value Examples
This function resamples a geotrellis raster data gt_RasterLayer
object to match the extent, resolution, and dimensionality of another
projectRaster
.
1 2 3 4 5 | gt_resample(x, y, method)
## S4 method for signature 'gt_RasterLayer,gt_RasterLayer'
gt_resample(x, y,
method = c("bilinear", "ngb"))
|
x |
|
y |
|
... |
not used. |
method |
|
This function is similar to resample
.
gt_RasterLayer
object.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
g <- gt_raster(raster::raster(matrix(runif(9), ncol=3),
crs=sp::CRS('+init=epsg:4326'),
xmn=0, xmx=3, ymn=2, ymx=10))
template <- gt_raster(raster::raster(matrix(runif(4), ncol=2),
crs=sp::CRS('+init=epsg:4326'),
xmn=0, xmx=3, ymn=2, ymx=10))
result <- gt_resample(g, template, method='bilinear')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.