Calculate the volume of the floodplain between a DEM and a
water surface.
floodplain_volume(dem, watersurface)
Arguments
- dem
terra SpatRast object; A DEM. Elevation units = feet.
- watersurface
terra SpatRaster object; The water surface. Created
using the detrend$trend surface and adding water depth
in "bathtub" inundation modeling.
Value
A numeric value representing the volume between the teo surfaces
in cubic meters.