[GRASS-dev] pyGRASS i.atcorr problem (invalid literal for int() with base 10: '0, 255')

Yann Chemin ychemin at gmail.com
Wed Jun 19 20:37:15 PDT 2013


I am running into an issue with i.atcorr in pyGRASS:

Atmospheric Correction
MM DD hh.ddd:   3 25 51.06
Center: ( 95.02001 , 23.115005 )
Timestamp:      25 Mar 2011
        >  LE71340442011084PFS00.toar.1
        >  LE71340442011084PFS00.surf.1
Traceback (most recent call last):
  File "./python-pygrass.py", line 188, in <module>
    i.atcorr(input=b, elevation="dem", visibility="vis",
parameters=prm, output=b_out, flags="ra", range=[0,1],
  File "/usr/local/grass-7.0.svn/etc/python/grass/pygrass/modules/shortcuts.py",
line 49, in __getattr__
    return self.cls('%s.%s' % (self.prefix, name.replace('_', '.')))
  File "/usr/local/grass-7.0.svn/etc/python/grass/pygrass/modules/interface/module.py",
line 101, in __init__
    self.params_list = [Parameter(p) for p in tree.findall("parameter")]
  File "/usr/local/grass-7.0.svn/etc/python/grass/pygrass/modules/interface/parameter.py",
line 59, in __init__
    diz['default']) if 'default' in diz else None
ValueError: invalid literal for int() with base 10: '0,255'

I am not requesting for [0,255] so it maybe a default set up in
pyGRASS somewhere... or maybe something changed...

Thanks for any help,


More information about the grass-dev mailing list