Part of the Memory-Efficient I/O-Improved Drainage Analysis System (MIDAS)
A journal manuscript "A memory-efficient watershed delineation OpenMP algorithm using a node-skipping depth-first search on a self-destructive flow direction matrix for CONUS-scale hydrologic modeling" is under review for publication in Environmental Modelling & Software.
Flow direction encoding in GeoTIFF:
For Windows, use MSYS2 and OSGeo4W to install GCC and GDAL, respectively.
make
Test data is available at https://data.isnew.info/meshed.html.
cd test
pretest_TX.bat
test_TX.bat
cd test
./pretest_TX.sh
./test_TX.sh