You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WaterFlow is a Go program that provides community-maintained free and open-source hydrology tools, implementing state-of-the-art algorithms found in the literature. WaterFlow tools aim to be API-compatible with ESRI Hydrology toolset but do not necessarily guarantee to produce exactly the same output in the pixel/cell level as ESRI tools.
WaterFlow is a Go program that provides community-maintained free and open-source hydrology tools, implementing state-of-the-art algorithms found in the literature. WaterFlow tools aim to be API-compatible with ESRI Hydrology toolset but do not necessarily guarantee to produce exactly the same output in the pixel/cell level as ESRI tools.
Install
go get -v github.com/artulab/waterflow
Usage
Import the package:
import"github.com/artulab/waterflow"
Tools
Fill
Fill attempts to correct cells of given inRaster by filling sinks/pits.
Parameters
Parameter
Description
inRaster
Input raster data.
zLimit
Maximum elevation difference between the sink and its pour point. Those sinks whose elevation difference is greater than zLimit will not be filled. If the zLimit is zero, all sinks will be filled.
Computes the hydrologic flow directions on the input DEM that directs flow from each grid cell to one or more of its neighbors.
Parameters
Parameter
Description
inRaster
Input raster data. Note that the input raster does not need to be filled beforehand.
forceFlow
Determines if edge cells always flow outward or the direction is computed based on normal flow rules.
computeDrop
The ratio of the maximum change in elevation from each cell along the direction of flow to the path length between centers of cells, expressed in percentages.
skipFillingOneCellSinks
The tool fills one-cell sinks by default on inRaster. Set true if the input raster is already filled or this is not desired.
WaterFlow is a Go program that provides community-maintained free and open-source hydrology tools, implementing state-of-the-art algorithms found in the literature. WaterFlow tools aim to be API-compatible with ESRI Hydrology toolset but do not necessarily guarantee to produce exactly the same output in the pixel/cell level as ESRI tools.