make_neg_region: Make a negative region raster

View source: R/create_training_data.R

make_neg_regionR Documentation

Make a negative region raster

Description

Creates a negative region with which to sample from that exists between an inner buffer and an outer buffer around given initiation points. This method will be used to sample a landslide database that is not considered a full inventory, i.e., we cannot assume all locations that are not marked as landslide initiation points did not have landslide.

Usage

make_neg_region(
  positive_points,
  ref_raster,
  inner_buffer,
  outer_buffer,
  return_raster = TRUE
)

Arguments

ref_raster

SpatRaster used as a spatial reference; typically a DEM.

initiation_points

A SpatVector that contains the initiation points.

inner_buffer_rad

The radius in meters of the inner buffer. This is the area around the initiation point that should be considered "positive", that is, within the landslide initiation zone.

outer_buffer_rad

The radius in meters of the outer buffer. This is the area around the landslide that can be considered "negative", that is where no landslides were observed.

Value

SpatVector with polygons outlining the presumed negative region.


tabrasel/WetlandTools documentation built on Dec. 20, 2024, 8:50 a.m.