gt_disaggregate: Disaggregate geotrellis raster data

Description Usage Arguments Examples

Description

This function disaggregates geotrellis raster layer data gt_RasterLayer.

Usage

1

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

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

## End(Not run)

jeffreyhanson/geotrellis documentation built on May 19, 2019, 4 a.m.