[GRASS-user] python commands on grass.
Martin Landa
landa.martin at gmail.com
Tue May 5 14:57:57 EDT 2009
Hi,
2009/5/5 Milton Cezar Ribeiro <miltinho.astronauta at gmail.com>:
> is there a way of I know the commands available on python grass library?
grass.py is located in
lib/python
e.g.
https://svn.osgeo.org/grass/grass/trunk/lib/python/
It's best documentation :-)
> Meanwhile, I can run g.list with the command bellow, but I can't
> deal with the name of each of my raster map. In fact I receive the
> same output as in gis.m console, but I would like only receive a list of
> maps as output.
>
> rasterfiles = grass.read_command('g.list',type='rast')
use
grass.mlist_grouped(type = 'rast')
Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
More information about the grass-user
mailing list