Skip to content

HuidaeCho/meshed

Repository files navigation

Memory-Efficient Watershed Delineation (MESHED)

Part of the Memory-Efficient I/O-Improved Drainage Analysis System (MIDAS)

Please cite Cho (2025) when you use this algorithm or the r.hydrobasin GRASS addon.

Citation: Huidae Cho, January 2025. Avoid Backtracking and Burn Your Inputs: CONUS-Scale Watershed Delineation Using OpenMP. Environmental Modelling & Software 183, 106244. doi:10.1016/j.envsoft.2024.106244. Author's Version.

image

Predefined flow direction encodings in GeoTIFF: power2 (default, r.terraflow, ArcGIS), taudem (d8flowdir), 45degree (r.watershed)
image image image

Custom flow direction encoding is also possible by passing -e E,SE,S,SW,W,NW,N,NE (e.g., 1,8,7,6,5,4,3,2 for taudem).

Requirements

For Windows, use MSYS2 and OSGeo4W to install GCC and GDAL, respectively.

How to compile MESHED

make

Test data

Test data is available at https://data.isnew.info/meshed.html.

Testing on Windows

cd test
pretest_TX.bat
test_TX.bat

Testing on Linux

cd test
./pretest_TX.sh
./test_TX.sh

About

Memory-Efficient Watershed Delineation (MESHED)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages