[GRASS-user] r.terraflow

Markus Neteler neteler at osgeo.org
Wed Nov 11 02:04:17 EST 2009


Hi Francesco,

On Tue, Nov 10, 2009 at 12:34 PM, Francesco Mirabella <mirabell at unipg.it> wrote:
> Hi Markus,
> I tried to apply the patch of r.terraflow.  I do not know if I did it fine,
> what I did was to change the original "include/iostream/ami_sort_impl.h"
> file with the modifications in the .diff file.

such changes can be applied automatically:

cd where/the/code/is/
patch -p0 < difffile

Sometimes it also needs to be applied from the main GRASS source
code directory (just check if the path is in the diff file or not).

> If this was fine, below is
> the output of r.terraflow which to me seems to give a different error as
> before.
>
> ===============================================================
> GRASS 6.4.0RC5 (WGS84_UTM33):~ > r.terraflow elevation=dem_tagliato
> filled=flood direction=flow swatershed=sink accumulation=accumulation
> tci=tci d8cut=infinity memory=1600 STREAM_DIR=/tmp stats=stats.out
> STREAM temporary files in /tmp  (THESE INTERMEDIATE STREAMS WILL NOT BE
> DELETED IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE SPACE PLEASE
> DELETE THESE FILES MANUALLY!)
> MFD flow direction
> D8CUT=999999986991104.000000
> Memory size: 1.56G (1677721600) bytes
> Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED mode.
> total elements=67071935, nodata elements=61864898
> largest temporary files:
> FILL: 3.50G (3756028360) [67071935 elements, 56B each]

-> are you on a 64 box? If on 32bit, did you compile GRASS with
large file support? There will be the 2GB limit if not.

> FLOW: 397.27M (416562960) [5207037 elements, 80B each]
> Will need at least 7.00G (7512056720) space available in /tmp

-> space is there in /tmp/?

> ------------------------------
> COMPUTING FLOW DIRECTIONS
...
> generating watersheds and watershed graph
> AMI_STREAM::write_item failed.
> /tmp/STREAM_HHSoQw: File too large

-> /tmp full or 2GB file limit hit?

Please check if you configured GRASS with --enable-largefile before
compilation.

Markus


More information about the grass-user mailing list