[GRASS-SVN] r62831 - in grass/trunk/vector: v.kcv v.mkgrid v.normal v.perturb v.qcount v.random

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 20 01:41:15 PST 2014


Author: neteler
Date: 2014-11-20 01:41:15 -0800 (Thu, 20 Nov 2014)
New Revision: 62831

Added:
   grass/trunk/vector/v.mkgrid/v_mkgrid_ppattern.png
Modified:
   grass/trunk/vector/v.kcv/main.c
   grass/trunk/vector/v.mkgrid/main.c
   grass/trunk/vector/v.mkgrid/v.mkgrid.html
   grass/trunk/vector/v.normal/main.c
   grass/trunk/vector/v.normal/v.normal.html
   grass/trunk/vector/v.perturb/main.c
   grass/trunk/vector/v.qcount/main.c
   grass/trunk/vector/v.qcount/v.qcount.html
   grass/trunk/vector/v.random/main.c
   grass/trunk/vector/v.random/v.random.html
Log:
manual: minor cleanup; v.mkgrid example screenshot added; keyword added

Modified: grass/trunk/vector/v.kcv/main.c
===================================================================
--- grass/trunk/vector/v.kcv/main.c	2014-11-20 07:39:15 UTC (rev 62830)
+++ grass/trunk/vector/v.kcv/main.c	2014-11-20 09:41:15 UTC (rev 62831)
@@ -55,6 +55,7 @@
     G_add_keyword(_("vector"));
     G_add_keyword(_("statistics"));
     G_add_keyword(_("points"));
+    G_add_keyword(_("point pattern"));
     module->description =
 	_("Randomly partition points into test/train sets.");
 

Modified: grass/trunk/vector/v.mkgrid/main.c
===================================================================
--- grass/trunk/vector/v.mkgrid/main.c	2014-11-20 07:39:15 UTC (rev 62830)
+++ grass/trunk/vector/v.mkgrid/main.c	2014-11-20 09:41:15 UTC (rev 62831)
@@ -67,6 +67,8 @@
     module = G_define_module();
     G_add_keyword(_("vector"));
     G_add_keyword(_("geometry"));
+    G_add_keyword(_("grid"));
+    G_add_keyword(_("point pattern"));
     module->description = _("Creates a vector map of a user-defined grid.");
 
     vectname = G_define_standard_option(G_OPT_V_OUTPUT);

Modified: grass/trunk/vector/v.mkgrid/v.mkgrid.html
===================================================================
--- grass/trunk/vector/v.mkgrid/v.mkgrid.html	2014-11-20 07:39:15 UTC (rev 62830)
+++ grass/trunk/vector/v.mkgrid/v.mkgrid.html	2014-11-20 09:41:15 UTC (rev 62831)
@@ -60,7 +60,7 @@
 v.mkgrid map=p2min_grid grid=10,12 position=coor coor=167:52E,47:06S box=0:02,0:02
 </pre></div>
 
-<h3>Creating a point pattern</h3>
+<h3>Creating a simple point pattern</h3>
 
 North Carolina sample dataset example, creating a 1km spaced point grid
 based on the current region extent defined by the "elevation" map:
@@ -70,8 +70,34 @@
 # we use the row/column/resolution information to determine the grid= values:
 v.mkgrid -p map=pointpattern grid=13,15 position=region breaks=1
 </pre></div>
+<p>
 
+<h3>Creating a regular point pattern</h3>
 
+North Carolina sample dataset example, creating a regular spaced point grid
+based on the current region extent defined by the "elevation" map, using
+a two-step approach:
+
+<div class="code"><pre>
+# create first set of points, covering extent of "elevation" raster map
+g.region rast=elevation -p
+v.mkgrid -p map=pointpattern1 grid=13,15 position=region breaks=1
+
+# shift grid by half point distance (map units)
+g.region n=n+500 w=w+500 e=e+500 s=s+500 -p
+
+# create second set of points
+v.mkgrid -p map=pointpattern2 grid=13,15 position=region breaks=1
+
+# merge into final point pattern
+v.patch input=pointpattern1,pointpattern2 output=pointpattern3
+</pre></div>
+
+<center>
+<img src="v_mkgrid_ppattern.png"><br>
+Different point patterns for sampling design
+</center>
+
 <h2>SEE ALSO</h2>
 
 <em>

