[GRASS-dev] [GRASS GIS] #1154: r.drain hangs using an r.walk surface

#1154: r.drain hangs using an r.walk surface
-----------------------+----------------------------------------------------
Reporter: abevan | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: r.drain | Platform: MacOSX
      Cpu: OSX/Intel |
-----------------------+----------------------------------------------------
GRASS 7.0.svn (spearfish):~ > r.walk -k -n elevation=elevation.10m
friction=elevation.10m coordinate=603289,4925264 output=anisoA
outdir=anisoAdir lambda=0
[[BR]]
Walking costs are a=0.720000 b=6.000000 c=1.999800 d=-1.999800
Lambda is 0.000000
Slope_factor is -0.212500
--------------------------------------------
Will need at least 9.23 MB of disk space
Will need at least 12.29 MB of memory
--------------------------------------------
Reading raster maps <elevation.10m@PERMANENT> and
<elevation.10m@PERMANENT>, initializing output...
100%
Initializing directional output
100%
Finding cost path
100%
Writing output raster map anisoA...
100%
Writing movement direction file anisoAdir...
100%
r.walk complete. Peak cost value: 18025.341210.
[[BR]]
GRASS 7.0.svn (spearfish):~ > r.drain -c -d input=anisoA indir=anisoAdir
output=fromAtoB coordinate=595080,4918109 --v
[[BR]]
Directional drain selected... checking for direction raster
direction read: 67.500000, neighbour found: 675
direction read: 22.500000, neighbour found: 225
direction read: 22.500000, neighbour found: 225
direction read: 22.500000, neighbour found: 225
direction read: 90.000000, neighbour found: 900
direction read: 0.000000, neighbour found: 0
direction read: 180.000000, neighbour found: 1800
direction read: 0.000000, neighbour found: 0
direction read: 180.000000, neighbour found: 1800
direction read: 0.000000, neighbour found: 0

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1154&gt;
GRASS GIS <http://grass.osgeo.org>

#1154: r.drain hangs using an r.walk surface
-----------------------+----------------------------------------------------
Reporter: abevan | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: r.drain | Platform: MacOSX
      Cpu: OSX/Intel |
-----------------------+----------------------------------------------------

Comment(by mmetz):

fixed in r43478, please test

Markus M

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1154#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1154: r.drain hangs using an r.walk surface
---------------------+------------------------------------------------------
  Reporter: abevan | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Resolution: fixed | Keywords: r.drain
  Platform: MacOSX | Cpu: OSX/Intel
---------------------+------------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:1 mmetz]:
> fixed in r43478, please test
>
> Markus M

Works fine:

{{{
GRASS 7.0.svn (spearfish60_grass7):~ > g.region rast=elevation.10m

GRASS 7.0.svn (spearfish60_grass7):~ > r.walk -k -n
elevation=elevation.10m \
friction=elevation.10m start_coordinate=603289,4925264 output=anisoA \
outdir=anisoAdir lambda=0
Walking costs are a=0.720000 b=6.000000 c=1.999800 d=-1.999800
Lambda is 0.000000
Slope_factor is -0.212500
--------------------------------------------
Will need at least 70.89 MB of disk space
Will need at least 86.53 MB of memory
--------------------------------------------
Reading raster maps <elevation.10m@PERMANENT> and
<elevation.10m@PERMANENT>, initializing output...
  100%
Initializing directional output
  100%
Finding cost path
  100%
Writing output raster map anisoA...
  100%
Writing movement direction file anisoAdir...
  100%
r.walk complete. Peak cost value: 18230.616166.

GRASS 7.0.svn (spearfish60_grass7):~ > d.mon wx0
GRASS 7.0.svn (spearfish60_grass7):~ > d.rast elevation.10m
  100%
GRASS 7.0.svn (spearfish60_grass7):~ > d.rast anisoA
  100%
GRASS 7.0.svn (spearfish60_grass7):~ > d.rast anisoAdir
  100%

GRASS 7.0.svn (spearfish60_grass7):~ > r.drain -c -d input=anisoA
indir=anisoAdir output=fromAtoB start_coordinate=595080,4918109
Writing raster map <fromAtoB>...
  100%
GRASS 7.0.svn (spearfish60_grass7):~ >
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1154#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>