Description Usage Arguments Details Value Examples
This function reprojects a geotrellis raster data gt_RasterLayer
object to a new coordinate system. This function is similar to projectRaster
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## S4 method for signature 'gt_RasterLayer'
gt_aggregate(x, fact, fun = c("mean", "mode",
"median", "max", "min"))
## S4 method for signature 'gt_RasterLayer'
gt_disaggregate(x, fact, method = c("ngb",
"bilinear"))
gt_projectRaster(from, to, res, method)
## S4 method for signature 'gt_RasterLayer,CRS'
gt_projectRaster(from, to, res,
method = c("bilinear", "ngb"))
## S4 method for signature 'gt_RasterLayer,gt_RasterLayer'
gt_projectRaster(from, to,
method = c("bilinear", "ngb"))
|
method |
|
from |
|
to |
A |
... |
additional arguments. |
res |
|
Note that–unlike projectRaster
–this function does not have
a to
argument. Therefore users cannot specify a template projected raster to reproject
a project gt_RasterLayer
and ensure that the returned raster has a specific
extent and dimensionality.
gt_RasterLayer
object.
1 2 3 4 5 6 7 | ## 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))
result <- gt_projectRaster(g, sp::CRS('+init=epsg:3395'), res=50000, method='ngb')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.