[GRASS-SVN] r73772 - grass-addons/grass7/raster/r.area

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 5 20:25:01 PST 2018


Author: annakrat
Date: 2018-12-05 20:25:01 -0800 (Wed, 05 Dec 2018)
New Revision: 73772

Modified:
   grass-addons/grass7/raster/r.area/main.c
   grass-addons/grass7/raster/r.area/r.area.html
Log:
r.area: improve description

Modified: grass-addons/grass7/raster/r.area/main.c
===================================================================
--- grass-addons/grass7/raster/r.area/main.c	2018-12-06 03:58:45 UTC (rev 73771)
+++ grass-addons/grass7/raster/r.area/main.c	2018-12-06 04:25:01 UTC (rev 73772)
@@ -50,25 +50,25 @@
     G_add_keyword(_("statistics"));
     G_add_keyword(_("area"));
     module->description =
-        _("Calculates area of clumped areas and remove areas smaller than given threshold.");
+        _("Calculates area of clumped areas and remove areas smaller or greater than given threshold.");
 
     input = G_define_standard_option(G_OPT_R_INPUT);
     input->description = _("Name of cell category map, e.g., maps created with r.clump");
 
     output = G_define_standard_option(G_OPT_R_OUTPUT);
-    output->description = _("Map with area size (in cells)");
+    output->description = _("Name of output raster with categories representing area size (in cells)");
 
     lesser = G_define_option();        /* input stream mask file - optional */
     lesser->key = "lesser";
     lesser->type = TYPE_INTEGER;
     lesser->answer = "0";
-    lesser->description = _("Remove areas lower than (0 for none):");
+    lesser->description = _("Remove areas with number of cells lower than given value (0 for none):");
 
     greater = G_define_option();        /* input stream mask file - optional */
     greater->key = "greater";
     greater->type = TYPE_INTEGER;
     greater->answer = "-1";
-    greater->description = _("Remove areas greater than (-1 for none):");
+    greater->description = _("Remove areas with number of cells greater than given value (-1 for none):");
 
     flag_binary = G_define_flag();
     flag_binary->key = 'b';

Modified: grass-addons/grass7/raster/r.area/r.area.html
===================================================================
--- grass-addons/grass7/raster/r.area/r.area.html	2018-12-06 03:58:45 UTC (rev 73771)
+++ grass-addons/grass7/raster/r.area/r.area.html	2018-12-06 04:25:01 UTC (rev 73772)
@@ -1,17 +1,13 @@
-<h2>OPTIONS</h2>
-<dl>
-<dt><b>input</b></dt>
-<dd>Name of input created with r.clump or another cell category map.</dd>
-<dt><b>treshold</b></dt>
-<dd>Remove areas smaller than treshold, set null for removing areas</dd>
-<dt><b>binary</b></dt>
-<dd>Output map has only 0 and 1 values. If treshold is applied small areas are emoved and replaced by 0</dd>
-<dt><b>output</b></dt>
-<dd>Original categories replaced with number of cells for each category. If areas belonging to category are not continuous every area belonging to the same category has the same area value.</dd>
-</dl>
 <h2>DESCRIPTION</h2>
-<p>module can be used to remove, areas smaller than treshold, reclass according areas (similar to r.reclass area, but work in cells, not hectares and allow create more classes)</p>
+<p>Module r.area reclassifies raster areas (created typically with <a href="r.clump.html">r.clump</a>)
+to values representing their size (in cells).
+Additionally, it can be used to remove areas smaller or greater than a treshold.
+</p>
 
+<h2>NOTE</h2>
+<p>If areas belonging to a certain category are not continuous
+every area belonging to the same category has the same area value.
+	
 <h2>SEE ALSO</h2>
 <em>
 <a href="r.clump.html">r.clump</a>,



More information about the grass-commit mailing list