View source: R/total_area_volume_patchcount.R
total_area_volume_patchcount | R Documentation |
The total area and volume are used to find hysteresis and to determine the contributing (conencted) fraction.
total_area_volume_patchcount( location = ".", threshold = 0.001, filespec = "*.asc", outfile = "" )
location |
Optional. Directory containing the WDPM output files. Default is the current working directory. |
threshold |
Optional. Threshold (in m) to determine the existence of water. The default value is 0.001 m, i.e. 1 mm. |
filespec |
Optional. File specification of WDPM output in current working directory. Default is *.asc. |
outfile |
Optional. Name of file to export values. Values are comma-delimited. If not specified, values are not written. |
Returns basin area, water volume, water area for each .asc file. Optionally writes values to outfile.
Kevin Shook
## Not run: setwd('./WDPM/output') areasVolumes <- totalAreaVolume(filespec='*_d.asc', 'drainedAreasVolumes.csv') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.