<div dir="ltr"><div><div class="gmail_quote"><span class="gmail-im">On 27 October 2016 at 11:08, Moritz Lennert <span dir="ltr"><<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span class="gmail-m_3685478841958249463gmail-"><br>
<br>
Le 27 octobre 2016 11:22:02 GMT+02:00, James Duffy <<a href="mailto:james.philip.duffy@gmail.com" target="_blank">james.philip.duffy@gmail.com</a>> a écrit :<br>
>Hello,<br>
><br>
>I'm trying to use i.segment.stats with GRASS 7.0.4 in the osgeolive<br>
>32bit<br>
>operating system.<br>
><br>
>Prior to using this tool I have successfully created my segmented map<br>
>using<br>
>i.segment.<br>
><br>
>When I try to execute the following command:<br>
><br>
>i.segment.stats --overwrite --verbose map=gp_seg_optimum@gp1 \<br>
>rasters=gp_ortho.1@gp1,gp_ort<wbr>ho.2@gp1,gp_ortho.3@gp1,gp_ort<wbr>ho.4@gp1 \<br>
>raster_statistics=min,max,mea<wbr>n,stddev,variance,sum \<br>
>csvfile=/home/jpd205/Wales_GR<wbr>ASS/GarronPill/gp_seg_stats \<br>
>separator=comma<br>
><br>
>I get this error:<br>
><br>
>Calculating geometry statistics<br>
>ERROR: G_malloc: unable to allocate 4273800320 bytes of memory at<br>
>       /tmp/tmpgzUtnA/r.object.geome<wbr>try/main.c:129<br>
<br>
</span>This is coming from r.object.geometry.<br>
<br>
What are your region settings (g.region -p) ? How many segments do you have ?<br></blockquote></span><div><br>GRASS 7.0.4 (GarronPill):~ > g.region -p<br>projection: 99 (OSGB 1936 / British National Grid)<br>zone:       0<br>datum:      osgb36<br>ellipsoid:  airy<br>north:      208007.00931776<br>south:      207952.59780698<br>west:       200993.90853302<br>east:       201097.28911076<br>nsres:      0.00430914<br>ewres:      0.00430914<br>rows:       12627<br>cols:       23991<br>cells:      302934357<br> </div><span class="gmail-im"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<br>
Try running I.segment.stats without requesting form statistics. </blockquote><div><br></div></span><div>Running:<br><br>i.segment.stats --overwrite --verbose map=gp_seg_optimum@gp1 \<br>csvfile=/home/jpd205/Wales_<wbr>GRASS/GarronPill/gp_seg_stats \<br>separator=comma<br><br></div><div>Gives:<span class="gmail-im"><br><br>Calculating geometry statistics<br>ERROR: G_malloc: unable to allocate 4273800320 bytes of memory at<br>       /tmp/tmpgzUtnA/r.object.<wbr>geometry/main.c:129<br><br></span></div><span class="gmail-im"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">And try running r.object.geometry directly.<br></blockquote><div><br></div></span><div>Running:<br></div><div><br>r.object.geometry --overwrite --verbose input=gp_seg_optimum@gp1 \<br>output=/home/jpd205/Wales_<wbr>GRASS/GarronPill/gp_test separator=comma<br><br></div><div>Gives:<br><br>Current region rows: 12627, cols: 23991<span class="gmail-im"><br>ERROR: G_malloc: unable to allocate 4273800320 bytes of memory at<br>       /tmp/tmpgzUtnA/r.object.<wbr>geometry/main.c:129<br></span></div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<span class="gmail-m_3685478841958249463gmail-HOEnZb"><font color="#888888"><br>
Moritz<br>
<br>
</font></span></blockquote></div><br>Thanks for your reply.<br><br></div>James<br></div>