This function disaggregates geotrellis raster layer data gt_RasterLayer.

gt_disaggregate(x, ...)

Arguments

x
gt_RasterLayer object.
fact
integer Disaggregation factor expressed as number of cells in each direction.
method
character name of method used to disaggregate values. Available methods are 'ngb' for nearest neighbor assignment, and 'bilinear' for bilinear interpolation. Defaults to 'ngb'.

Examples

## 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_disaggregate(g, fact=2, method='ngb') ## ---------------------------------------------