lucC_blocks_raster_create: Create blocks from RasterBrick in accordance with number of...

Description Usage Arguments Value Author(s) Examples

View source: R/lucC_create_blocks.R

Description

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

Usage

1
2
lucC_blocks_raster_create (raster_obj = NULL, number_blocks_xy = 6,
path_save_RasterBlocks = NULL)

Arguments

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

Value

List with all the pieces in case you want to keep them in the memory.

Author(s)

Adeline M. Maciel

Examples

 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)

ammaciel/lucCalculus documentation built on June 13, 2020, 4:57 a.m.