splitRaster: Split a Raster object

View source: R/splitRaster.R

splitRasterR Documentation

Split a Raster object

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

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 July 28, 2023, 6:09 a.m.