Hi Moritz Lennert,<br><br>should i have to install python 2 or 3, i think during grass installation python files are already installed?<br><br>Thanks nani<br><br><div class="gmail_quote">On Mon, Apr 18, 2011 at 12:12 PM, Moritz Lennert <span dir="ltr">&lt;<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 18/04/11 11:52, vinod kumar wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Moritz Lennert,<br>
<br>
How to execute script and where to type as i am new to python.<br>
</blockquote>
<br></div>
The best is to start reading the beginner&#39;s tutorial of python on <a href="http://python.org" target="_blank">python.org</a> and the examples on the GRASS-Wiki page.<br>
<br>
The easiest to try out python is to go to the GRASS command line and to launch Python there. You can then try out python code in real-time before putting it all into a text file and launching it as a script.<br><font color="#888888">
<br>
Moritz<br>
<br>
</font><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
I have installed grass6.4.<br>
<br>
Thanks in advance,<br>
nani.<br>
<br>
On Mon, Apr 18, 2011 at 11:21 AM, Moritz Lennert<br></div><div class="im">
&lt;<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a> &lt;mailto:<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>&gt;&gt; wrote:<br>

<br>
    On 17/04/11 16:27, vinod kumar wrote:<br>
<br>
        Hi All,<br>
<br>
        I am having algorithm or psuedo code(consists of initialisation of<br>
        parameters, conditions, comparing, etc.. ) of a program.<br>
        how to execute these set of statements in Grass. Give me an example<br>
<br>
<br>
    Writing a script in Python is probably your best bet. Start here:<br>
<br>
    <a href="http://grass.osgeo.org/wiki/GRASS_and_Python" target="_blank">http://grass.osgeo.org/wiki/GRASS_and_Python</a><br>
<br>
    Moritz<br>
<br>
<br>
</div></blockquote>
<br>
<br>
</blockquote></div><br>