Added: grass/trunk/vector/v.mkgrid/v_mkgrid_ppattern.png
===================================================================
(Binary files differ)


Property changes on: grass/trunk/vector/v.mkgrid/v_mkgrid_ppattern.png
___________________________________________________________________
Added: svn:mime-type
   + image/png

Modified: grass/trunk/vector/v.normal/main.c
===================================================================
--- grass/trunk/vector/v.normal/main.c	2014-11-20 07:39:15 UTC (rev 62830)
+++ grass/trunk/vector/v.normal/main.c	2014-11-20 09:41:15 UTC (rev 62831)
@@ -72,6 +72,7 @@
     G_add_keyword(_("vector"));
     G_add_keyword(_("statistics"));
     G_add_keyword(_("points"));
+    G_add_keyword(_("point pattern"));
     module->description = _("Tests for normality for vector points.");
 
     parm.input = G_define_standard_option(G_OPT_V_MAP);

Modified: grass/trunk/vector/v.normal/v.normal.html
===================================================================
--- grass/trunk/vector/v.normal/v.normal.html	2014-11-20 07:39:15 UTC (rev 62830)
+++ grass/trunk/vector/v.normal/v.normal.html	2014-11-20 09:41:15 UTC (rev 62831)
@@ -29,25 +29,29 @@
 
 <h2>EXAMPLE</h2>
 
-<!-- do a meaning ful example -->
+<!-- do a meaningful example -->
+Compute the sample skewness and kurtosis, Geary's
+a-statistic and an approximate normal transformation,
+extreme normal deviates, and Royston's W for the
+<em>random</em> vector points:
+
 <div class="code"><pre>
+g.region rast=elevation -p
 v.random random n=200
-v.db.addtable random col="elev double precision"
-v.what.rast random rast=elevation.10m col=elev
-v.normal random tests=1-3,14 col=elev
+v.db.addtable random colum="elev double precision"
+v.what.rast random rast=elevation column=elev
+v.normal random tests=1-3,14 column=elev
 </pre></div>
 
-computes the sample skewness and kurtosis, Geary's
-a-statistic and an approximate normal transformation,
-extreme normal deviates, and Royston's W for the
-<em>random</em> vector points.
-
 <!-- TODO: find references , e.g.
      http://www.itl.nist.gov/div898/handbook/eda/section3/eda35.htm
 -->
 
 <h2>SEE ALSO</h2>
+
+<em>
 <a href="v.univar.html">v.univar</a>
+</em>
 
 <h2>AUTHOR</h2>
 
@@ -56,4 +60,5 @@
 <br>when he was at:
 <a href="https://engineering.purdue.edu/ABE/">Agricultural Engineering</a>
 <a href="http://www.purdue.edu/">Purdue University</a>
+
 <p><i>Last changed: $Date$</i>

