Description Usage Arguments Details Value Author(s) See Also Examples
Recursively combine tiles into a full GRASS raster.
1 | mergeTiles(tileindex, blocksize = 2, outname)
|
tileindex |
The tileindex object created by createTiles() and modified by processTiles(). |
blocksize |
The size of intermediate blocks to create. The default should not usually be changed. |
outname |
The name to use for the final GRASS raster. |
A common task is to import a raster into R, do some processing, and either write out a new raster, save some results in R, or both. This series of functions makes it possible to do so for a raster that is too large to fit in available memory in R. mergeTiles() is considerably more efficient than using r.patch for many tiles. See gparse for an example wrapping this process within a function.
This function does not return any output to R.
Sarah Goslee <sarah.goslee@ars.usda.gov>
createTiles
, processTiles
, removeTiles
, testFUN
, gparse
1 2 3 4 5 6 7 8 | ## Not run:
# how to run
tileindex <- createTiles("dem30", tilesize=tilesize)
tileindex <- processTiles(tileindex, baserast="dem30", FUN=testFUN)
mergeTiles(tileindex, blocksize=blocksize, outname=outname)
removeTiles(tileindex)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.