<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Feb 29, 2024, at 6:37 AM, Sion Williams via pdal <pdal@lists.osgeo.org> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr"><br><div>I'm trying to find a sneaky/elegant way of distinguishing Broadleaf and Conifer trees from a 'Leaf Off' aerial survey made up of 27000laz tiles. Looking at a transect example of the veg class there are no lidar returns below a certain height for Conifers.<font color="#38761d">(that are surrounded by other trees)</font></div><div><br></div><div>So any ideas how to filter<font color="#38761d">(or add a dimension) </font>the lidar below say 1.5m below the max returns<font color="#38761d">(this could be referenced to a tif file for max height)</font> and also the opposite for returning the top 1.5m values to then add to say a grouping filter. which could then go towards a tree count or a learning model.</div></div></div></blockquote><div><br></div><div>I think you would have to resort to Python to compute these things at the moment, but PDAL 2.7.0 is going to add math operations, which would be very useful for doing something like I did in this gist <a href="https://gist.github.com/hobu/36ea5fbec36412965ad9ef44cf4ade48">https://gist.github.com/hobu/36ea5fbec36412965ad9ef44cf4ade48</a> </div><div><br></div><div><blockquote type="cite"><div>    {</div><div>        "type": "filters.assign",</div><div>        "value": [</div><div>            "MaybeTreeTops = 1"</div><div>        ],</div><div>        "where": "ReturnNumber == NumberOfReturns && NumberOfReturns > 1 && HeightAboveGround > 1.5"</div><div>    },</div></blockquote></div><div><br></div><div>This won't work with PDAL 2.6, but the idea is to write an indicator dimension and then use filters.expression to filter based on MaybeTreeTops==1. </div><div><br></div><br><blockquote type="cite"><div><div dir="ltr"><div><br></div><div>For conifer identification i have also looked at the lidar Intensity values but is a hit and miss process at the moment </div></div></div></blockquote><br></div><div>Hope this helps,</div><div><br></div><div>Howard</div><br></body></html>