Modified: grass/trunk/vector/v.perturb/main.c
===================================================================
--- grass/trunk/vector/v.perturb/main.c	2014-11-20 07:39:15 UTC (rev 62830)
+++ grass/trunk/vector/v.perturb/main.c	2014-11-20 09:41:15 UTC (rev 62831)
@@ -1,10 +1,11 @@
 
 /****************************************************************************
  *
- * MODULE:       v.pertrub
+ * MODULE:       v.perturb
  * AUTHOR(S):    James Darrell McCauley darrell at mccauley-usa.com
  * 	         http://mccauley-usa.com/
- * PURPOSE:      
+ * PURPOSE:      Random location perturbations of vector points
+ *
  * COPYRIGHT:    (C) 1994-2009 by James Darrell McCauley and the GRASS Development Team
  *
  * Modification History:
@@ -62,6 +63,7 @@
     G_add_keyword(_("geometry"));
     G_add_keyword(_("statistics"));
     G_add_keyword(_("random"));
+    G_add_keyword(_("point pattern"));
  
     module->description =
 	_("Random location perturbations of vector points.");

Modified: grass/trunk/vector/v.qcount/main.c
===================================================================
--- grass/trunk/vector/v.qcount/main.c	2014-11-20 07:39:15 UTC (rev 62830)
+++ grass/trunk/vector/v.qcount/main.c	2014-11-20 09:41:15 UTC (rev 62831)
@@ -59,7 +59,8 @@
     module = G_define_module();
     G_add_keyword(_("vector"));
     G_add_keyword(_("statistics"));
-    module->description = _("Indices for quadrat counts of sites lists.");
+    G_add_keyword(_("point pattern"));
+    module->description = _("Indices for quadrat counts of vector point lists.");
 
     parm.input = G_define_standard_option(G_OPT_V_INPUT);
 

Modified: grass/trunk/vector/v.qcount/v.qcount.html
===================================================================
--- grass/trunk/vector/v.qcount/v.qcount.html	2014-11-20 07:39:15 UTC (rev 62830)
+++ grass/trunk/vector/v.qcount/v.qcount.html	2014-11-20 09:41:15 UTC (rev 62831)
@@ -13,60 +13,58 @@
 <em>hypot()</em> in two files: <em>count.c</em> and
 <em>findquads.c</em>.
 
+<!-- TODO: add example -->
+
 <h2>SEE ALSO</h2>
 
 <em><a href="v.random.html">v.random</a></em> 
 
-<p><em>Complete Spatial Randomness and Quadrat Methods</em>  - 
-GRASS Tutorial on <em>v.qcount</em>
-(only available as older file s.qcount-tutorial.ps),
+<h2>REFERENCES</h2>
 
-<p>General references include:
+<ul>
+<li><em>Complete Spatial Randomness and Quadrat Methods</em>  - GRASS 
+Tutorial on <em>v.qcount</em> (only available as older file 
+s.qcount-tutorial.ps)</li>
+</ul>
 
-<br>
-Noel A. C. Cressie.
-<em>Statistics for Spatial Data</em>.
+<p>
+General references include:
+
+<ul>
+<li>Noel A. C. Cressie. <em>Statistics for Spatial Data</em>.
 Wiley Series in Probability and Mathematical Statistics. John Wiley
-& Sons, New York, NY, 1st edition, 1991.
+& Sons, New York, NY, 1st edition, 1991.</li>
+<li>Brian D. Ripley. <em>Spatial Statistics</em>.
+John Wiley \& Sons, New York, NY, 1981.</li>
+</ul>
 
-<br>
-Brian D. Ripley.
-<em>Spatial Statistics</em>.
-John Wiley \& Sons, New York, NY, 1981.
+<p>
+References to the indices include:
 
-<p>References to the indices include:
-<br>
-F. N. David and P. G. Moore.
-Notes on contagious distributions in plant populations.
-<em>Annals of Botany</em>, 18:47-53, 1954.
+<ul>
+<li>F. N. David and P. G. Moore. Notes on contagious distributions in
+plant populations. <em>Annals of Botany</em>, 18:47-53, 1954.</li>
 
-<br>
-J. B. Douglas.  Clustering and aggregation.
-<em>Sankhya B</em>, 37:398-417, 1975.
+<li>J. B. Douglas.  Clustering and aggregation.
+<em>Sankhya B</em>, 37:398-417, 1975.</li>
 
-<br>
-R. A. Fisher, H. G. Thornton, and W. A. Mackenzie.
+<li>R. A. Fisher, H. G. Thornton, and W. A. Mackenzie.
 The accuracy of the plating method of estimating the density of
 bacterial populations.
-<em>Annals of Applied Biology</em>, 9:325-359, 1922.
+<em>Annals of Applied Biology</em>, 9:325-359, 1922.</li>
 
-<br>
+<li>M. Lloyd. Mean crowding.
+<em>Journal of Animal Ecology</em>, 36:1-30, 1967.</li>
 
-M. Lloyd. Mean crowding.
-<em>Journal of Animal Ecology</em>, 36:1-30, 1967.
-
-<br>
-M. Morista.
-Measuring the dispersion and analysis of distribution patterns.
+<li>M. Morista. Measuring the dispersion and analysis of distribution patterns.
 <em>Memoires of the Faculty of Science, Kyushu University, Series E.
-Biology</em>, 2:215-235, 1959.
+Biology</em>, 2:215-235, 1959.</li>
+</ul>
 
 <h2>BUGS</h2>
-<p>Timestamp not working for header part of counts output. (2000-10-28)
-<p>Please send all bug fixes and comments to the author
-or the GRASS development team. <br>
-<a href="http://grass.osgeo.org"><tt>http://grass.osgeo.org</tt></a>.
 
+Timestamp not working for header part of counts output. (2000-10-28)
+
 <h2>AUTHORS</h2>
 
 <a href="http://mccauley-usa.com/">James Darrell McCauley</a>

Modified: grass/trunk/vector/v.random/main.c
===================================================================
--- grass/trunk/vector/v.random/main.c	2014-11-20 07:39:15 UTC (rev 62830)
+++ grass/trunk/vector/v.random/main.c	2014-11-20 09:41:15 UTC (rev 62831)
@@ -97,6 +97,7 @@
     G_add_keyword(_("sampling"));
     G_add_keyword(_("statistics"));
     G_add_keyword(_("random"));
+    G_add_keyword(_("point pattern"));
     module->description = _("Generates random 2D/3D vector points.");
 
     parm.output = G_define_standard_option(G_OPT_V_OUTPUT);

Modified: grass/trunk/vector/v.random/v.random.html
===================================================================
--- grass/trunk/vector/v.random/v.random.html	2014-11-20 07:39:15 UTC (rev 62830)
+++ grass/trunk/vector/v.random/v.random.html	2014-11-20 09:41:15 UTC (rev 62831)
@@ -6,7 +6,7 @@
 <p><em>v.random</em> can generate also 3D vector points or
 write random value to attribute table. Point height range or
 attribute value range is controlled by specifying zmin and zmax values.
-Both z values are included in range (<em>zmin <= z <= zmax</em>).
+Both z values are included in range (<em>zmin <= z <= zmax</em>).
 Generated random attribute value type can be controlled by column
 data type. Use <b>INTEGER</b> column type for integers and 
 <b>DOUBLE PRECISION</b> for floating point numbers. Integer values are
@@ -73,22 +73,15 @@
 
 <h2>SEE ALSO</h2>
 
-UNIX man pages for <em>rand(3)</em> and <em>drand48(3)</em>.
-<p><em>
+<em>
 <a href="g.region.html">g.region</a>,
 <a href="r.random.html">r.random</a>,
 <a href="v.perturb.html">v.perturb</a>,
-<a href="v.sample.html">v.sample</a>
-<a href="v.what.rast.html">v.what.rast</a>
+<a href="v.sample.html">v.sample</a>,
+<a href="v.what.rast.html">v.what.rast</a>,
 <a href="v.what.vect.html">v.what.vect</a>
 </em>
 
-<h2>BUGS</h2>
-
-The RNG used by 
-<em><a href="v.perturb.html">v.perturb</a></em>
-should probably be added to this program.<br>
-
 <h2>AUTHOR</h2>
 
 <a href="http://mccauley-usa.com/">James Darrell McCauley</a>



More information about the grass-commit mailing list