[GRASS-SVN] r35814 - grass/trunk/scripts/r.shaded.relief

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 8 11:42:22 EST 2009


Author: glynn
Date: 2009-02-08 11:42:21 -0500 (Sun, 08 Feb 2009)
New Revision: 35814

Modified:
   grass/trunk/scripts/r.shaded.relief/r.shaded.relief.py
Log:
Remove extraneous comma from r.mapcalc expression


Modified: grass/trunk/scripts/r.shaded.relief/r.shaded.relief.py
===================================================================
--- grass/trunk/scripts/r.shaded.relief/r.shaded.relief.py	2009-02-08 16:01:43 UTC (rev 35813)
+++ grass/trunk/scripts/r.shaded.relief/r.shaded.relief.py	2009-02-08 16:42:21 UTC (rev 35814)
@@ -162,7 +162,7 @@
 	a=round(atan(x,y)), \
 	a=if(isnull(a),1,a), \
 	aspect=if(x!=0||y!=0,if(a,a,360.)), \
-	cang = sin($alt)*sin(slope) + cos($alt)*cos(slope) * cos($az-aspect), \
+	cang = sin($alt)*sin(slope) + cos($alt)*cos(slope) * cos($az-aspect) \
 	)
 	$elev_out = if(isnull(cang), null(), 100.*cang)''')
     expr = t.substitute(alt = alt, az = az, elev = elev, elev_out = elev_out, scale = scale, zmult = zmult)



More information about the grass-commit mailing list