[GRASS-user] r.terraflow error for ASTER DEM.

Markus Neteler neteler at osgeo.org
Sun Jul 5 04:16:08 EDT 2009


On Sun, Jul 5, 2009 at 8:07 AM, Milton Cezar
Ribeiro<miltinho.astronauta at gmail.com> wrote:
> Dear all,
>
> I tryed to run the following over a ASTER GDEM elevation map:
>
> r.terraflow elevation=ASTGTM_S25W049_dem
> filled=ASTGTM_S25W049_dem_terraflow_filled
> direction=ASTGTM_S25W049_dem_terraflow_direction
> swatershed=ASTGTM_S25W049_dem_terraflow_swatershed
> accumulation=ASTGTM_S25W049_dem_terraflow_accumulation
> tci=ASTGTM_S25W049_dem_terraflow_tci
>
> But I got the following errors (which suggest me to contact support team :-)
>
> MFD flow direction
> D8CUT=999999986991104.000000
> Memory size: 300.00M (314572800) bytes
> Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED mode.
> raster FabioASTGTM_S25W049_dem is of type CELL_TYPE --you should use
> r.terraflow.short
> STREAM temporary files in /var/tmp  (THESE INTERMEDIATE STREAMS WILL NOT BE
> DELETED IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE SPACE PLEASE
> DELETE THESE FILES MANUALLY!)
> file stats.out exists - renaming.
> ami_single_temp_name: mkstemp failed: : No such file or directory
> Assertion failed: 0, file ami_stream.cc, line 75
> This application has requested the Runtime to terminate it in an unusual
> way.
> Please contact the application's support team for more information.
> By the way, I am running grass 64R4 under Vista 64 bits.


I found this in the archive:

On Fri, Nov 7, 2008 at 2:14 AM, Glynn Clements<glynn at gclements.plus.com> wrote:
> Helena Mitasova wrote:
>> has anybody tried to run r.terraflow in winGRASS?
>>
>> It cannot find or create  the temp file?
>> ami_single_temp_name: mkstemp failed : No such file or directory
>> assertion failed: 0 file ami_stream.cc line 54
>> is it trying to write into /var/tmp which does not exist in windows?
>
> 1. The error message is inaccurate; it doesn't actually call mkstemp()
> on Windows, but mktemp().
>
> 2. The directory used for temporary files is controlled by the
> STREAM_DIR= option (renamed to stream_dir= in 7.0). /var/tmp is just
> the default setting.
>
> 3. The default value of /var/tmp is inappropriate for Windows. It
> should probably use the TMP or TEMP environment variables. There
> probably won't be a specific directory which will be writable by all
> users.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
> _______________________________________________
> grass-windows mailing list


Would be good to get that fixed for 6.4.0.

Markus


More information about the grass-user mailing list