Derives a water surface extent polygon from an REM at the specified REM elevation.

water_surface_poly(rem, water_surface_elevation, flowline)

Arguments

rem

terra SpatRaster object; An REM raster.

water_surface_elevation

numeric; The REM elevation of the water surface.

flowline

sf object; A flowline object.

Value

An sf polygon object representing the the water surface extent at the specified REM elevation.