Description Usage Arguments Value Author(s) Examples
View source: R/lucC_create_blocks.R
Merge GeoTIFF splitted into parts. https://stackoverflow.com/questions/29784829/r-raster-package-split-image-into-multiples
1 2 |
path_open_GeoTIFFs |
Character. Name a path folder to OPEN raster images data. |
pattern_name |
Character. A pattern in name of GeoTIFF to mosaic them |
is.rasterBrick |
Boolean. If TRUE GeoTIFF is a RasterBrick, FALSE is a single layer. Default is FALSE |
RasterBrick Mosaic.
Adeline M. Maciel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
library(lucCalculus)
file <- c(system.file("extdata/raster/rasterItanhanga.tif", package = "lucCalculus"))
rb_class <- raster::brick(file)
# blocks saved in folder
lucC_blocks_raster_create(raster_obj = rb_class, number_blocks_xy = 2, save_images = TRUE)
lucC_blocks_raster_merge(path_open_GeoTIFFs = paste0(getwd(), "/Blocks_RasterBrick", sep = ""),
pattern_name = "Raster_Block_", is.rasterBrick = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.