[GRASS-user] Looping r.sun.hourly with Python script fails

umberto.minora umberto.minora at unimi.it
Wed Apr 1 02:46:41 PDT 2015


I tried replacing "r.sun.hourly" with "r.sun_hourly" but I receive another
error now:

Traceback (most recent call last):
  File "D:\UMBE\PhD\Nepal\khumbu_article\shadow\r.sun.hourly
\prova_r.sun.hourly.py", line 8, in <module>
    r.sun_hourly(flags="b",elevation=dem,aspect=aspect,slope
=slope,start_time="0",end_time="24",day="1",year="2014",beam
_rad_basename="prova_beam01")
  File "C:\OSGeo4W\apps\grass\grass-7.0.0\etc\python\grass\p
ygrass\modules\shortcuts.py", line 46, in __getattr__
    return self.cls('%s.%s' % (self.prefix,
name.replace('_', '.')))
  File "C:\OSGeo4W\apps\grass\grass-7.0.0\etc\python\grass\p
ygrass\modules\interface\module.py", line 512, in __init__
    self.params_list = [Parameter(p) for p in
tree.findall("parameter")]
  File "C:\OSGeo4W\apps\grass\grass-7.0.0\etc\python\grass\p
ygrass\modules\interface\parameter.py", line 150, in
__init__
    self.values = [self.type(i) for i in diz['values']]
ValueError: invalid literal for int() with base 10: '1-'



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Looping-r-sun-hourly-with-Python-script-fails-tp5196404p5196414.html
Sent from the Grass - Users mailing list archive at Nabble.com.


More information about the grass-user mailing list