opengeos / whitebox-python

WhiteboxTools Python Frontend
https://pypi.org/project/whitebox/
MIT License
377 stars 68 forks source link

Negative flow path length #52

Closed ClaRizzo closed 1 year ago

ClaRizzo commented 1 year ago

Description

Hi, I’m trying to compute the flow length using downslope_flowpath_length function. 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)

(I opened the raster in QGIS for convenience) Python result: image

Expected result: image

giswqs commented 1 year ago

This appears to be an issue with the WBT backend. Please open an issue at https://github.com/jblindsay/whitebox-tools/issues