Hi,

2013/1/10 Brian Sanjeewa Rupasinghe <[email protected]>:
> grass.run_command ("r.series", input="`g.mlist pattern = 'viewshed*' sep =,
> `", output = 'xx', method = 'sum')

you cannot use bash-like constructions in Python script. Try

maps = grass.mlist_strings(type = 'rast', pattern = 'viewshed*')
grass.run_command ("r.series", input = maps, output = 'xx', method = 'sum')

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to