[GRASS-SVN] r51435 - grass/branches/releasebranch_6_4/raster/r.sun2

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 14 03:23:55 EDT 2012


Author: neteler
Date: 2012-04-14 00:23:55 -0700 (Sat, 14 Apr 2012)
New Revision: 51435

Modified:
   grass/branches/releasebranch_6_4/raster/r.sun2/description.html
Log:
+ NC example

Modified: grass/branches/releasebranch_6_4/raster/r.sun2/description.html
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.sun2/description.html	2012-04-14 07:05:51 UTC (rev 51434)
+++ grass/branches/releasebranch_6_4/raster/r.sun2/description.html	2012-04-14 07:23:55 UTC (rev 51435)
@@ -249,9 +249,9 @@
 memory_bytes = rows*cols*((IR*4+horizonsteps)/numpartitions  + OR*4)
 </pre></div>
 
-<!--
-<h3>Example</h3>
+<h2>EXAMPLE</h2>
 
+<!-- still troubles with r.horizon
 Spearfish example (considering also cast shadows):
 <div class="code"><pre>
 g.region rast=elevation.dem -p
@@ -267,8 +267,29 @@
 r.sun -s elevation.dem horizon=horangle horizonstep=30 aspin=aspect.dem \
           slopein=slope.dem glob_rad=global_rad day=180 time=14
 </pre></div>
+<p>
 -->
 
+Calculation of the integrated daily irradiation for a region in North-Carolina
+for a given day of the year at 30m resolution. Here day 172 (i.e., 21 June
+in non-leap years):
+
+<div class="code"><pre>
+g.region rast=elev_ned_30m -p
+
+# consider cast shadows (-s)
+r.sun -s elev_ned_30m lin=2.5 alb=0.2 day=172 \
+      beam_rad=b172 diff_rad=d172 \
+      refl_rad=r172 insol_time=it172
+
+d.mon x0
+# show irradiation raster map [Wh.m-2.day-1]
+d.rast.leg b172
+# show insolation time raster map [h]
+d.rast.leg it172
+</pre></div>
+
+
 <h2>SEE ALSO</h2>
 
 <em>



More information about the grass-commit mailing list