opengeos / whitebox-python

WhiteboxTools Python Frontend

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raster shift in LidarPointStats?

yurithefury opened this issue · comments

  • whitebox version: 2.1.4
  • Python version: 3.8
  • Operating System: Win11/WSL2

Description

Hi. I used LidarPointStats tool through whitebox-python to create a grid with each raster cell representing the number of points. The tool worked fine. However, it looks like the output is either incorrect or shifted (see a screenshot below). Is this the expected behaviour or am I doing something wrong?

What I Did

wbt.lidar_point_stats(
    i=lidar.las, 
    resolution=1.0,
    num_points=True,
    num_pulses=False,
    avg_points_per_pulse=False,
    z_range=False,
    intensity_range=False,
    predom_class=False
)

Layout 1

This seems an issue with the whitebox-tools backend. You can open an issue at https://github.com/jblindsay/whitebox-tools/issues.