<div>Thanks for the explanation. One  alternative might be to add an HDF reader / writer.   Thoughts on the feasibility of this?  Thoughts on using the official HDF library vs leveraging the implementation in GDAL (which I assume is different) ?<br><div class="gmail_quote"><div>On Thu, Apr 20, 2017 at 7:52 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"><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Apr 19, 2017, at 6:29 PM, Michael Rosen <<a href="mailto:michael.rosen@gmail.com" target="_blank">michael.rosen@gmail.com</a>> wrote:</div><br class="m_1955392563807946748Apple-interchange-newline"><div><div>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><div><br></div><div>In the <a href="https://www.pdal.io/tutorial/writing.html#writing" target="_blank">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><br></div><div>In the <a href="https://github.com/PDAL/PDAL/blob/master/python/test/test_pipeline.py" target="_blank">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></div></div><div style="word-wrap:break-word"><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" target="_blank">https://github.com/PDAL/PDAL/issues/1573</a> on the topic.</div><div><br></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></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" target="_blank">https://pypi.python.org/pypi/pdal</a> . </div><div>- PDAL has explicitly named dimensions <a href="https://www.pdal.io/dimensions.html" target="_blank">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></div><div>None of this is too difficult, but there's still a significant effort required to complete it.</div></div><div style="word-wrap:break-word"><div><br></div><div>Howard</div></div></blockquote></div></div>