<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Andrew,<div class="">Thank you, that’s exactly what I was looking for. </div><div class=""><br class=""></div><div class="">I was trying to access the stats with something like this:</div><div class="">$ pdal pipeline /data/pointcount.json </div><div class="">where pointcount.json is:</div><div class=""><br class=""></div><div class=""><div class="">{</div><div class="">  "pipeline":[</div><div class="">    "/data/input.las",</div><div class="">    {</div><div class="">      "type":"filters.stats",</div><div class="">      "dimensions":"Classification",</div><div class="">      "enumerate":"Classification",</div><div class="">      "count":"Classification"</div><div class="">    },</div><div class="">    {</div><div class="">      "type":"writers.text",</div><div class="">      "filename":"STDOUT"</div><div class="">    }</div><div class="">  ]</div><div class="">}</div></div><div class=""><br class=""></div><div class="">Thanks for your help,</div><div class="">Benjamin</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 30, 2016, at 4:56 PM, Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com" class="">andrew.bell.ia@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I should have added the output:<div class=""><br class=""></div><div class=""><div class="">$ bin/pdal info --stats myfile.las --filters.stats.dimensions=Classification --filters.stats.count=Classification</div><div class="">{</div><div class="">  "filename": "..\/test\/data\/las\/autzen_trim.las",</div><div class="">  "pdal_version": "1.3.0 (git-version: 3ca196)",</div><div class="">  "stats":</div><div class="">  {</div><div class="">    "statistic":</div><div class="">    [</div><div class="">      {</div><div class="">        "average": 1.237336364,</div><div class="">        "count": 110000,</div><div class="">        "counts":</div><div class="">        [</div><div class="">          "1.000000\/83893",</div><div class="">          "2.000000\/26107"</div><div class="">        ],</div><div class="">        "kurtosis": -4.857351452e+15,</div><div class="">        "maximum": 2,</div><div class="">        "minimum": 1,</div><div class="">        "name": "Classification",</div><div class="">        "position": 0,</div><div class="">        "skewness": 2.177023909e+15,</div><div class="">        "stddev": 0.4254905513,</div><div class="">        "variance": 0.1810422092</div><div class="">      }</div><div class="">    ]</div><div class="">  }</div><div class="">}</div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Nov 30, 2016 at 5:55 PM, Andrew Bell <span dir="ltr" class=""><<a href="mailto:andrew.bell.ia@gmail.com" target="_blank" class="">andrew.bell.ia@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">I'm not sure exactly what you're doing, but if you're trying to get the data using the command-line application, perhaps something like this is what you want:<div class=""><br class=""></div><div class="">$ bin/pdal info --stats myfile.las --filters.stats.dimensions=<wbr class="">Classification --filters.stats.count=<wbr class="">Classification<br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="h5">On Wed, Nov 30, 2016 at 5:46 PM, Benjamin Gross <span dir="ltr" class=""><<a href="mailto:mbgross@unavco.org" target="_blank" class="">mbgross@unavco.org</a>></span> wrote:<br class=""></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><div class="h5"><div style="word-wrap:break-word" class="">Hi all,<div class=""><br class=""></div><div class="">I’m new to using pdal and have what I hope is a very basic question. I’m trying to use filters.stats to output a summary of classes in a point cloud and the number of points per class as suggested on <a href="https://github.com/PDAL/PDAL/issues/955" target="_blank" class="">https://github.com/PDAL/PDA<wbr class="">L/issues/955</a>. But I’m not sure how to access the output of filters.stats. I tried to set up a pipeline as in the example, but the header in the output las doesn’t seem to include the new aggregate stats. If I change the output to text or STDOUT I only get the points back and furthermore it has all dimensions, not just those specified by the filters.stats dimensions field. What am I missing? Thanks for the help,</div><div class=""><br class=""></div><div class="">Benjamin</div><div class=""><br class=""></div><div class=""><br class=""></div></div><br class=""></div></div>______________________________<wbr class="">_________________<br class="">
pdal mailing list<br class="">
<a href="mailto:pdal@lists.osgeo.org" target="_blank" class="">pdal@lists.osgeo.org</a><br class="">
<a href="http://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank" class="">http://lists.osgeo.org/mailman<wbr class="">/listinfo/pdal</a><span class="HOEnZb"><font color="#888888" class=""><br class=""></font></span></blockquote></div><span class="HOEnZb"><font color="#888888" class=""><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="m_-69037539808797128gmail_signature" data-smartmail="gmail_signature">Andrew Bell<br class=""><a href="mailto:andrew.bell.ia@gmail.com" target="_blank" class="">andrew.bell.ia@gmail.com</a></div>
</font></span></div>
</blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature">Andrew Bell<br class=""><a href="mailto:andrew.bell.ia@gmail.com" target="_blank" class="">andrew.bell.ia@gmail.com</a></div>
</div>
</div></blockquote></div><br class=""></div></body></html>