浏览代码

Remove extraneous comma from r.mapcalc expression

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35814 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 16 年之前
父节点
当前提交
d31954185a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/r.shaded.relief/r.shaded.relief.py

+ 1 - 1
scripts/r.shaded.relief/r.shaded.relief.py

@@ -162,7 +162,7 @@ def main():
 	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)