Description Usage Arguments Value Author(s) Examples
View source: R/lucC_create_blocks.R
Provide a data.frame with spatially aggregates the original raster it turns each aggregated cell into a polygon then the extent of each polygon is used to crop the original raster. https://stackoverflow.com/questions/29784829/r-raster-package-split-image-into-multiples
1 2 |
raster_obj |
Raster. A raster stack with classified images |
number_blocks_xy |
Numeric. A number of peaces to split raster, consider 2 peaces the raster will be cropped into 4 blocks. Default is 6 |
path_save_RasterBlocks |
Character. Name a path folder to SAVE RasterBlocks from GeoTIFF images. If doesn't exist, a new directory is created |
List with all the pieces in case you want to keep them in the memory.
Adeline M. Maciel
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## 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,
path_save_RasterBlocks = NULL)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.