1

I used r.terraflow.short in GRASS, but it displayed this error:

r.terraflow.short elevation=raster_bulacanElevation \
                  filled=raster_bulacanElevationFlooded1 \
                  direction=raster_bulacanElevationFlowDirection1 \
                  swatershed=raster_bulacanElevationSink1 \  
                  accumulation=raster_bulacanElevationAccumulation1 \
                  tci=raster_bulacanElevationTCI1
stats.out: Permission denied
STREAM temporary files in C:/Users/Rhen/AppData/Local/Temp
(THESE INTERMEDIATE STREAMS WILL NOT BE DELETED IN CASE OF
ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE SPACE PLEASE
DELETE THESE FILES MANUALLY!)

What should I do to make r.terraflow.short run? I tried deleting all the contents of the Temp folder but GRASS still displayed the same error.

2
  • Which version of GRASS are you running? How did you install it? Based on your path name, I can assume windows, but not much beyond that.
    – scw
    Commented Feb 6, 2011 at 9:26
  • I installed GRASS 6.4.0 in Windows. I downloaded it from the GRASS website
    – teamAngat
    Commented Feb 6, 2011 at 16:21

2 Answers 2

1

Your issue could be related to bug http://trac.osgeo.org/grass/ticket/775. That's strange because it is supposed to be fixed since grass v6.4

Anyway, you can try to apply the patch ..

3
  • You can get a winGRASS version of 6.4 containing the fix here: trac.osgeo.org/grass/ticket/775
    – markusN
    Commented Feb 8, 2011 at 7:23
  • @teamAngat: did you end up getting this to work OK, or do we need to keep looking for answers?
    – scw
    Commented Feb 23, 2011 at 4:25
  • I have same problem, using ver. 6.4.3RC2 for windows Commented Aug 9, 2013 at 12:29
0

we are also stuck with grass64 for some compatibility issues. For those still looking for a solution, the workaround is to change the name of the stats.out file by adding the parameter e.g. "stats=stats.out2" in the command. It should look like:

r.terraflow.short elevation=raster_bulacanElevation \
                  filled=raster_bulacanElevationFlooded1 \
                  direction=raster_bulacanElevationFlowDirection1 \
                  swatershed=raster_bulacanElevationSink1 \  
                  accumulation=raster_bulacanElevationAccumulation1 \
                  tci=raster_bulacanElevationTCI1 \
                  stats=stats.out2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.