Hello Ricardo
Thanks for your feedback but the problem is that mapset cannot be used as
input.
Because I got this error:
p=grass.mlist_grouped ('rast', pattern=pattern,
mapset='PERMANENT')
TypeError: mlist_grouped() got an unexpected keyword
argument 'mapset'.
If I avoid using mapset I get a
Hi Jenny
Because I got this error:
p=grass.mlist_grouped ('rast', pattern=pattern,
mapset='PERMANENT')
This command runs fine on my system (by replacing 'pattern' with a
valid pattern string'). Maybe it is a version problem? I'm running
GRASS 6.4.0 on Ubuntu 10.10, coming from the
Hi Jenny
Long story short: use your command like this (note the asterisk on the
'pattern' variable):
# python code
p=grass.mlist_grouped ('rast', pattern='output*', mapset='Mapping')
I am using the Ipython shell to script grass. It has a cool feature,
that if you type the name of a function