[GRASS-SVN] r71192 - grass-addons/grass7/vector/v.area.weigh

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 20 00:09:27 PDT 2017


Author: mlennert
Date: 2017-06-20 00:09:27 -0700 (Tue, 20 Jun 2017)
New Revision: 71192

Modified:
   grass-addons/grass7/vector/v.area.weigh/v.area.weigh.html
   grass-addons/grass7/vector/v.area.weigh/v.area.weigh.py
Log:
v.area.weigh: r.statistics2 was renamed to r.stats.zonal

Modified: grass-addons/grass7/vector/v.area.weigh/v.area.weigh.html
===================================================================
--- grass-addons/grass7/vector/v.area.weigh/v.area.weigh.html	2017-06-19 13:29:59 UTC (rev 71191)
+++ grass-addons/grass7/vector/v.area.weigh/v.area.weigh.html	2017-06-20 07:09:27 UTC (rev 71192)
@@ -39,7 +39,7 @@
 <em>
 <a href="v.surf.mass.html">v.surf.mass</a>,
 <a href="v.to.rast.html">v.to.rast</a>, 
-<a href="r.statistics2.html">r.statistics2</a>
+<a href="r.stats.zonal.html">r.stats.zonal</a>
 </em>
 
 <h2>AUTHOR</h2>

Modified: grass-addons/grass7/vector/v.area.weigh/v.area.weigh.py
===================================================================
--- grass-addons/grass7/vector/v.area.weigh/v.area.weigh.py	2017-06-19 13:29:59 UTC (rev 71191)
+++ grass-addons/grass7/vector/v.area.weigh/v.area.weigh.py	2017-06-20 07:09:27 UTC (rev 71192)
@@ -108,7 +108,7 @@
     # zonal statistics
     rastertmp3 = "%s_%s_3" % (vector_basename, tmpname)
     try:
-        grass.run_command('r.statistics2', base=rastertmp1, cover=weight,
+        grass.run_command('r.stats.zonal', base=rastertmp1, cover=weight,
                           method='sum', output=rastertmp3, quiet=True)
     except CalledModuleError:
         grass.fatal(_("An error occurred while calculating zonal statistics"))



More information about the grass-commit mailing list