[GRASS-SVN] r36661 - grass/branches/releasebranch_6_4/raster/simwe/r.sim.water

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 9 06:22:06 EDT 2009


Author: neteler
Date: 2009-04-09 06:22:06 -0400 (Thu, 09 Apr 2009)
New Revision: 36661

Added:
   grass/branches/releasebranch_6_4/raster/simwe/r.sim.water/r_sim_water.png
Modified:
   grass/branches/releasebranch_6_4/raster/simwe/r.sim.water/description.html
Log:
example added

Modified: grass/branches/releasebranch_6_4/raster/simwe/r.sim.water/description.html
===================================================================
--- grass/branches/releasebranch_6_4/raster/simwe/r.sim.water/description.html	2009-04-09 10:21:56 UTC (rev 36660)
+++ grass/branches/releasebranch_6_4/raster/simwe/r.sim.water/description.html	2009-04-09 10:22:06 UTC (rev 36661)
@@ -48,7 +48,7 @@
 through the structure (the values will be 0-1).
 
 <p>
-Output includes a water depth raster map <i>depth</i> in [m], anda water discharge 
+Output includes a water depth raster map <i>depth</i> in [m], and a water discharge 
 raster map <i>disch</i> in [m3/s]. Error of the numerical solution can be analyzed using 
 the <i>err</i> raster map (the resulting water depth is an average, and err is its RMSE).
 The output vector points map <i>outwalk</i> can be used to analyze and visualize 
@@ -122,6 +122,40 @@
 are useful both for everyday exploratory work using a desktop computer and
 for large, cutting-edge applications using high performance computing.
 
+<h2>EXAMPLE</h2>
+
+Spearfish region:
+
+<div class="code"><pre>
+g.region rast=elevation.10m -p
+r.slope.aspect elevation=elevation.10m elev_dx=elev_dx elev_dy=elev_dy
+
+# synthetic maps
+r.mapcalc "rain    = if(elevation.10m, 5.0, null())"
+r.mapcalc "manning = if(elevation.10m, 0.05, null())"
+r.mapcalc "infilt  = if(elevation.10m, 0.0, null())"
+
+# simulate
+r.sim.water elevin=elevation.10m elev_dxin=elev_dx elev_dyin=elev_dy \
+            rain=rain manin=manning infil=infilt \
+            nwalk=5000000 depth=depth
+
+# visualize
+r.shaded.relief elevation.10m
+d.mon x0
+d.font Vera
+d.rast.leg depth pos=85
+d.his i=elevation.10m.shade h=depth
+d.barscale at=4,92 bcolor=none tcolor=black -t
+</pre></div>
+
+<p>
+<center>
+<img src="r_sim_water.png" alt="r.sim.water generated depth map"><br>
+<i>Water depth map in the Spearfish (SD) area</i>
+</center>
+
+
 <h2>ERROR MESSAGES</h2>
 
 If the module fails with

Added: grass/branches/releasebranch_6_4/raster/simwe/r.sim.water/r_sim_water.png
===================================================================
(Binary files differ)


Property changes on: grass/branches/releasebranch_6_4/raster/simwe/r.sim.water/r_sim_water.png
___________________________________________________________________
Name: svn:mime-type
   + image/png



More information about the grass-commit mailing list