opengeos/whitebox-python

Negative flow path length

ClaRizzo opened this issue · 1 comments

  • whitebox version: 2.2.0
  • Python version: 3.10.8
  • Operating System: Docker Image, python:3.10-slim-bullseye

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

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