[GRASS-SVN] r36863 - grass/trunk/scripts/r.shaded.relief
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Apr 22 07:06:54 EDT 2009
Author: hamish
Date: 2009-04-22 07:06:54 -0400 (Wed, 22 Apr 2009)
New Revision: 36863
Modified:
grass/trunk/scripts/r.shaded.relief/r.shaded.relief.py
Log:
allow alt and az to be floats (merge from devbr6)
Modified: grass/trunk/scripts/r.shaded.relief/r.shaded.relief.py
===================================================================
--- grass/trunk/scripts/r.shaded.relief/r.shaded.relief.py 2009-04-22 11:04:27 UTC (rev 36862)
+++ grass/trunk/scripts/r.shaded.relief/r.shaded.relief.py 2009-04-22 11:06:54 UTC (rev 36863)
@@ -68,7 +68,7 @@
#% end
#% option
#% key: altitude
-#% type: integer
+#% type: double
#% description: Altitude of the sun in degrees above the horizon
#% required : no
#% options : 0-90
@@ -76,7 +76,7 @@
#% end
#% option
#% key: azimuth
-#% type: integer
+#% type: double
#% description: Azimuth of the sun in degrees to the east of north
#% required : no
#% options : 0-360
@@ -148,6 +148,7 @@
scale *= 6076.12 * 60
#correct azimuth to East (GRASS convention):
+ # this seems to be backwards, but in fact it works so leave it.
az = float(azimuth) - 90
grass.message("Calculating shading, please stand by.")
More information about the grass-commit
mailing list