Browse Source

allow alt and az to be floats (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@36863 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 16 years ago
parent
commit
04ed3de814
1 changed files with 3 additions and 2 deletions
  1. 3 2
      scripts/r.shaded.relief/r.shaded.relief.py

+ 3 - 2
scripts/r.shaded.relief/r.shaded.relief.py

@@ -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 @@ def main():
 	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.")