get_raster_val_classes_byslice: Get the landclasses intersecting a source polygon for large...

get_raster_val_classes_bysliceR Documentation

Get the landclasses intersecting a source polygon for large polygons intersecting a high-resolution raster.

Description

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.

Usage

get_raster_val_classes_byslice(ply, rast, n_parts, n_cores)

Arguments

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.

Value

new polygon slice that is next in sequence

Author(s)

Chris R. Vernon (chris.vernon@pnnl.gov)


JGCRI/rgis documentation built on July 27, 2023, 1:47 p.m.