[GRASS-dev] Scripting in Linux

Kim Besson kimbesson1981 at gmail.com
Tue Jan 26 10:39:59 EST 2010


Yeah sure...
The following was printed in TERMINAL:
(python:2176): Gtk-CRITICAL **: gtk_widget_event: assertion
`WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

And at the command output it was:
<?xml version="1.0" encoding="ANSI_X3.4-1968"?>
<!DOCTYPE task SYSTEM "grass-interface.dtd">
<task name="i.ndvi">
<description>
NDVI Calculus
</description>
<keywords>
DW-E, raster, imagery, vegetation
</keywords>
<parameter name="bandnir" type="string" required="yes" multiple="no">
<description>
raster input map (Near Infrared)
</description>
<gisprompt age="old" element="cell" prompt="raster" />
</parameter>
<parameter name="bandred" type="string" required="yes" multiple="no">
<description>
raster input map (Red)
</description>
<gisprompt age="old" element="cell" prompt="raster" />
</parameter>
<parameter name="ndvi" type="string" required="yes" multiple="no">
<description>
raster output NDVI map
</description>
<gisprompt age="new" element="cell" prompt="raster" />
</parameter>
<flag name="overwrite">
<description>
Allow output files to overwrite existing files
</description>
</flag>
<flag name="verbose">
<description>
Verbose module output
</description>
</flag>
<flag name="quiet">
<description>
Quiet module output
</description>
</flag>
</task>
(Tue Jan 26 15:38:40 2010) Command finished (0 sec)



This gives us any light?

2010/1/26 Glynn Clements <glynn at gclements.plus.com>

>
> Kim Besson wrote:
>
> > 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:
>
> > SAXParseException
> > :
> > <unknown>:5:3: not well-formed (invalid token)
> >
> > Could you tell me what's wrong? Am I suppose to do something else?
>
> Can you post the output from "i.ndvi --interface-description" ?
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20100126/690c172d/attachment-0001.html


More information about the grass-dev mailing list