[GRASS-SVN] r33975 - grass-addons/raster/r.sun_horizon/r.sun2

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 22 09:38:04 EDT 2008


Author: neteler
Date: 2008-10-22 09:38:04 -0400 (Wed, 22 Oct 2008)
New Revision: 33975

Modified:
   grass-addons/raster/r.sun_horizon/r.sun2/description.html
Log:
work around malloc error

Modified: grass-addons/raster/r.sun_horizon/r.sun2/description.html
===================================================================
--- grass-addons/raster/r.sun_horizon/r.sun2/description.html	2008-10-22 12:25:37 UTC (rev 33974)
+++ grass-addons/raster/r.sun_horizon/r.sun2/description.html	2008-10-22 13:38:04 UTC (rev 33975)
@@ -182,12 +182,21 @@
 (incidout). Areas with zero values are shadowed. The <em>-s</em> flag
 has to be used.
 
+<h3>Large maps and out of memory problems</h3>
+
+In case of out of memory error (<tt>ERROR: G_malloc: out of memory</tt>), the
+<em>numpartitions</em> parameter can be used to run a segmented calculation
+which consumes less memory during the computations.
+
 <h3>Example</h3>
 
 Spearfish example (without considering cast shadows):
 <div class="code"><pre>
 g.region rast=elevation.dem -p
+
+# calculate local horizons
 r.horizon elevation.dem step=30 e_buff=20 horizon=horangle dist=0.7 maxdistance=4000
+# calculate global radiation for day 180 at 14:00hs
 r.sun2 -s elevation.dem horizon=horangle horizonstep=30 aspin=aspect slopein=slope glob_rad=global_rad day=180 time=14
 </pre></div>
 



More information about the grass-commit mailing list