<div dir="ltr">On 18 October 2016 at 16:37, Moritz Lennert <span dir="ltr"><<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 18/10/16 17:28, James Duffy wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On 18 October 2016 at 16:17, Moritz Lennert<br></span><div><div class="h5">
<<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a> <mailto:<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonl<wbr>ine.be</a>>> wrote:<br>
<br>
On 18/10/16 14:27, James Duffy wrote:<br>
<br>
Hello,<br>
<br>
I'm using GRASS 7.0.4 on the OSGeoLive pre-built operating system. I<br>
have installed the addon 'i.segment.stats' to use with my output<br>
from<br>
'i.segment.uspo'.<br>
<br>
When selecting the 'rasters' input for this tool, I choose the<br>
original<br>
layers that were used to create the segmented map in the first<br>
place.<br>
Upon execution of 'i.segment.stats', i get the following error:<br>
<br>
Element type should be "cell" and not "raster.<br>
<br>
<br>
The above message is just a warning and should not keep the module<br>
from working. I just fixed this (r69700), so try reinstalling<br>
i.segment.stats.<br>
<br>
<br>
Ok thank you, have reinstalled and the message no longer appears.<br>
<br>
<br>
<br>
The tool does not continue and outputs a blank .csv file.<br>
<br>
Any help solving this would be much appreciated.<br>
<br>
<br>
Could you send us the command line used (you can get that by pushing<br>
the 'Copy' button in the GUI of the module or through the command<br>
history in the GUI 'command console')<br>
<br>
<br>
i.segment.stats --overwrite --verbose<br>
map=angle_seg_uspo_angle_regio<wbr>n_1_rank1@angle1<br>
rasters=angle_ortho.1@angle1 raster_statistics=min,max,mean<wbr>,stddev,sum<br>
csvfile=/home/jd/Wales_GRASS/i<wbr>segstats_gp_test separator=comma<br>
<br>
With this command, the output .csv is still empty apart from the headers.<br>
</div></div></blockquote>
<br>
Are you sure the region is set to angle_seg_uspo_angle_region_1_<wbr>rank1 ? I.e.:<br>
<br>
g.region rast=angle_seg_uspo_angle_regi<wbr>on_1_rank1<br></blockquote><div><br></div><div>This fixed it. Sorry, I assumed that the region was already set to the rasters that were used to create the segmented map (which are identical in extent to the segmented map itself). Will make a note in my script to always set the region to the input for i.segment.stats. <br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
What do<br>
<br>
g.region -p<br>
and<br>
<a href="http://r.info" rel="noreferrer" target="_blank">r.info</a> angle_seg_uspo_angle_region_1_<wbr>rank1<br>
<br>
give you ?</blockquote><div><br></div><div>Thanks for your help Moritz!<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888"><br>
<br>
Moritz<br>
</font></span></blockquote></div><br></div><div class="gmail_extra">James<br clear="all"></div></div>