I assume this is for an SPD Version 3 file? SPD version 4 is not supported
by SPDlib.

The quickest option is probably to write a converter using the SPDLib
python bindings (spdpy). Read the LVIS data using h5py and then write to
SPDV3 using the bindings.
You can see an example of writing to SPDV3 using the python bindings here:
https://bitbucket.org/petebunting/spdlib/src/4f115f4af113133de289970186f3022ddd924ab7/python/importers/geolasgcw2spd.py?at=default&fileviewer=file-view-default

Incidentally, I got a similar query from the LVIS team a couple of days
ago... let me know if you get stuck. We're planning a Pylidar LVIS driver
to handle these Gabon data but won't get onto it until February sometime.

John.
-- 
John Armston
GEDI Science Team
Department of Geographical Sciences
1150 Lefrak Hall, University of Maryland, College Park MD 20742
T: +1 (301) 405 8444 <+13014058444>
M: +1 (202) 656 4676 <+12026564676>


On Tue, Jan 17, 2017 at 6:43 PM, Pete Bunting [pfb] <p...@aber.ac.uk> wrote:

> Hi Adam,
>
> I’ll have to forward you on to Sam Gillingham (pylidar dev; cc’d) to
> answer that question. John Armston (cc’d) has written h5py code to read /
> write spd files before so he might be able to point you the right direction
> as well.
>
> Best wishes,
>
> Pete
>
> ****************************************************
> * Dr Pete Bunting
> * Reader in Remote Sensing
> * Earth Observation and Ecosystem Dynamics Group
> * Department of Geography and Earth Sciences
> * Aberystwyth University
> * Aberystwyth
> * Ceredigion
> * SY23 3DB
> * UK
> *
> * Ph: +44 (0) 1970 622615 <+44%201970%20622615>
> * Mob: +44 (0) 7917 842743 <+44%207917%20842743>
> * Email: p...@aber.ac.uk
> * ORCID: http://orcid.org/0000-0002-7435-0148
> ****************************************************
> *"Please consider the environment before printing this email or any
> documents attached”*
>
> On 18 Jan 2017, at 08:23, Adam Steer <adam.st...@anu.edu.au> wrote:
>
> Hi all
> I’m hoping a proper SPDlib ninja can answer this one:
>
> It’s straightforward to extract an LVIS file to numpy arrays - but then,
> what is the best approach for repacking as SPD using pylidar?
>
> I’m a bit confounded by the docs - if there’s an example around for a
> pylidar function something like:
>
> pylidar.stuffintospdfile(‘group’, ‘variable’, NP_array)
>
> …that would be great! The alternative is to hack up an SPD-like structure
> in h5py and populate it - but I feel that it might miss
> compression/efficiency tricks already built into the SPD format.
>
> Thanks!
>
> Adam
>
> On 12 Jan 2017, at 9:34 am, tim larson <timlarson...@gmail.com> wrote:
>
> I have waveform data already in an HDF5 format but not compatible right
> now with SPDLib.  The attached image outlines our existing structure.
>
> If anybody is interested in helping me convert this to a compatible
> structure for SPDlib, I would be able to offer you a consulting fee $$.
> Please contact me.  Need this ASAP
>
> timlarson...@gmail.com
>
> Regards,
> Tim Larson
> <Screen Shot 2017-01-11 at 5.29.05 PM.png>-----------------------
> -------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi_______
> ________________________________________
> spdlib-develop mailing list
> spdlib-develop@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/spdlib-develop
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org <http://slashdot.org>!
> http://sdm.link/slashdot
> _______________________________________________
> spdlib-develop mailing list
> spdlib-develop@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/spdlib-develop
>
>
>
>
> --------------------------------------------------------------------
> Un o’r 4 prifysgol uchaf yn y DU a’r orau yng Nghymru am fodlonrwydd
> myfyrwyr.
> (Arolwg Cenedlaethol y Myfyrwyr 2016)
> www.aber.ac.uk
>
> Top 4 UK university and best in Wales for student satisfaction
> (National Student Survey 2016)
> www.aber.ac.uk
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
spdlib-develop mailing list
spdlib-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spdlib-develop

Reply via email to