<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 19, 2017, at 6:29 PM, Michael Rosen <<a href="mailto:michael.rosen@gmail.com" class="">michael.rosen@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Can we use the Python Bindings to create a LAS file from values we hold in Memory? In my case, I'm using the HDF Python library to read a .h5 file and need to convert the results to LAS.<br class=""><div class=""><br class=""></div><div class="">In the <a href="https://www.pdal.io/tutorial/writing.html#writing" class="">Writing with PDAL documentation</a>, Bradley Chambers shows how to do this in C++ ... but it looks like we're missing some machinery to do it via Python.</div><div class=""><br class=""></div><div class="">In the <a href="https://github.com/PDAL/PDAL/blob/master/python/test/test_pipeline.py" class="">test for the Python Bindings</a>, we see how to write the output from a filter to an array ... but not the other way around.</div></div></div></blockquote><br class=""></div><div>Not at this time, but it's been on my queue for Python stuff. I filed a ticket at <a href="https://github.com/PDAL/PDAL/issues/1573" class="">https://github.com/PDAL/PDAL/issues/1573</a> on the topic.</div><div><br class=""></div><div>Part of the reason it isn't done yet is I haven't been sure how it would work. There's a few challenges</div><div><br class=""></div><div>- We aren't going to do IPC, so the only way it could be used is in Python extension scenarios <a href="https://pypi.python.org/pypi/pdal" class="">https://pypi.python.org/pypi/pdal</a> . </div><div>- PDAL has explicitly named dimensions <a href="https://www.pdal.io/dimensions.html" class="">https://www.pdal.io/dimensions.html</a> and Numpy has array names. The user is going to have to map their arrays to known PDAL names or things will be quite mushy, especially when translating to other formats.</div><div>- Unsure what to do about multiple arrays at once, but I presume we'll just disallow it for starters</div><div>- Metadata, SRS, and construction and assignment </div><div><br class=""></div><div>None of this is too difficult, but there's still a significant effort required to complete it.</div><div><br class=""></div><div>Howard</div></body></html>