Skip to contents

Mask covariates and existing samples by access

Usage

mask_access(raster, access, buff_inner = NULL, buff_outer)

mask_existing(access, existing, buff_inner = NULL, buff_outer)

Arguments

raster

SpatRaster. Raster to be masked.

access

sf 'LINESTRING' or 'MULTILINESTRING'. Access network.

buff_inner

Numeric. Inner buffer boundary specifying distance from access where plots cannot be sampled.

buff_outer

Numeric. Outer buffer boundary specifying distance from access where plots can be sampled.

existing

sf 'POINT'. Existing plot network.

Value

Raster/existing samples masked by provided access layer and buffers.