You are absolutely right Antonio.<div><br></div><div>Do anyone knows how to have Special Characters in Module (e.g. á, é).</div><div><br></div><div>Thanks</div><div><br></div><div>PS- At my WinGRASS I had those special characters<br>
<br><div class="gmail_quote">2010/1/26 António Rocha <span dir="ltr"><<a href="mailto:antonio.rocha@deimos.com.pt">antonio.rocha@deimos.com.pt</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Kim, probably you have a special character in your module/Option (such as á, à , ã or something). Right?<br>
<br>
Because I'm using Ubuntu 9.10 and I have already coded a NDVI function, very similar to yours, and it's working just fine. as soon as I put a character like those, I get an error like<br>
*(python:3562): Pango-CRITICAL **: pango_layout_get_cursor_pos: assertion `index >= 0 && index <= layout->length' failed*<br>
and huge wxPython GUI error in command window.<br>
<br>
Antonio<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
------------------------------------------------------------------------<br>
<br>
Subject:<br>
Re: [GRASS-dev] Scripting in Linux<br>
From:<br>
Kim Besson <<a href="mailto:kimbesson1981@gmail.com" target="_blank">kimbesson1981@gmail.com</a>><br>
Date:<br>
Tue, 26 Jan 2010 15:39:59 +0000<br>
To:<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>>, <a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a><br>
<br>
To:<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>>, <a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a><br>
CC:<br>
<br>
<br>
Yeah sure...<br>
The following was printed in TERMINAL:<br>
(python:2176): Gtk-CRITICAL **: gtk_widget_event: assertion `WIDGET_REALIZED_FOR_EVENT (widget, event)' failed<br>
<br>
And at the command output it was:<br>
<?xml version="1.0" encoding="ANSI_X3.4-1968"?><br>
<!DOCTYPE task SYSTEM "grass-interface.dtd"><br>
<task name="i.ndvi"><br>
<description><br>
NDVI Calculus<br>
</description><br>
<keywords><br>
DW-E, raster, imagery, vegetation<br>
</keywords><br>
<parameter name="bandnir" type="string" required="yes" multiple="no"><br>
<description><br>
raster input map (Near Infrared)<br>
</description><br>
<gisprompt age="old" element="cell" prompt="raster" /><br>
</parameter><br>
<parameter name="bandred" type="string" required="yes" multiple="no"><br>
<description><br>
raster input map (Red)<br>
</description><br>
<gisprompt age="old" element="cell" prompt="raster" /><br>
</parameter><br>
<parameter name="ndvi" type="string" required="yes" multiple="no"><br>
<description><br>
raster output NDVI map<br>
</description><br>
<gisprompt age="new" element="cell" prompt="raster" /><br>
</parameter><br>
<flag name="overwrite"><br>
<description><br>
Allow output files to overwrite existing files<br>
</description><br>
</flag><br>
<flag name="verbose"><br>
<description><br>
Verbose module output<br>
</description><br>
</flag><br>
<flag name="quiet"><br>
<description><br>
Quiet module output<br>
</description><br>
</flag><br>
</task><br>
(Tue Jan 26 15:38:40 2010) Command finished (0 sec) <br>
<br>
This gives us any light?<br>
<br>
2010/1/26 Glynn Clements <<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a> <mailto:<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>>><br>
<br>
<br>
Kim Besson wrote:<br>
<br>
> But, for instance, I have just made a NDVI script (i.ndvi) and I<br>
added the<br>
> file to my script folder but I got the following error:<br>
<br>
> SAXParseException<br>
> :<br>
> <unknown>:5:3: not well-formed (invalid token)<br>
><br>
> Could you tell me what's wrong? Am I suppose to do something else?<br>
<br>
Can you post the output from "i.ndvi --interface-description" ?<br>
<br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a><br>
<mailto:<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>>><br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
<br>
<br>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4807 (20100126) __________<br>
<br>
The message was checked by ESET NOD32 Antivirus.<br>
<br>
<a href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>
<br>
<br>
</blockquote>
<br>
<br>
<br>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4807 (20100126) __________<br>
<br>
The message was checked by ESET NOD32 Antivirus.<br>
<br>
<a href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>
<br>
<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</blockquote></div><br></div>