[GRASS-user] i.spectral.py in WinGrass
Daniel Victoria
daniel.victoria at gmail.com
Tue Dec 7 05:55:54 EST 2010
You are right Glynn, I just checked i.spectral.py and it has the
d.linegraph feature but, i.spectral is greyed out in wxpython gui and,
when I try to run it from the command line (using Msys wingrass7svn),
if I input a raster group I get the error:
GRASS 7.0.svn> i.spectral.py group=alos.radiance coords=720560,261787
< foi inesperado neste momento.
Traceback (most recent call last):
File "c:/GRASS-70-SVN/scripts/i.spectral.py", line 236, in <module>
main()
File "c:/GRASS-70-SVN/scripts/i.spectral.py", line 231, in main
draw_linegraph(what)
File "c:/GRASS-70-SVN/scripts/i.spectral.py", line 144, in draw_linegraph
for j, val in enumerate(what[0][3:]):
IndexError: list index out of range
GRASS 7.0.svn>
If I try to run it using the raster options I don't get any errors but
nothing is displayed to the screen.
Running from the command console in wxgui I get:
(Tue Dec 07 08:54:34 2010)
i.spectral.py raster=alos.6s.1,alos.6s.2,alos.6s.3,alos.6s.4
coords=720560,261787
Traceback (most recent call last):
File "C:\GRASS-70-SVN\scripts\i.spectral.py", line 74, in
<module>
from grass.script import core as grass
File
"C:\GRASS-70-SVN\etc\python\grass\script\__init__.py", line
1, in <module>
from core import *
File "C:\GRASS-70-SVN\etc\python\grass\script\core.py",
line 31, in <module>
import subprocess
File "C:\GRASS-70-SVN\Python25\lib\subprocess.py", line
376, in <module>
import threading
File "C:\GRASS-70-SVN\Python25\lib\threading.py", line 13,
in <module>
from collections import deque
ImportError: No module named collections
(Tue Dec 07 08:54:34 2010) Command finished (0 sec)
Traceback (most recent call last):
File
"C:\GRASS-70-SVN\etc\gui\wxpython\gui_modules\goutput.py",
line 738, in OnCmdDone
task = menuform.GUI().ParseCommand(event.cmd, show = None)
File
"C:\GRASS-70-SVN\etc\gui\wxpython\gui_modules\menuform.py",
line 2221, in ParseCommand
self.grass_task = self.ParseInterface(cmd)
File
"C:\GRASS-70-SVN\etc\gui\wxpython\gui_modules\menuform.py",
line 2192, in ParseInterface
tree = etree.fromstring(getInterfaceDescription(cmd[0]))
File
"C:\GRASS-70-SVN\Python25\lib\xml\etree\ElementTree.py",
line 964, in XML
return parser.close()
File
"C:\GRASS-70-SVN\Python25\lib\xml\etree\ElementTree.py",
line 1254, in close
self._parser.Parse("", 1) # end of data
xml.parsers.expat
.
ExpatError
:
no element found: line 1, column 0
It looks as though I don't have the collections module?
Thanks for all the help
Daniel
On Tue, Dec 7, 2010 at 3:13 AM, Glynn Clements <glynn at gclements.plus.com> wrote:
>
> Daniel Victoria wrote:
>
>> I'm using WinGrass 7.0svn from the daily build and I just realized
>> that i.spectral.py needs gnuplot.
>
> It shouldn't need gnuplot. It shouldn't even try to use gnuplot unless
> you use the -g flag. The default behaviour is to use d.linegraph.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>
More information about the grass-user
mailing list