Utility function to crop a raster by a neighborhood. Not exported

crop_raster_collar(pred_rast, ngb, cols, rows)

Arguments

pred_rast

[raster] predicted raster

ngb

[integer] square neighborhodd size in cells

cols

[integer] cols of crop

rows

[integer] rows of crop

Value

[raster] a cropped raster