[GRASS-SVN] r54547 - grass/trunk/raster/r.fill.dir
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 6 05:23:56 PST 2013
Author: martinl
Date: 2013-01-06 05:23:56 -0800 (Sun, 06 Jan 2013)
New Revision: 54547
Modified:
grass/trunk/raster/r.fill.dir/main.c
grass/trunk/raster/r.fill.dir/r.fill.dir.html
grass/trunk/raster/r.fill.dir/resolve.c
grass/trunk/raster/r.fill.dir/wtrshed.c
Log:
r.fill.dir: be less verbose
update manual
Modified: grass/trunk/raster/r.fill.dir/main.c
===================================================================
--- grass/trunk/raster/r.fill.dir/main.c 2013-01-06 12:34:36 UTC (rev 54546)
+++ grass/trunk/raster/r.fill.dir/main.c 2013-01-06 13:23:56 UTC (rev 54547)
@@ -244,7 +244,9 @@
close(fm);
}
+ G_important_message(_("Writing output raster maps..."));
for (i = 0; i < nrows; i++) {
+ G_percent(i, nrows, 5);
read(fe, in_buf, bnd.sz);
put_row(new_id, in_buf);
@@ -254,9 +256,9 @@
out_buf[j] = dir_type(type, out_buf[j]);
Rast_put_row(dir_id, out_buf, CELL_TYPE);
-
}
-
+ G_percent(1, 1, 1);
+
Rast_close(new_id);
close(fe);
Modified: grass/trunk/raster/r.fill.dir/r.fill.dir.html
===================================================================
--- grass/trunk/raster/r.fill.dir/r.fill.dir.html 2013-01-06 12:34:36 UTC (rev 54546)
+++ grass/trunk/raster/r.fill.dir/r.fill.dir.html 2013-01-06 13:23:56 UTC (rev 54547)
@@ -58,7 +58,7 @@
sub-area within the full map layer. Also, <em>r.fill.dir</em> is
sensitive to any <em>mask</em> in effect.
<p>
-In some cases it may be necessary to run r.fill.dir repeatedly (using output
+In some cases it may be necessary to run <em>r.fill.dir</em> repeatedly (using output
from one run as input to the next run) before all of problem areas are
filled.
@@ -68,26 +68,33 @@
r.fill.dir input=ansi.elev elevation=ansi.fill.elev direction=ansi.asp
</pre></div>
-<p>will create a depressionless (sinkless) elevation map ansi.fill.elev and a flow
-direction map ansi.asp for the type "grass".
+Will create a depressionless (sinkless) elevation
+map <i>ansi.fill.elev</i> and a flow direction map <i>ansi.asp</i> for the
+type "grass".
+<h2>REFERENCES</h2>
+
+<ul>
+<li>Beasley, D.B. and L.F. Huggins. 1982. ANSWERS (areal nonpoint source watershed environmental response simulation): User's manual. U.S. EPA-905/9-82-001, Chicago, IL, 54 p.
+<li>Jenson, S.K., and J.O. Domingue. 1988. Extracting topographic structure from
+digital elevation model data for geographic information system analysis. Photogram. Engr. and Remote Sens. 54: 1593-1600.
+<li>Young, R.A., C.A. Onstad, D.D. Bosch and W.P. Anderson. 1985. Agricultural nonpoint surface pollution models (AGNPS) I and II model documentation. St. Paul: Minn. Pollution control Agency and Washington D.C., USDA-Agricultural Research
+Service.
+</ul>
+
<h2>SEE ALSO</h2>
<em>
<a href="r.fillnulls.html">r.fillnulls</a>,
-<a href="r.slope.aspect.html">r.slope.aspect</a></em>
+<a href="r.slope.aspect.html">r.slope.aspect</a>
+</em>
-<p>Beasley, D.B. and L.F. Huggins. 1982. ANSWERS (areal nonpoint source watershed environmental response simulation): User's manual. U.S. EPA-905/9-82-001, Chicago, IL, 54 p.
-<p>Jenson, S.K., and J.O. Domingue. 1988. Extracting topographic structure from
-digital elevation model data for geographic information system analysis. Photogram. Engr. and Remote Sens. 54: 1593-1600.
-<p>Young, R.A., C.A. Onstad, D.D. Bosch and W.P. Anderson. 1985. Agricultural nonpoint surface pollution models (AGNPS) I and II model documentation. St. Paul: Minn. Pollution control Agency and Washington D.C., USDA-Agricultural Research
-Service.
-<p>
-<h2>AUTHOR</h2>
+<h2>AUTHORS</h2>
Fortran version:
Raghavan Srinivasan, Agricultural Engineering Department, Purdue
University<br>
Rewrite to C with enhancements:
Roger S. Miller
-<p><i>Last changed: $Date$</i>
+<p>
+<i>Last changed: $Date$</i>
Modified: grass/trunk/raster/r.fill.dir/resolve.c
===================================================================
--- grass/trunk/raster/r.fill.dir/resolve.c 2013-01-06 12:34:36 UTC (rev 54546)
+++ grass/trunk/raster/r.fill.dir/resolve.c 2013-01-06 13:23:56 UTC (rev 54547)
@@ -133,7 +133,7 @@
pass += 1;
activity = 0;
- G_message(_("Downward pass %d"), pass);
+ G_verbose_message(_("Downward pass %d"), pass);
lseek(fd, 0, SEEK_SET);
advance_band3(fd, bnd);
@@ -170,7 +170,7 @@
}
activity = 0;
- G_message(_("Upward pass %d"), pass);
+ G_verbose_message(_("Upward pass %d"), pass);
lseek(fd, (off_t) (nl - 1) * bnd->sz, SEEK_SET);
retreat_band3(fd, bnd);
Modified: grass/trunk/raster/r.fill.dir/wtrshed.c
===================================================================
--- grass/trunk/raster/r.fill.dir/wtrshed.c 2013-01-06 12:34:36 UTC (rev 54546)
+++ grass/trunk/raster/r.fill.dir/wtrshed.c 2013-01-06 13:23:56 UTC (rev 54547)
@@ -92,7 +92,7 @@
/* complete a downward pass */
do {
- G_message(_("wtrshed pass %d"), ++pass);
+ G_verbose_message(_("Watershed pass %d"), ++pass);
repeat = 0;
/* fill the buffer */
More information about the grass-commit
mailing list