Description Usage Arguments Author(s) Examples
Tiles raster data (with optional overlap).
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)
|
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). |
Jonathan A. Greenberg STARStools@estarcion.net
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.