iterate_over_tiles: Apply a function in tiles

Description Usage Arguments Details Value Examples

View source: R/iterate_over_tiles.R

Description

Apply a function in tiles.

Usage

1
2
3
iterate_over_tiles(x, fun, tile_size = floor(sqrt(blockSize(x)$nrows[1] *
  ncol(x))), overlapping_percentage = NULL, show_progress_bar = TRUE,
  filename = "", ...)

Arguments

x

Raster

fun

function

tile_size

numeric. Tile size in pixels.

filename

character. To create a file during the process.

...

Additional arguments as for writeRaster

Details

Useful if you are running out of RAM while running spatial sensitive process.

Value

Raster

Examples

1
/inst/examples/iterate_over_tiles_example.R

GastonMauroDiaz/rdemtools documentation built on Sept. 30, 2018, 8:22 p.m.