opengeos / whitebox-python

WhiteboxTools Python Frontend

Home Page:https://pypi.org/project/whitebox/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Negative flow path length

ClaRizzo opened this issue · 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