infrastructure_exclusion_buffer: Create infrastructure exclusion zones

View source: R/simulate_inf.R

infrastructure_exclusion_bufferR Documentation

Create infrastructure exclusion zones

Description

infrastructure_exclusion_buffer is a helper function for infrastructure generation that sets raster values to zero within a certain threshold of a given feature (like a central processing facility) to ensure desired spacing of infrastructure is maintained. Used by prep_general_inputs and generate_sat_rd.

Usage

infrastructure_exclusion_buffer(x, y, threshold)

Arguments

x

Spatial* object identifying the location(s) around which infrastructure is to be excluded (i.e., around which raster values will be set to zero).

y

RasterLayer containing values that will be set to zero.

threshold

Numeric value providing the distance (m) within which raster values will be set to zero.

Value

RasterLayer y, updated to have values within threshold of infrastructure locations, x, set to zero.


tfullman/dia documentation built on Oct. 17, 2023, 6:31 p.m.