split_raster_stack: split_raster_stack

View source: R/raster_predict_funs.R

split_raster_stackR Documentation

split_raster_stack

Description

Internal function to used by 'KLR_raster_predict()' split input rasters into overlapping blocks for prediction.

Usage

split_raster_stack(rast_stack, ppside, ngb, split = TRUE)

Arguments

rast_stack

[raster stack] a stack of the prediction rasters scaled to the the input training parameters.

ppside

[integer] the number of blocks to split the study area into if 'split' == TRUE

ngb

[integer] the width and height in raster cell units of roving focal window.

split

[logical] TRUE/FALSE for whether to split raster into chunks. If 'parallal' == TRUE, then 'split' must == TRUE

Details

'split_raster_stack()' takes a raster stack, creates a grid of 'ppside' pixels, adds a collar, clips out each raster, and returns a list

Value

[list] a list of raster chips


mrecos/DistRegLMERR documentation built on April 9, 2022, 5:10 p.m.