Hi Anouk, There is an issue open about spdmetrics on Windows: https://bitbucket.org/petebunting/spdlib/issues/8/spdmetrics-on-windows-64-bit <https://bitbucket.org/petebunting/spdlib/issues/8/spdmetrics-on-windows-64-bit>
The Windows binaries are experimental and haven’t been tested much. I’d recommend using the Linux / OS X version if you can. Thanks, Dan > On 10 Dec 2015, at 16:30, Glad Anouk <anouk.g...@irstea.fr> wrote: > > Dear list, > > I have some issues using SPDmetrics with Windows7-64bit system via R. > I managed to make it works only to calculate numreturnsheight using the > Vyrnwy las file from tutorial 6 and failed to have any other metrics. > My XML file and R code are below (this is also working with my own lasfile) : > > > Contents of metricsTEST.xml file > > <?xml version="1.0" encoding="UTF-8" ?> > <!-- > Description: > XML File for execution within SPDLib > This file contains a template for the > metrics XML interface. > --> > > <spdlib:metrics xmlns:spdlib="http://www.spdlib.org/xml/ > <http://www.spdlib.org/xml/>"> > <spdlib:metric metric="numreturnsheight" field="NReturnsGt2m" > return="All" class="NotGrd" lowthreshold="5" /> > </spdlib:metrics> > > > initial code for numreturnsheight > spdmetrics --image -f HFA -r 100 -c 100 -m metricsTEST.xml -i > Vyrnwy_OSGB_10m_h.spd -o Vyrnwy_OSGB_1m_metrics.tiff > > R adapted code for numreturnsheight > system(paste('spdmetrics', '--image', '-f HFA', '-r 100', '-c 100', '-m > metricsTEST.xml', '-i', "Vyrnwy_OSGB_10m_h.spd", '-o', > "Vyrnwy_OSGB_1m_metrics.tiff")) > > R output > spdmetrics SPDLib 3.1.250, Copyright (C) 2014 Sorted Pulse Library (SPD) > This program comes with ABSOLUTELY NO WARRANTY. This is free software, > and you are welcome to redistribute it under certain conditions; See > website (http://www.spdlib.org <http://www.spdlib.org/>). Bugs are to be > reported on the trac > or directly to spdlib-develop@lists.sourceforge.net > <mailto:spdlib-develop@lists.sourceforge.net> > Reading XML file: metricsTEST.xml > 1 metrics where found. > Using native resolution for processing > Executing for metrics: > NReturnsGt2m > Processing block 1 of 4 blocks > Processing block 2 of 4 blocks > Processing block 3 of 4 blocks > Processing block 4 of 4 blocks > Complete > spdmetrics - end > > However for any other metrics I tried to calculate so far SPDmetrics.exe > crashed without giving any results. I tried to use percentileheight, > mean/maxheight one by one without success. > My XML file and R code are below ( percentileheight). > > > Content of SPDmetrics.xml file > > <?xml version="1.0" encoding="UTF-8" ?> > > <!-- > Description: > XML File for execution within SPDLib > This file contains a template for the > metrics XML interface. > --> > > > <spdlib:metrics xmlns:spdlib="http://www.spdlib.org/xml/ > <http://www.spdlib.org/xml/>" > > > > <spdlib:metric metric="percentileheight" field="p10" percentile="10" > return="All" class="NotGrd" lowthreshold="5" upthreshold="60" /> > > > </spdlib:metrics> > > # initial code > spdmetrics --image -f HFA -r 100 -c 100 -m SPDmetrics.xml -i > Vyrnwy_OSGB_10m_h.spd -o Vyrnwy_percent10_metrics_metrics.tiff > > # code in R > system(paste('spdmetrics', '--image', '-f HFA', '-r 100', '-c 100', '-m > SPDmetrics.xml', '-i', "Vyrnwy_OSGB_10m_h.spd", '-o', > "Vyrnwy_OSGB_percent10_metrics.tiff")) > > #R output > spdmetrics SPDLib 3.1.250, Copyright (C) 2014 Sorted Pulse Library (SPD) > This program comes with ABSOLUTELY NO WARRANTY. This is free software, > and you are welcome to redistribute it under certain conditions; See > website (http://www.spdlib.org <http://www.spdlib.org/>). Bugs are to be > reported on the trac > or directly to spdlib-develop@lists.sourceforge.net > <mailto:spdlib-develop@lists.sourceforge.net> > Reading XML file: SPDmetrics.xml > 1 metrics where found. > Using native resolution for processing > Executing for metrics: > p10 > Warning message: > running command 'spdmetrics --image -f HFA -r 100 -c 100 -m SPDmetrics.xml -i > Vyrnwy_OSGB_10m_h.spd -o Vyrnwy_OSGB_percent10_metrics.tiff' had status 5 > > SPDmetrics.exe crashed. > > > I would like to know if you can help me with this. Is there anything wrong > within my command line or is this issue specific to windows7/64 systems? > > Thanks, > > Best regards > > Anouk > ------------------------------------------------------------------------------ > _______________________________________________ > spdlib-develop mailing list > spdlib-develop@lists.sourceforge.net > <mailto:spdlib-develop@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/spdlib-develop > <https://lists.sourceforge.net/lists/listinfo/spdlib-develop>
------------------------------------------------------------------------------
_______________________________________________ spdlib-develop mailing list spdlib-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spdlib-develop