<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="">The readers.icebridge driver is already using HDF5. The problem is every HDF5 file is potentially a different layout/schema, and coming up with a way to define those things might be tough.<div class=""><br class=""></div><div class=""> <br class=""><div><blockquote type="cite" class=""><div class="">On Apr 20, 2017, at 10:59 AM, 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 class="">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 class=""><div class="gmail_quote"><div class="">On Thu, Apr 20, 2017 at 7:52 AM Howard Butler <<a href="mailto:howard@hobu.co" class="">howard@hobu.co</a>> wrote:<br class=""></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" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Apr 19, 2017, at 6:29 PM, Michael Rosen <<a href="mailto:michael.rosen@gmail.com" target="_blank" class="">michael.rosen@gmail.com</a>> wrote:</div><br class="m_1955392563807946748Apple-interchange-newline"><div class=""><div 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" target="_blank" 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" target="_blank" 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><div style="word-wrap:break-word" class=""><div class="">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" class="">https://github.com/PDAL/PDAL/issues/1573</a> on the topic.</div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">- 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" class="">https://pypi.python.org/pypi/pdal</a> . </div><div class="">- PDAL has explicitly named dimensions <a href="https://www.pdal.io/dimensions.html" target="_blank" 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 class="">- Unsure what to do about multiple arrays at once, but I presume we'll just disallow it for starters</div><div class="">- Metadata, SRS, and  construction and assignment </div><div class=""><br class=""></div><div class="">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" class=""><div class=""><br class=""></div><div class="">Howard</div></div></blockquote></div></div>
</div></blockquote></div><br class=""></div></body></html>