View source: R/create_training_data.R
make_neg_region | R Documentation |
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.
make_neg_region(
positive_points,
ref_raster,
inner_buffer,
outer_buffer,
return_raster = TRUE
)
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. |
SpatVector with polygons outlining the presumed negative region.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.