<div>Hello Shaun, Andrew and the list,</div>
<div>&nbsp;</div>
<div>To Shaun:</div>
<div>yes I do have space...on the system there is about 44.5gb of free space where as the <strong>ESRI Ascii Raster grid</strong>&nbsp;of size 960mb&nbsp;required 22.62gb as said by the program.</div>
<div>&nbsp;</div>
<div>&gt;r.terraflow, it requires 80N where N is rows x columns of space to<br>&gt;compute the output. This can be upwards of 40G for large rasters</div>
<div>Is&nbsp;that the Grass Ascii&nbsp;Raster&nbsp;Grid that you are talking about??.<br>&nbsp;</div>
<div>To Andrew: </div>
<div>yes i do manually delete those files in /var/tmp&nbsp;each time when r.terraflow fails.( already warned about the same each time terraflow runs ).</div>
<div>&nbsp;</div>
<div>Shaun's patch did successed in removing the problem with ami_stream.h for the purpose of AMI_STREAM.</div>
<div>&nbsp;</div>
<div>but i want to know from Shuan which version of the cvs build did you use, on which&nbsp;your&nbsp;patch work and&nbsp; where able to get the desired results on larger files..</div>
<div>&nbsp;</div>
<div>-- <br>Best Regrads<br><br>Abhay Menon<br>&nbsp;</div>
<div><span class="gmail_quote">On 4/28/06, <b class="gmail_sendername">Shaun Walbridge</b> &lt;<a href="mailto:walbridge@nceas.ucsb.edu">walbridge@nceas.ucsb.edu</a>&gt; wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Do you have an large amount of disk space available on your /var<br>partition? The error:<br>file=/var/tmp/STREAM_UpisEN:cannot read!: Input/output error
<br>indicates you'd run out of space. As mentioned in the help for<br>r.terraflow, it requires 80N where N is rows x columns of space to<br>compute the output. This can be upwards of 40G for large rasters.<br><br>cheers,<br>
Shaun<br><br>abhay menon wrote:<br><br>&gt; hello all,<br>&gt;<br>&gt; am still facing this problem.... even after updating the patch file..<br>&gt;<br>&gt; r.terraflow December 2003<br>&gt; region size is 13593 x 15215<br>
&gt; cell 960MBdata header compatible with region header<br>&gt; elevation stored as FLOAT (4B) WARNING: raster 960MBdata is of type<br>&gt; CELL_TYPE --you should use r.terraflow.short<br>&gt; STREAM temporary files in /var/tmp&nbsp;&nbsp;(THESE INTERMEDIATE STREAMS WILL
<br>&gt; NOT BE DELETED IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE<br>&gt; SPACE PLEASE DELETE THESE FILES MANUALLY!)<br>&gt; SFD (D8) flow direction<br>&gt; D8CUT=999999986991104.000000<br>&gt; memory size: 
400.00M (419430400) bytes<br>&gt; Memory manager registering memory in MM_WARN_ON_MEMORY_EXCEEDED mode.<br>&gt; reading data from 960MBdata to stream /var/tmp/STREAM_kohqGU:<br>&gt; total elements=206817495, nodata elements=50042031
<br>&gt; largest temporary files:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;FILL: 10.79G (11581779720) [206817495 elements, 56B each]<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;FLOW: 11.68G (12542037120) [156775464 elements, 80B each]<br>&gt; Will need at least 23.36G (25084074240) space available in /var/tmp
<br>&gt; ------------------------------<br>&gt; COMPUTING FLOW DIRECTIONS<br>&gt; classifying nodata (inner &amp; boundary)<br>&gt; finding nodata<br>&gt; relabeling nodata<br>&gt; MM warning: limit=419430400B. allocating 209608296B.&nbsp;&nbsp;limit exceeded
<br>&gt; by 23602B.<br>&gt; MM warning: limit=419430400B. allocating 209608296B.&nbsp;&nbsp;limit exceeded<br>&gt; by 23633B.<br>&gt; merging relabeled grid<br>&gt; MM warning: limit=419430400B. allocating 209567256B.&nbsp;&nbsp;limit exceeded
<br>&gt; by 23558B.<br>&gt; MM warning: limit=419430400B. allocating 209567256B.&nbsp;&nbsp;limit exceeded<br>&gt; by 23589B.<br>&gt; ----------<br>&gt; assigning preliminary directions<br>&gt; ----------<br>&gt; finding flat areas (plateaus and depressions)
<br>&gt; plateau.cc:starting memscan<br>&gt; plateau.cc:memscan done<br>&gt; removing duplicate plateaus<br>&gt; MM warning: limit=419430400B. allocating 209567260B.&nbsp;&nbsp;limit exceeded<br>&gt; by 23574B.<br>&gt; :<br>&gt; MM warning: limit=419430400B. allocating 209567260B.&nbsp;&nbsp;limit exceeded
<br>&gt; by 23636B.<br>&gt; relabeling plateaus<br>&gt; MM warning: limit=419430400B. allocating 209567260B.&nbsp;&nbsp;limit exceeded<br>&gt; by 23570B.<br>&gt; MM warning: limit=419430400B. allocating 209567260B.&nbsp;&nbsp;limit exceeded<br>
&gt; by 23601B.<br>&gt; generating plateau statistics<br>&gt; MM warning: limit=419430400B. allocating 209403100B.&nbsp;&nbsp;limit exceeded<br>&gt; by 23570B.<br>&gt; MM warning: limit=419430400B. allocating 209403100B.&nbsp;&nbsp;limit exceeded
<br>&gt; by 23601B.<br>&gt; ----------<br>&gt; assigning directions on plateaus<br>&gt; MM warning: limit=419430400B. allocating 209649312B.&nbsp;&nbsp;limit exceeded<br>&gt; by 19306B.<br>&gt; :<br>&gt; MM warning: limit=419430400B. allocating 209649312B.&nbsp;&nbsp;limit exceeded
<br>&gt; by 19368B.<br>&gt; --------------<br>&gt; generating watersheds and watershed graph<br>&gt; creating windows<br>&gt; warning: using slower scan<br>&gt; generateWatersheds<br>&gt; MM warning: limit=419430400B. allocating 209628776B.&nbsp;&nbsp;limit exceeded
<br>&gt; by 10438B.<br>&gt; :<br>&gt; :<br>&gt; :<br>&gt; :<br>&gt; :<br>&gt; MM warning: limit=419430400B. allocating 209628776B.&nbsp;&nbsp;limit exceeded<br>&gt; by 11182B.<br>&gt; file=/var/tmp/STREAM_UpisEN:cannot read!: Input/output error
<br>&gt; r.terraflow: ./IOStream/include/ami_sort_impl.h:109: void<br>&gt; makeRun_Block(AMI_STREAM&lt;T&gt;*, T*, unsigned int, Compare*) [with T =<br>&gt; waterWindowType, Compare = priorityCmpWaterWindowType]: Assertion `err
<br>&gt; == AMI_ERROR_NO_ERROR' failed.<br>&gt;<br>&gt; --<br>&gt; Best Regrads<br>&gt;<br>&gt; Abhay Menon<br>&gt;</blockquote></div>