get_raster_val_classes_byslice | R Documentation |
This function is to be used on very large polygons that would not generally run well when harvesting the information contained in the source high-resolution raster. The source polygon is split into a user-defined number of equal parts and then each of those parts are used to extract the land classes from the source raster in parallel.
get_raster_val_classes_byslice(ply, rast, n_parts, n_cores)
ply |
An sf polygon object |
rast |
A raster object |
n_parts |
integer. The number of equal area parts to split the polygon into for processing. |
new polygon slice that is next in sequence
Chris R. Vernon (chris.vernon@pnnl.gov)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.