Moritz Lennert wrote:

> If you want to work in a python script, you have to first run 
> read_command(g.mlist),

You can use mlist_grouped(), but it currently only works with glob
patterns, not regexps. Alternatively, you can use list_grouped,
list_pairs or list_strings and manually filter the result. E.g.:

        import grass.script as grass

        maps = [map
                for map in grass.list_strings('rast')
                if map.startswith('rast_') or map.startswith('crast_')]
        maps = ','.join(maps)

        grass.run_command("r.series", input = maps, ...)

-- 
Glynn Clements <[email protected]>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to