[GRASS-SVN] r71810 - grass/trunk/raster/r.watershed/front

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 23 16:21:48 PST 2017


Author: wenzeslaus
Date: 2017-11-23 16:21:48 -0800 (Thu, 23 Nov 2017)
New Revision: 71810

Modified:
   grass/trunk/raster/r.watershed/front/main.c
   grass/trunk/raster/r.watershed/front/r.watershed.html
Log:
r.watershed: 8 not 9 dirs, starting from NE not E (fix r71806)

Modified: grass/trunk/raster/r.watershed/front/main.c
===================================================================
--- grass/trunk/raster/r.watershed/front/main.c	2017-11-23 23:48:54 UTC (rev 71809)
+++ grass/trunk/raster/r.watershed/front/main.c	2017-11-24 00:21:48 UTC (rev 71810)
@@ -155,7 +155,7 @@
     opt9 = G_define_standard_option(G_OPT_R_OUTPUT);
     opt9->key = "drainage";
     opt9->label = _("Name for output drainage direction raster map");
-    opt9->description = _("Directions from east numbered from 1 to 9");
+    opt9->description = _("Directions numbered from 1 to 8");
     opt9->required = NO;
     opt9->guisection = _("Outputs");
 

Modified: grass/trunk/raster/r.watershed/front/r.watershed.html
===================================================================
--- grass/trunk/raster/r.watershed/front/r.watershed.html	2017-11-23 23:48:54 UTC (rev 71809)
+++ grass/trunk/raster/r.watershed/front/r.watershed.html	2017-11-24 00:21:48 UTC (rev 71810)
@@ -379,8 +379,9 @@
 stream network and subbasins within the larger basin.
 
 <p>
-Given that the <b>drainage</b> is 9 directions numbered
-counterclockwise from east starting from 1, multiplying the output
+Given that the <b>drainage</b> is 8 directions numbered
+counter-clockwise starting from 1 in north-east direction,
+multiplying the output
 by 45 (by <tt>45.</tt> to get a double precision floating point raster
 map in <em><a href="r.mapcalc.html">r.mapcalc</a></em>) gives
 the directions in degrees. For most applications, zeros



More information about the grass-commit mailing list