[GRASS-dev] pygrass - r.report
Martin Landa
landa.martin at gmail.com
Thu Oct 17 03:34:25 PDT 2013
Hi,
when using pyGRASS, the statement bellow
"""
from grass.pygrass.modules.shortcuts import raster as r
r.report(map = 'r_ndvi', units = 'c,p,h')
"""
produces an error
Traceback (most recent call last):
File "/home/martin/bin/grass/ndvi.py", line 34, in <module>
r.report(map = 'r_ndvi', units = 'c,p,h')
File "/opt/src/grass_trunk/dist.x86_64-unknown-linux-gnu/etc/python/grass/pygrass/modules/interface/module.py",
line 342, in __call__
self.inputs[key].value = val
File "/opt/src/grass_trunk/dist.x86_64-unknown-linux-gnu/etc/python/grass/pygrass/modules/interface/parameter.py",
line 115, in _set_value
(self.name, self.values))
ValueError: The Parameter <units>, must be one of: ['mi', 'me', 'k',
'a', 'h', 'c', 'p']
Is it a bug in pyGRASS or I am wrong? Thanks, Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
More information about the grass-dev
mailing list