Hello Mr. Clements<div><br></div><div>But, for instance, I have just made a NDVI script (i.ndvi) and I added the file to my script folder but I got the following error:</div><div><div>Traceback (most recent call last):</div>
<div> File "/usr/local/grass-6.4.0svn/etc/wxpython/wxgui.py",</div><div>line 466, in OnRunCmd</div><div><br></div><div>self.goutput.RunCmd(cmd, switchPage=False)</div><div> File "/usr/local/grass-6.4.0svn/etc/wxpython/gui_modules/g</div>
<div>output.py", line 352, in RunCmd</div><div><br></div><div>menuform.GUI().ParseCommand(cmdlist, parentframe=self)</div><div> File "/usr/local/grass-6.4.0svn/etc/wxpython/gui_modules/m</div><div>enuform.py", line 1822, in ParseCommand</div>
<div><br></div><div>handler)</div><div> File "/usr/lib/python2.6/xml/sax/__init__.py", line 49, in</div><div>parseString</div><div><br></div><div>parser.parse(inpsrc)</div><div> File "/usr/lib/python2.6/xml/sax/expatreader.py", line</div>
<div>107, in parse</div><div><br></div><div>xmlreader.IncrementalParser.parse(self, source)</div><div> File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123,</div><div>in parse</div><div><br></div><div>self.feed(buffer)</div>
<div> File "/usr/lib/python2.6/xml/sax/expatreader.py", line</div><div>211, in feed</div><div><br></div><div>self._err_handler.fatalError(exc)</div><div> File "/usr/lib/python2.6/xml/sax/handler.py", line 38, in</div>
<div>fatalError</div><div><br></div><div>raise exception</div><div>xml.sax._exceptions</div><div>.</div><div>SAXParseException</div><div>:</div><div><unknown>:5:3: not well-formed (invalid token)</div><div><br></div>
<div>Could you tell me what's wrong? Am I suppose to do something else?</div><div><br></div><div>Best regards,</div><div>Kim</div></div><div><br><div class="gmail_quote">2010/1/25 Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
Kim Besson wrote:<br>
<br>
> I'm having a few Questions regarding Scripting developing and compilation<br>
> for LINUX. I have "coded" a Script example, from GRASS book, and now I just<br>
> want to try it. But it says "Command d.rast.region is not yet implemented".<br>
> Do I have to do something because it's already in the right<br>
> folder /usr/local/grass-6.4.0svn/scripts.<br>
<br>
</div>The "not yet implemented" error occurs if you run unknown d.* commands<br>
(any command beginning with "d.") from the GUI's interactive prompt.<br>
Essentially, support for running d.* within the GUI is an ugly hack;<br>
it "traps" a fixed set of known commands, but doesn't work for<br>
anything else.<br>
<br>
You should still be able to use the script from the shell, or by<br>
adding a command layer within the GUI.<br>
<font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></blockquote></div><br></div>