splitRaster: Split a Raster object

Description Usage Arguments Value Author(s) See Also

View source: R/splitRaster.R

Description

Split one or multiple Raster* object(s) into a given number of horizontal and vertical slices. Inspired by http://java.dzone.com/articles/use-gdal-r-console-split.

Usage

1
splitRaster(x, s = 2, ...)

Arguments

x

Character. File(s) to process.

s

Integer. Number of slices 'x' should be divided into. Note that the default setting (s = 2) splits 'x' into four equally sized tiles, i.e. two in x-direction and two in y-direction.

...

Further arguments passed on to gdal_translate.

Value

A list of RasterBrick objects.

Author(s)

Florian Detsch

See Also

gdal_translate, GDALinfo


environmentalinformatics-marburg/Rsenal documentation built on Sept. 23, 2018, 5:17 a.m.