[GRASS-SVN] r54356 - in grass/trunk/raster/r.drain: . tests
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 20 04:51:49 PST 2012
Author: neteler
Date: 2012-12-20 04:51:48 -0800 (Thu, 20 Dec 2012)
New Revision: 54356
Added:
grass/trunk/raster/r.drain/tests/
grass/trunk/raster/r.drain/tests/test.r.drain.sh
grass/trunk/raster/r.drain/tests/testascii_nc.asc
Log:
test case from manual added
Added: grass/trunk/raster/r.drain/tests/test.r.drain.sh
===================================================================
--- grass/trunk/raster/r.drain/tests/test.r.drain.sh (rev 0)
+++ grass/trunk/raster/r.drain/tests/test.r.drain.sh 2012-12-20 12:51:48 UTC (rev 54356)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# to be run in the North Carolina location
+
+export GRASS_OVERWRITE=1
+
+r.in.ascii testascii_nc.asc out=testascii
+g.region rast=testascii -p
+
+d.mon wx0
+sleep 2
+d.rast.num testascii
+
+r.drain testascii out=drain coord=638442.5,220548.5
+d.rast -o drain
Property changes on: grass/trunk/raster/r.drain/tests/test.r.drain.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
Added: grass/trunk/raster/r.drain/tests/testascii_nc.asc
===================================================================
--- grass/trunk/raster/r.drain/tests/testascii_nc.asc (rev 0)
+++ grass/trunk/raster/r.drain/tests/testascii_nc.asc 2012-12-20 12:51:48 UTC (rev 54356)
@@ -0,0 +1,13 @@
+north: 220600
+south: 220000
+west: 638300
+east: 639000
+rows: 6
+cols: 7
+null: -9999
+20 19 17 16 17 16 16
+18 18 24 18 15 12 11
+22 16 16 18 10 10 10
+17 15 15 15 10 8 8
+24 16 8 7 8 0 12
+17 9 8 7 8 6 12
More information about the grass-commit
mailing list