<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Markus Metz &lt;markus.metz.giswork@googlemail.com&gt;</b>
</font>
<p><font size=1 face="sans-serif">08/15/2011 06:28 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Doug_Newcomb@fws.gov</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">grass-dev@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [GRASS-dev] R.terraflow on massive
grids</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>&gt;&lt;Doug_Newcomb@fws.gov&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Folks,<br>
&gt;&gt; I have an fcell grid of elevations for the state of North Carolina
(51000<br>
&gt;&gt; rows 133000 columns 6783000000 cells) . &nbsp;I tried to run r.terraflow
in<br>
&gt;&gt; GRASS7 ( 8/8/2011 svn snapshot) and ran into the dimension limits.
&nbsp;So I<br>
&gt;&gt; patched them according to Glynn's email ,<br>
&gt;&gt; </font></tt><a href="http://www.osgeo.org/pipermail/grass-user/2004-February/024722.html"><tt><font size=2>http://www.osgeo.org/pipermail/grass-user/2004-February/024722.html
&nbsp;and<br>
&gt;&gt; tried again ( Would it be better to change the &nbsp;dimension
variable to int<br>
&gt;&gt; instead of &nbsp;short int?) .<br>
&gt;&gt;<br>
&gt;&gt; This time my Streams file builds to about 26 GB and then r.terraflow
bombs<br>
&gt;&gt; with :<br>
&gt;&gt;<br>
&gt;&gt; MFD flow direction<br>
&gt;&gt; D8CUT=999999986991104.000000<br>
&gt;&gt; Memory size: 808.00M (847249408) bytes<br>
&gt;&gt; Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED
mode.<br>
&gt;&gt; r.terraflow: grass2str.h:145: AMI_STREAM&lt;T&gt;*<br>
&gt;&gt; cell2stream(char*, elevation_type, long int*) [with T =<br>
&gt;&gt; float, elevation_type = float]: Assertion `nrows * ncols ==<br>
&gt;&gt; str-&gt;stream_len()' failed.<br>
&gt;&gt;<br>
&gt;&gt; The memory size is interesting, because I'm giving it 8GB of RAM
out of 16<br>
&gt;&gt; GB in the command.<br>
<br>
&gt;Note that the memory manager of the iostream lib used by r.terraflow<br>
&gt;can only handle up to 2047 MB of RAM because the memory option in MB<br>
&gt;is internally converted to Byte and stored as int, thus the max<br>
&gt;recognized value is 2^31 - 1 Byte.<br>
<br>
&gt;Markus M</font></tt></a>
<br>
<br><tt><font size=2>This appears to be kind of like pulling on a corner
of a spiderweb. :-) &nbsp;</font></tt>
<br>
<br><tt><font size=2>Should the limit to memory be indicated in the gui?</font></tt>
<br><tt><font size=2>Would there be any benefit to other parts of GRASS
in bumping up this memory limit? &nbsp;I can see the reason on 32 bit windows
XP, but that is starting to go away.</font></tt>
<br>
<br><tt><font size=2>Doug<br>
</font></tt>
<br>
<br><font size=2 face="sans-serif">Doug Newcomb &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; <br>
USFWS<br>
Raleigh, NC<br>
919-856-4520 ext. 14 doug_newcomb@fws.gov<br>
---------------------------------------------------------------------------------------------------------<br>
The opinions I express are my own and are not representative of the official
policy of the U.S.Fish and Wildlife Service or Dept. of the Interior. &nbsp;
Life is too short for undocumented, proprietary data formats.</font>