[GRASS-user] python commands on grass.

Jamie Adams jaadfoo at gmail.com
Tue May 5 15:07:41 EDT 2009


Try using help() from within the python shell.

python
import grass
help(grass)

-Jamie

On Tue, May 5, 2009 at 11:52 AM, Milton Cezar Ribeiro <
miltinho.astronauta at gmail.com> wrote:

> Dear all,
>
> is there a way of I know the commands available on python grass library?
>
> Checking the codes available at
> https://svn.osgeo.org/grass/grass/trunk/script
> (thanks Martin) I saw the following commands:
>
> grass.read_command
> grass.parse_key_val
> grass.run_command
> grass.message
> grass.fatal
>
> By the way, how can I know the methods / parameters for each command?
>
> 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')
> Cheers
>
> milton
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20090505/6525fa65/attachment.html


More information about the grass-user mailing list