getWaterPatches: Gets water patches from an ArcGIS .asc file

View source: R/getWaterPatches.R

getWaterPatchesR Documentation

Gets water patches from an ArcGIS .asc file

Description

The purpose is to find water patches in an .asc file. The patch numbers can be used to determine the drainage basin areas.

Usage

getWaterPatches(infile, threshold = 0.001)

Arguments

infile

Required. ArcGIS .asc file of water depths, as output by WDPM.

threshold

Optional. Threshold (in m) to determine the existence of water. The default value is 0.001 m, i.e. 1 mm.

Value

Returns an SDMTools object containing the numbered water patches.

Examples

## Not run: 
patches <- getWaterPatches('10_0_0_0_d.asc')
## End(Not run)

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