Hi Pete

On Fri, Oct 04, 2013 at 10:35:49AM +0100, Pete Bunting wrote:
> Hi Roberto, 
> 
> I am not sure why you get an error from the XML parsing, can you email me the
> XML file you are using? The XML you have put in the email is correct and I
> have copied and pasted it into a file and checked it runs OK for me here. 
> 

Yes, of course. I've attached the meanheight.xml file

> However, I did notice an error in your command as I think you want the option
> --image rather than --ascii to generate an output image. 
> 
> spdmetrics --image -m meanheight.xml -f KEA -o raster_metrics.kea -i 
> ../Vyrnwy_osgb_10m_rmnoise_RGB_pmfgrderrgrd_h.spd

Doh! >_< At the beginning I checked with --ascii option on purpose, because I
wanted to test that spdmetrics works well. When I got that error I did not
realize to check another kind of output. But now another question arises to me.
What is the --ascii option used for and how do I use it properly?

As for the --image option, it works well when a single metric xml file is used,
but I got another error when checking a seven metrics xml file (which I also
attached):

    7 metrics where found.
    Using native resolution for processing
    Executing for metrics: 
    CoverRts
    MaxH
    MeanH
    MedianH
    numPulses
    CanopyCover
    CanopyCopyPercent
    Processing block 1 of 3 blocks
    Segmentation fault (core dumped)

The command I have used is the same but for the xml file:

    $ spdmetrics --image -m metrics.xml -f ENVI -o raster_metrics.img -i 
file_height.spd

Cheers,
Roberto.

-- 
Roberto Antolín
https://twitter.com/Tolanss

Attachment: metrics.xml
Description: XML document

Attachment: meanheight.xml
Description: 

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
spdlib-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spdlib-develop

Reply via email to