Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate HAND with D-infinity flow directions #2

Open
Tracked by #1
markwang0 opened this issue May 2, 2024 · 1 comment
Open
Tracked by #1

Calculate HAND with D-infinity flow directions #2

markwang0 opened this issue May 2, 2024 · 1 comment
Assignees

Comments

@markwang0
Copy link
Member

markwang0 commented May 2, 2024

We are removing TauDEM as a dependency to simplify installation of pygeoflood. As of commit c6afbcf all of the TauDEM operations have been replaced with jblindsay/whitebox-tools, including HAND.

But, we find the inundation map created with TauDEM's D-infinity HAND tool appears better than the one created with WBT's tool. The WBT tool uses D8 flow directions to find each cell's distance to the channel. WBT can calculate Dinf flow directions, but I don't think it has a tool to use that output to calculate HAND.

mdbartos/pysheds also has a method that calculates HAND with Dinf flow directions. Below are HAND rasters and their corresponding inundation maps created with TauDEM, WBT, and pysheds. TauDEM/pysheds used Dinf, WBT used D8 to calculate HAND.

The Dinf flow direction grids are almost identical between TauDEM, pysheds, and WBT (after converting degrees to radians). But the TauDEM HAND grid is much less blocky than pysheds/WBT, which results in a better inundation map. Maybe TauDEM is doing something slightly different when it calculates HAND. We run dinfdistancedown with the flag -m ave v, which I don't think is an option in WBT or pysheds.

We should either accept the HAND created with WBT or pysheds, or submit a pull request to one of these projects that calculates HAND similarly to TauDEM.

These differences might be easier to see if you download the tiffs and view in QGIS:
https://utexas.box.com/s/ae139y4jpsfk91ecl2t9mo5h6d50cfzc

hand_fim_comparison

diff_comparison

@markwang0 markwang0 mentioned this issue May 2, 2024
13 tasks
@markwang0 markwang0 self-assigned this May 2, 2024
@mdp0023
Copy link
Contributor

mdp0023 commented Jul 9, 2024

Here is another example of where D8 is likely causing erroneous HAND results. First figure shows HAND map for a catchment in Austin (COMID=5781217). Second figure is resultant inundation map. I believe when hydroprop table is made, because the slope is inaccurate for the catchment, it results in poorly defined relationship between flow and stage height compared to the rest of the reach.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants