[GRASS-SVN] r54549 - grass/trunk/raster/r.fill.dir

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 6 05:53:11 PST 2013


Author: martinl
Date: 2013-01-06 05:53:11 -0800 (Sun, 06 Jan 2013)
New Revision: 54549

Modified:
   grass/trunk/raster/r.fill.dir/main.c
   grass/trunk/raster/r.fill.dir/r.fill.dir.html
Log:
r.fill.dir: sync parameters with other modules
            elevation -> input
            depressionless -> output
            direction -> outdir
            type -> format


Modified: grass/trunk/raster/r.fill.dir/main.c
===================================================================
--- grass/trunk/raster/r.fill.dir/main.c	2013-01-06 13:47:24 UTC (rev 54548)
+++ grass/trunk/raster/r.fill.dir/main.c	2013-01-06 13:53:11 UTC (rev 54549)
@@ -90,13 +90,13 @@
 	  "flow direction map from a given elevation raster map.");
     
     opt1 = G_define_standard_option(G_OPT_R_ELEV);
+    opt1->key = "input";
     
     opt2 = G_define_standard_option(G_OPT_R_OUTPUT);
-    opt2->key = "depressionless";
     opt2->description = _("Name for output depressionless elevation raster map");
     
     opt4 = G_define_standard_option(G_OPT_R_OUTPUT);
-    opt4->key = "direction";
+    opt4->key = "outdir";
     opt4->description = _("Name for output flow direction map for depressionless elevation raster map");
 
     opt5 = G_define_standard_option(G_OPT_R_OUTPUT);
@@ -105,7 +105,7 @@
     opt5->description = _("Name for output raster map of problem areas");
 
     opt3 = G_define_option();
-    opt3->key = "type";
+    opt3->key = "format";
     opt3->type = TYPE_STRING;
     opt3->required = NO;
     opt3->description =

Modified: grass/trunk/raster/r.fill.dir/r.fill.dir.html
===================================================================
--- grass/trunk/raster/r.fill.dir/r.fill.dir.html	2013-01-06 13:47:24 UTC (rev 54548)
+++ grass/trunk/raster/r.fill.dir/r.fill.dir.html	2013-01-06 13:53:11 UTC (rev 54549)
@@ -5,7 +5,7 @@
 
 <h2>NOTES</h2>
 
-The <b>type</b> parameter is the type of format at which the user wishes to create
+The <b>format</b> parameter is the type of format at which the user wishes to create
 the flow direction map. The <i>agnps</i> format gives category values from
 1-8, with 1 facing north and increasing values in the clockwise direction.
 The <i>answers</i> format gives category values from 0-360 degrees, with 0
@@ -65,7 +65,7 @@
 <h2>EXAMPLE</h2>
 
 <div class="code"><pre>
-r.fill.dir input=ansi.elev elevation=ansi.fill.elev direction=ansi.asp
+r.fill.dir input=ansi.elev output=ansi.fill.elev outdir=ansi.asp
 </pre></div>
 
 Will create a depressionless (sinkless) elevation



More information about the grass-commit mailing list