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.
go get -v github.com/artulab/waterflow
Import the package:
import "github.com/artulab/waterflow"
Fill attempts to correct cells of given inRaster by filling sinks/pits.
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.
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. |
go test
Ahmet Artu Yildirim
- Website: https://www.artulab.com
- E-Mail: ahmet@artulab.com
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
This project is MIT licensed.