-
Notifications
You must be signed in to change notification settings - Fork 161
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
Negative flow path length #300
Comments
I just tested the same tool using both a Whitebox style and ESRI style flow direction raster and I get the expected results. Could you share the pointer file you are using because I suspect that's where the root of the issue lies. Does this file was generated with ArcMap's Flow Direction tool? |
Hi Jean- François,
Thank you for your answer.
I have attached the flow direction raster for the test catchment. This has
been clipped from a raster of the whole UK. The file was originally created
using the ArcMap's Flow Direction tool but has been then modified to better
represent the flow direction in certain areas (unfortunately I’m not sure
how this was done as we received only the final file).
Thanks again for your help!
|
You will need to post a link directly in your message as a reply made by email won't forward to GitHub any attached file. |
Apologies for that. |
Your "outlet pixel" (top row, second column) has a value of |
Thank you for your answer. Could you please explain more? Do you mean that the outlet always need to have value 0? |
It's explained in the D8Pointer documentation:
So, if your DEM doesn't contain any depression, all cells with a value of zero must then be the outlet of a subbasin. If you have other more general questions about WBT usage, you can go to WhiteboxTools Google Group. |
Thank you again for your help! |
Description
Hi, I’m trying to compute the flow length using the DownslopeFlowpathLength function (both in python and in the QGIS inteface). The tool seems to work, but I have negative lengths as results. Am I doing something wrong? Could you explain what the output represents?
Thank you!
What I Did
wbt.downslope_flowpath_length(flow_dir_catch, flowlength_catch, esri_pntr=True)
Python/QGIS result:
Expected result:
The text was updated successfully, but these errors were encountered: