Hi Ramiro,

I’ve tried under running spdmetrics on OS X (built from source), Ubuntu 14.04 
and Fedora 21 using the latest build (SPDLib 3.2.289) from conda (installed 
through Python 3.4 Miniconda) and all the metrics you sent ran through fine so 
no idea why it’s not working on your system. The command I used was:

spdmetrics --image -f KEA -o test.kea -i subset_h.spd -m CanopyPercent1.xml 

What distro are you running? Do you have other things installed which could 
conflict with SPDLib? Have you tried under different systems and also found the 
same problem? 

Thanks,

Dan

> On 25 Mar 2015, at 18:07, Ramiro Silveyra González <rasil...@gmail.com> wrote:
> 
> ah, I forgot the xml templates.
> 
> As I said all work but CanopyPercent. I have also tried canopycover and it 
> yields the same error.
> 
> 2015-03-25 19:04 GMT+01:00 Ramiro Silveyra González <rasil...@gmail.com 
> <mailto:rasil...@gmail.com>>:
> Hi Dan,
> 
> thanks for your answer.
> Yes, sure. You find a subset attached to this email.
> 
> On this file (also on the subset) I run several metrics ('CoverRts', 'MeanH', 
> 'MaxH', 'MedianH','MinH', 'SumH', 'VarH', 'StdH','Stratum6', 'Stratum5', 
> 'Stratum4', 'Stratum3','Stratum2','hscoi',(....) 'MaxH_Last', 'MedianA', 
> 'SumA' ). 
> All of them work, but I cannot run anything based on canopycover.
> I have the same problem for the all files I have (504 tiles).
> 
> It would be great if you can find out what is not working.
> 
> Thanks,
> 
> Ramiro
> 
> 
> 
> 
> 2015-03-23 14:35 GMT+01:00 Daniel Clewley <daniel.clew...@gmail.com 
> <mailto:daniel.clew...@gmail.com>>:
> Hi Ramiro,
> 
> Not sure on this error. If you can provide a small sample SPD file and an 
> example of a metrics file which works and one where it segfaults I can try 
> running it through a debugger and seeing if I can see anything. 
> 
> The SPDLib wiki is a bit out of date now, more up to date documentation can 
> be downloaded from https://bitbucket.org/petebunting/spdlib-documentation 
> <https://bitbucket.org/petebunting/spdlib-documentation> or there are 
> tutorials available to download from 
> https://sourceforge.net/projects/spdlib/files/Tutorials/ 
> <https://sourceforge.net/projects/spdlib/files/Tutorials/>
> 
> Thanks,
> 
> Dan
> 
> On 20 Mar 2015, at 20:49, Ramiro Silveyra González <rasil...@gmail.com 
> <mailto:rasil...@gmail.com>> wrote:
> 
>> Hi,
>> 
>> I am running some metrics with spdmetrics.
>> Any metrics works fine for me, apart from metrics related to canopycover.
>> 
>> I tried with different parameters but I always get "segmentation fault, core 
>> dumped.." error.
>> I have checked all examples in the spdlib wiki, but I do not see where my 
>> template could be wrong.
>> 
>> Here is my xml;
>> 
>> <?xml version="1.0" encoding="UTF-8" ?>s
>> <!--
>>     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="canopycover" field="CanopyCover" resolution="1" 
>> radius="2" return="All" class="Grd" heightup="40" heightlow="0" />
>> </spdlib:metrics>  
>> 
>> Thanks,
>> 
>> 
>> Ramiro
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website, 
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for 
>> all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the 
>> conversation now. http://goparallel.sourceforge.net/ 
>> <http://goparallel.sourceforge.net/>_______________________________________________
>> 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>
> 
> 
> <CanopyPercent1.xml><CoverRts1.xml><hscoi.xml><MaxH1.xml><MaxH_First.xml><MaxH_Last.xml><MeanA.xml><MeanH1.xml><MedianA.xml><MedianH1.xml><MedianH_First.xml><MedianH_Last.xml><numPulses.xml><StdH.xml><Stratum2.xml><Stratum3.xml><Stratum4.xml><Stratum5.xml><Stratum6.xml><SumA.xml><SumH.xml><VarH.xml>

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
spdlib-develop mailing list
spdlib-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spdlib-develop

Reply via email to