Description Usage Arguments Details Value Author(s) See Also Examples
Example function for use with tileProcess(); not run on its own.
1 | testFUN(x, tempname)
|
x |
SpatialGridDataFrame of a tile within a larger GRASS raster. |
tempname |
Temporary filename used for GRASS output. |
This file processes a GRASS tile and writes out the processed SGDF to GRASS.
tempname |
Filename in GRASS (if multiple files were written, would be a vector of filenames). |
Sarah Goslee <sarah.goslee@ars.usda.gov>
processTiles
, testFUNR
, gparse
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
## The function is currently defined as
function (x, tempname)
{
x <- readRAST6("gssurgo")
x@data[!is.na(x@data[, 1]), 1] <- 1
writeRAST6(x, tempname)
tempname
}
# 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.