[GRASS-SVN] r55238 - grass-addons/grass6/raster/r.cog

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 26 21:43:18 PST 2013


Author: hamish
Date: 2013-02-26 21:43:18 -0800 (Tue, 26 Feb 2013)
New Revision: 55238

Modified:
   grass-addons/grass6/raster/r.cog/r.cog
Log:
+debug comment


Modified: grass-addons/grass6/raster/r.cog/r.cog
===================================================================
--- grass-addons/grass6/raster/r.cog/r.cog	2013-02-27 05:40:24 UTC (rev 55237)
+++ grass-addons/grass6/raster/r.cog/r.cog	2013-02-27 05:43:18 UTC (rev 55238)
@@ -198,8 +198,13 @@
 # maybe use length along az not simply avg cell res() dist?
 GRASS_VERBOSE=0 \
   r.mapcalc "$TMP_MAP.dz = nsres() * tan($TMP_MAP.slope)"
- 
+
+
+###  the problem here is that slope is always positive, so the dz's
+###   are cumulative instead of cancelling each other out..
+
 DZ=`r.univar -g map="$TMP_MAP.dz" | grep '^mean=' | cut -f2 -d'='`
+#DZ=`r.univar -g map="$TMP_MAP.dz" | grep '^sum=' | cut -f2 -d'='`
 
 eval `g.region -g | grep res`
 RES="$nsres"



More information about the grass-commit mailing list