<div dir="ltr">Miguel,<div><br></div><div>You can embed a pdal pipeline in a Python program and execute the pipeline on a directory of files.</div><div><br></div><div>The code below will sort each las file in the directory in which the Python program is placed by its X dimension, overwrite the files with the sorted output, and also print out a pandas DataFrame of each sorted output.</div><div><br></div><div>Best,</div><div><br></div><div>Joe</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 31, 2019 at 11:52 AM Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com">andrew.bell.ia@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div>This question is very general.  Perhaps you should write a program to the point where you have a specific problem where someone might help you.<br class="gmail-m_4007869387944515505gmail-Apple-interchange-newline"></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 31, 2019 at 1:58 AM Miguel Guerrero <<a href="mailto:g.miguel.guerrero.m@gmail.com" target="_blank">g.miguel.guerrero.m@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_4007869387944515505gmail-m_-8348499914514299872WordSection1"><p class="MsoNormal">Hello,</p><p class="MsoNormal">I hope you are doing well.</p><p class="MsoNormal">It has been hard for me to find a good example that shows me how to run a PDAL filter in batch mode (looping) using Python.</p><p class="MsoNormal">I have a set of LAS files in a directory and I want to be able to sort the points for each file by GPS time using a looping method in Python 2.7</p><p class="MsoNormal">Could anyone in the list help please?</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks in advance for your response.</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Regards,</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Miguel</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">Mail</a> for Windows 10</p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_4007869387944515505gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><p style="color:rgb(33,33,33);font-family:sans-serif;font-size:13px"><span style="font-size:7.5pt;font-family:Helvetica,sans-serif;color:black">Department of Biological Engineering | Class of 2020</span><span style="font-family:Tahoma,sans-serif;color:black"><u></u><u></u></span></p><p style="color:rgb(33,33,33);font-family:sans-serif;font-size:13px"><span style="font-size:7.5pt;font-family:Helvetica,sans-serif;color:black">Massachusetts Institute of Technology</span><span style="font-family:Tahoma,sans-serif;color:black"><u></u><u></u></span></p><p style="color:rgb(33,33,33);font-family:sans-serif;font-size:13px"><span style="font-size:7.5pt;font-family:Helvetica,sans-serif"><span style="color:rgb(5,99,193)"><a href="mailto:faraguna@mit.edu" target="_blank">faraguna@mit.edu</a></span><span style="color:black">| <a href="tel:(281)%20902-6908" target="_blank">(281) 902-6908</a></span></span></p></div></div>