[GRASS-user] profile tools in GRASS GIS 6.4.ORC2

On Jan 31, 2009, at 3:51 AM, <grass-user-request@lists.osgeo.org> wrote:

Date: Fri, 30 Jan 2009 20:30:12 +0100
From: Jhon Ortiz <eljhonjhon@hotmail.com>
Subject: [GRASS-user] profile tools in GRASS GIS 6.4.ORC2
To: User grass <grass-user@lists.osgeo.org>
Message-ID: <BLU145-W118BF906490D11D23E954FC6C60@phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"

Hi to all,

Im working with grass 6.4.0RC2 in Ubuntu 8.04.

I tried Interactively create profile of a raster map.
I drew Profile transect with the mouse in map display,
but when I make click in the profile button to create the profile, don't display anything
and gave me this error:

Traceback (most recent call last):
File "/usr/local/grass-6.4.0RC2/etc/wxpython/gui_modules/p
rofile.py", line 449, in OnCreateProfile

self.DrawPlot()
File "/usr/local/grass-6.4.0RC2/etc/wxpython/gui_modules/p
rofile.py", line 474, in DrawPlot

legend=r['plegend'])
File "/usr/lib/python2.5/site-
packages/wx-2.8-gtk2-unicode/wx/lib/plot.py", line 224, in
__init__

PolyPoints.__init__(self, points, attr)
File "/usr/lib/python2.5/site-
packages/wx-2.8-gtk2-unicode/wx/lib/plot.py", line 124, in
__init__

self._points =
_Numeric.array(points).astype(_Numeric.Float64)
ValueError
:
matrices are not aligned for copy

Some advice?

You need to have numpy or numarray installed for profiling to work in the wxPython gui. Have you installed one of these?

Michael

Hi to all,

Im working with grass 6.4.0RC2 in Ubuntu 8.04.

I tried Interactively create profile of a raster map.
I drew Profile transect with the mouse in map display,
but when I make click in the profile button to create the profile,
don’t display anything
and gave me this error:

Traceback (most recent call last):
File “/usr/local/grass-6.4.0RC2/etc/wxpython/gui_modules/p
rofile.py”, line 449, in OnCreateProfile

self.DrawPlot()
File “/usr/local/grass-6.4.0RC2/etc/wxpython/gui_modules/p
rofile.py”, line 474, in DrawPlot

legend=r[‘plegend’])
File “/usr/lib/python2.5/site-
packages/wx-2.8-gtk2-unicode/wx/lib/plot.py”, line 224, in
init

PolyPoints.init(self, points, attr)
File “/usr/lib/python2.5/site-
packages/wx-2.8-gtk2-unicode/wx/lib/plot.py”, line 124, in
init

self._points =
_Numeric.array(points).astype(_Numeric.Float64)
ValueError
:
matrices are not aligned for copy

Some advice?

You need to have numpy or numarray installed for profiling to work in
the wxPython gui. Have you installed one of these?

Michael

I just install the package python-numpy and now this tool working very good.

Michael, Thanks for your help .

John Ortiz
Bioestratigrafia-ICP
Bogota-Colombia


Actualízate, descubre el nuevo Windows Live Messenger. ¡Descárgatelo ya!