[GRASS-SVN] r57250 - grass-addons/grass7/vector/v.surf.mass
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 22 13:20:48 PDT 2013
Author: mmetz
Date: 2013-07-22 13:20:48 -0700 (Mon, 22 Jul 2013)
New Revision: 57250
Modified:
grass-addons/grass7/vector/v.surf.mass/v.surf.mass.html
Log:
v.surf.mass: update manual
Modified: grass-addons/grass7/vector/v.surf.mass/v.surf.mass.html
===================================================================
--- grass-addons/grass7/vector/v.surf.mass/v.surf.mass.html 2013-07-22 19:39:11 UTC (rev 57249)
+++ grass-addons/grass7/vector/v.surf.mass/v.surf.mass.html 2013-07-22 20:20:48 UTC (rev 57250)
@@ -16,8 +16,8 @@
<h2>EXAMPLE</h2>
-<h3>Pycnophylactic interpolation of Voronoi triangles using annual precipitation in the
-North Carolina sample data</h3>
+<h3>Pycnophylactic interpolation of Voronoi triangles using annual
+precipitation in the North Carolina sample data</h3>
(see below for screenshots of the results)
@@ -31,7 +31,9 @@
# List of attributes for the vector precip_annual
v.info -c precip_annual
-# v.surf.mass converts attributes to density, thus:
+# v.surf.mass converts attributes to density, but rainfall is
+# typically measured in mm which is the same for all cells in the
+# same input area, thus:
# new column for area size and adjusted precipitation
v.db.addcolumn map=precip_annual \
column="area double precision, prec_adj double precision"
@@ -49,18 +51,12 @@
v.db.update map=precip_annual column=prec_adj \
qcolumn="annual * area / 25000000"
-# set North Carolina state as MASK for nicer raster output
-r.mapcalc "MASK = if(isnull(elev_state_500m), null(), 1)"
-
# mass-preserving area interpolation
v.surf.mass input=precip_annual output=precip_annual_pycno column=prec_adj iterations=200
-# rasterize Voronoi digram for comparison
+# rasterize Voronoi diagram for comparison
v.to.rast precip_annual out=precip_annual_voronoi type=area use=attr attrcolumn=annual
-# remove MASK
-r.mask -r
-
# verify results
d.mon wx0
d.rast.leg precip_annual_voronoi
More information about the grass-commit
mailing list