[GRASS-SVN] r71028 - grass-addons/grass7/raster/r.vect.stats

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 5 06:17:31 PDT 2017


Author: martinl
Date: 2017-05-05 06:17:31 -0700 (Fri, 05 May 2017)
New Revision: 71028

Added:
   grass-addons/grass7/raster/r.vect.stats/r_to_vect_schools_count.png
   grass-addons/grass7/raster/r.vect.stats/r_to_vect_schools_sum.png
Modified:
   grass-addons/grass7/raster/r.vect.stats/r.vect.stats.html
Log:
r.vect.stats: simple example introduced

Modified: grass-addons/grass7/raster/r.vect.stats/r.vect.stats.html
===================================================================
--- grass-addons/grass7/raster/r.vect.stats/r.vect.stats.html	2017-05-05 12:32:22 UTC (rev 71027)
+++ grass-addons/grass7/raster/r.vect.stats/r.vect.stats.html	2017-05-05 13:17:31 UTC (rev 71028)
@@ -9,14 +9,38 @@
 
 <h2>EXAMPLES</h2>
 
+<!--
+
+TODO: needs to be finished
+
 Calculate for current region the beam irradiance (direct radiation)
 for DOY 355 in 2014 from 8am to 3pm:
 
 <div class="code"><pre>
 g.region vect=elev_lid792_bepts res=10
 </pre></div>
+-->
 
+Calculate number of schools in grid of spatial resolution 1km:
 
+<div class="code"><pre>
+g.region res=1000 vector=schools_wake
+r.vect.stats input=schools_wake output=schools_count    
+</pre></div>
+
+Calculate sum of atribute column CAPACITYTO:
+
+<div class="code"><pre>
+r.vect.stats input=schools_wake output=schools_capacity_sum column=CAPACITYTO method=sum
+</pre></div>
+
+<center>
+  <img src="r_to_vect_schools_count.png" border="0" alt="Number of schools in grid of spatial resolution 1km">
+  <img src="r_to_vect_schools_sum.png" border="0" alt="Sum of atribute column CAPACITYTO in grid of spatial resolution 1km"><br>
+  <em>Figure: Number of schools (left part) and sum of CAPACITYTO attribute column (right part) in grid of spatial resolution 1km.</em>
+</center> 
+
+
 <h2>SEE ALSO</h2>
 
 <em>

Added: grass-addons/grass7/raster/r.vect.stats/r_to_vect_schools_count.png
===================================================================
(Binary files differ)


Property changes on: grass-addons/grass7/raster/r.vect.stats/r_to_vect_schools_count.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: grass-addons/grass7/raster/r.vect.stats/r_to_vect_schools_sum.png
===================================================================
(Binary files differ)


Property changes on: grass-addons/grass7/raster/r.vect.stats/r_to_vect_schools_sum.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream



More information about the grass-commit mailing list