<div dir="ltr">Believe he is trying to move entirely to Linux and is looking for a FUSION metrics replacement since it does not run in Linux. SPDLib looks interesting. If you have access to LAStools the LAScanopy tool does these metrics, although I am unsure if the free version has full functionality.<br><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 1, 2016 at 9:42 AM Howard Butler <<a href="mailto:howard@hobu.co">howard@hobu.co</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As I mentioned in the Stack Exchange thread, and Brad mentioned below, this isn't currently possible out of the box with PDAL. I would ask what you are hoping to get by having this capability in PDAL rather than building a tool chain that includes FUSION + PDAL + other tools. Maybe it would be helpful to take a step back and describe how PDAL statistics computation would fit within a larger context.<br>
<br>
Most of PDAL's current "characterization" filters are about generating primitive computations for algorithms such as slope, ground, etc. There's things like coplanarity, projection, regression, sampling, and normal computation [1]. These are "per-point" type statistics rather than summaries, however, and are focused on the positional geometry of the point in relation(s) to its neighbors. Brad described the derivative writer, which does some typical surface summaries, and it would be a good place to start on an implementation if you were sufficiently motivated.<br>
<br>
PDAL's statistics filter [2] was recently updated to add kurtosis, skewness, variance, etc (no percentiles). You *might* be able to use that in combination with some sort moving window bounding geometry along with the crop filter [3], but this would be quite laborious and probably quite slow. RĂ©mi's pgpointcloud approach seems viable and might be useful for other reasons, depending on what you want to do.<br>
<br>
So, plenty of options but nothing that just does it.<br>
<br>
Howard<br>
<br>
[1] <a href="http://www.pdal.io/stages/filters.html" rel="noreferrer" target="_blank">http://www.pdal.io/stages/filters.html</a><br>
[2] <a href="http://www.pdal.io/stages/filters.stats.html" rel="noreferrer" target="_blank">http://www.pdal.io/stages/filters.stats.html</a><br>
[3] <a href="http://www.pdal.io/stages/filters.crop.html" rel="noreferrer" target="_blank">http://www.pdal.io/stages/filters.crop.html</a><br>
<br>
> On Sep 1, 2016, at 8:37 AM, Bradley Chambers <<a href="mailto:brad.chambers@gmail.com" target="_blank">brad.chambers@gmail.com</a>> wrote:<br>
><br>
> Aaron,<br>
><br>
> This is absolutely possible; it just doesn't exist out of the box today. We do something similar in our DerivativeWriter today (<a href="https://github.com/PDAL/PDAL/blob/master/io/derivative/DerivativeWriter.cpp" rel="noreferrer" target="_blank">https://github.com/PDAL/PDAL/blob/master/io/derivative/DerivativeWriter.cpp</a>). That may be a good place to look for inspiration. I think in the end you are looking for a GridMetricsWriter though. Are you needing a full replacement of the FUSION function? Or just a few select metrics?<br>
><br>
> Brad<br>
><br>
> On Thu, Sep 1, 2016 at 9:22 AM Aaron Poznanovic <<a href="mailto:aaron@redfoxgis.com" target="_blank">aaron@redfoxgis.com</a>> wrote:<br>
> Greetings,<br>
><br>
> This is a follow-up to a question posted over at GIS Stack Exchange (<a href="http://gis.stackexchange.com/questions/175454/are-pdal-or-pcl-capable-of-producing-lidar-grid-metrics" rel="noreferrer" target="_blank">http://gis.stackexchange.com/questions/175454/are-pdal-or-pcl-capable-of-producing-lidar-grid-metrics</a>). I'm curious what functionality or approach one would take with PDAL to calculate Lidar grid metrics?<br>
><br>
> FUSION is currently the best available set of tools that I know of for calculating Lidar grid metrics, which are useful for describing forest structure (<a href="http://forsys.cfr.washington.edu/fusion/fusionlatest.html" rel="noreferrer" target="_blank">http://forsys.cfr.washington.edu/fusion/fusionlatest.html</a>). From the FUSION documentation (page 70 from the documentation <a href="http://forsys.cfr.washington.edu/fusion/FUSION_manual.pdf" rel="noreferrer" target="_blank">http://forsys.cfr.washington.edu/fusion/FUSION_manual.pdf</a>):<br>
><br>
> GridMetrics computes a series of descriptive statistics for a LIDAR data set. Output is a raster (grid) represented in database form with each record corresponding to a single grid cell.<br>
><br>
> Essentially, I'm interested in producing a raster dataset where each cell represents summarized descriptive statistics for the Lidar point cloud such as cover, skewness, 75th percentile, etc (all of the grid metrics I'm after are available on the FUSION documentation. Is this currently possible, or recommended, with PDAL, or would this require other libraries? Many thanks in advance.<br>
><br>
> Best Regards,<br>
><br>
> -Aaron<br>
><br>
> Currently<br>
><br>
><br>
> Aaron J. Poznanovic, GISP<br>
> Principal Consultant<br>
> Red Fox GIS & Remote Sensing<br>
> (218) 387-4050<br>
> <a href="http://www.redfoxgis.com" rel="noreferrer" target="_blank">www.redfoxgis.com</a><br>
><br>
><br>
> _______________________________________________<br>
> pdal mailing list<br>
> <a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pdal</a><br>
> _______________________________________________<br>
> pdal mailing list<br>
> <a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pdal</a><br>
<br>
_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote></div></div>