waterPatchElevation: Calculates mean elevations of patches of water

View source: R/waterPatchElevation.R

waterPatchElevationR Documentation

Calculates mean elevations of patches of water

Description

Calculates mean elevations of patches of water

Usage

waterPatchElevation(
  waterFile,
  threshold = 0.001,
  DEMfile,
  quiet = TRUE,
  return = "raster"
)

Arguments

waterFile

Required. ArcGIS .asc file of water from WDPM.

threshold

Optional. Threshold (in m) to discriminate water. Defaul is 0.001 m.

DEMfile

Required. ArcGIS .asc file of DEM elevations.

quiet

Optional. If TRUE, messages are suppressed.

return

Optional. If raster, then returns a raster of the patch elevations. If patch_vals, returns a data frame of patch properies. Otherwise, returns both.

Value

Returns patch mean elevations.

Examples

## Not run: waterFile = "300_0_0_0_d.asc", DEMfile="basin5.asc")


KevinShook/WDPMr documentation built on April 23, 2022, 12:32 a.m.