raster_retile: Tiles raster data

Description Usage Arguments Author(s) Examples

Description

Tiles raster data (with optional overlap).

Usage

1
2
3
4
  raster_retile(raster, tilebasename, targetDir,
    ps = c(256, 256), ol = c(0, 0), outformat = "raster",
    overwrite = FALSE, progress = "", snow_enabled = TRUE,
    snow_cpus = 4)

Arguments

raster

Raster*. Raster to be retiled.

tilebasename

Character. Output basename for each tile.

targetDir

Character. Folder to save tiles to.

ps

Numeric. Pixel size of the output tile without overlap (if length(ps)==1 then the tiles are assumed to be square).

ol

Numeric. Overlap buffer size (in pixel units).

outformat

Character. The output format of each tile.

overwrite

Logical. Overwrite existing tiles?

snow_enabled

Logical. Currently unsupported.

snow_cpus

Numeric. Currently unsupported.

progress

Character. Display processing progress. Valid values are "text", "window" and "" (no processing bar).

Author(s)

Jonathan A. Greenberg STARStools@estarcion.net

Examples

1
2
3
tahoe_highrez <- brick(system.file("external/tahoe_highrez.tif", package="STARStools"))
# Create 50x25 pixel tiles with 10 pixel overlap.
tahoe_highrez_tiles <- raster_retile(tahoe_highrez,ps=c(50,25),ol=10)

STARStools documentation built on May 2, 2019, 6:48 p.m.