R/create_sf_forest.R
create_sf_forest.RdCreate sf object of forest with minimal altitude and percentage of forest
create_sf_forest(
EPSG = 3163,
altitude_min = 0,
percentage_min = 50,
elevation,
forest
)int. target EPSG, default 3163
float. minimal altitude to consider forest, default 0
int. percentage minimal of forest to consider pixels as forest, default 50
terra object. output of "rast" of "terra" library with elevation in meters
terra object. output of "rast" of "terra" library with percentage of forest
sf object. with only forest higher than `altitude_min` & `percentage_min`