Try using help() from within the python shell.<br><br>python<br>import grass<br>help(grass)<br><br>-Jamie<br><br><div class="gmail_quote">On Tue, May 5, 2009 at 11:52 AM, Milton Cezar Ribeiro <span dir="ltr"><<a href="mailto:miltinho.astronauta@gmail.com">miltinho.astronauta@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Dear all,</div>
<div> </div>
<div>is there a way of I know the commands available on python grass library?</div>
<div> </div>
<div>Checking the codes available at <a href="https://svn.osgeo.org/grass/grass/trunk/script" target="_blank">https://svn.osgeo.org/grass/grass/trunk/script</a></div>
<div>(thanks Martin) I saw the following commands:</div>
<div> </div>
<div>grass.read_command<br>grass.parse_key_val<br>grass.run_command<br>grass.message<br>grass.fatal</div>
<div> </div>
<div>By the way, how can I know the methods / parameters for each command?</div>
<div> </div>
<div>Meanwhile, I can run g.list with the command bellow, but I can't </div>
<div>deal with the name of each of my raster map. In fact I receive the</div>
<div>same output as in gis.m console, but I would like only receive a list of</div>
<div>maps as output.</div>
<div> </div>
<div>rasterfiles = grass.read_command('g.list',type='rast')</div>
<div>Cheers</div>
<div> </div><font color="#888888">
<div>milton</div>
</font><br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
<br></blockquote></div><br>