[GRASS-SVN] r59987 - grass/trunk/scripts/r.mask

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 30 07:43:55 PDT 2014


Author: neteler
Date: 2014-04-30 07:43:55 -0700 (Wed, 30 Apr 2014)
New Revision: 59987

Modified:
   grass/trunk/scripts/r.mask/r.mask.html
Log:
r.mask manual: fix examples

Modified: grass/trunk/scripts/r.mask/r.mask.html
===================================================================
--- grass/trunk/scripts/r.mask/r.mask.html	2014-04-30 14:29:34 UTC (rev 59986)
+++ grass/trunk/scripts/r.mask/r.mask.html	2014-04-30 14:43:55 UTC (rev 59987)
@@ -56,27 +56,33 @@
 
 <h2>EXAMPLES</h2>
 
-Creating a raster mask, for showing only elevations of lakes:
+The examples are based on the North Carolina sample dataset.
+<p>
+Create a raster mask, for contraining the calculation of
+univariate statistics of the elevation values for "lakes":
 <div class="code"><pre>
-r.mask input=lakes
-# statistics only for elevation pixels in the lakes:
+# set computation region to lakes raster map
+g.region rast=lakes -p
+# use lakes as MASK
+r.mask raster=lakes
+# get statistics for elevation pixels of lakes:
 r.univar elevation
 </pre></div>
 
-Removing a raster mask with the -r flag:
+Remove the raster mask ("MASK" map) with the -r flag:
 <div class="code"><pre>
 r.mask -r
 </pre></div>
 
-Creating a mask from categories 3 through 6 in the North Carolina
+Creating a mask from selected categories in the North Carolina
 'geology_30m' raster map:
 <div class="code"><pre>
 g.region rast=geology_30m -p
 r.category geology_30m
 d.mon wx0
 d.rast geology_30m
-r.mask input=geology_30m maskcats="217 thru 720"
-d.erase
+r.mask raster=geology_30m maskcats="217 thru 720"
+d.mon wx0
 d.rast geology_30m
 </pre></div>
 



More information about the grass-commit mailing list