[GRASS-user] r.diversity (r.li) options on windows

Hi there,

As part of a master's thesis, we would like to use r.diversity to process aerial multi-spectral imagery using a Windows 7 machine.

(The most recent piece of info is apparently this grass-devel thread:
http://article.gmane.org/gmane.comp.gis.grass.devel/56124

Putting Luca and Alessandro in copy because of this related thread:
http://article.gmane.org/gmane.comp.gis.gfoss.italian/12245
)

As the r.li suite appears still broken on Windows,
http://grasswiki.osgeo.org/wiki/WinGRASS_Current_Status#Known_Issues

we were wondering whether it would be wiser to go the g.gui.rlisetup way
http://grass.osgeo.org/grass70/manuals/g.gui.rlisetup.html

or to opt for a virtual machine installation, e.g.
http://live.osgeo.org/en/quickstart/virtualization_quickstart.html

In general, is there any advantage in using grass 7 vs. 6 in our case?

Kind regards and thanks for any pointer,

Luigi

Hello,

replying to myself to report an attempt at running r.diversity using the virtual machine option, i.e. osgeo-live-vm-7.0 on windows 7 installed as shown at
http://live.osgeo.org/en/quickstart/virtualization_quickstart.html

In GRASS 6.4.3, settings -> Addons estensions -> Install extension from addons [g.extension];

fetched repository (http://svn.osgeo.org/grass/grass-addons/grass6) via "Fetch" button;

selected raster -> r.diversity, and pressed "Install" butto;

received the following output message at GUI command console:

g.extension.py extension=r.diversity svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
Fetching <r.diversity> from GRASS-Addons SVN (be patient)...
svn: Can't move 'r.diversity/.svn/tmp/entries' to
'r.diversity/.svn/entries': File exists
ERROR: GRASS Addons <r.diversity> not found
(Fri Feb 21 15:51:11 2014) Command finished (15 sec)

Is there a way to do a GUI install or, as suggested in the g.extension help page, one should just copy the r.diversity.py script to the grass addons directory (e.g., /grassdata/addons/scripts/)?

Thanks for any pointer,

Luigi

-----Original Message-----
From: lponti@inbox.com
Sent: Tue, 28 Jan 2014 12:58:59 +0100
To: grass-user@lists.osgeo.org
Subject: [GRASS-user] r.diversity (r.li) options on windows

Hi there,

As part of a master's thesis, we would like to use r.diversity to
process aerial multi-spectral imagery using a Windows 7 machine.

(The most recent piece of info is apparently this grass-devel thread:
http://article.gmane.org/gmane.comp.gis.grass.devel/56124

Putting Luca and Alessandro in copy because of this related thread:
http://article.gmane.org/gmane.comp.gis.gfoss.italian/12245
)

As the r.li suite appears still broken on Windows,
http://grasswiki.osgeo.org/wiki/WinGRASS_Current_Status#Known_Issues

we were wondering whether it would be wiser to go the g.gui.rlisetup way
http://grass.osgeo.org/grass70/manuals/g.gui.rlisetup.html

or to opt for a virtual machine installation, e.g.
http://live.osgeo.org/en/quickstart/virtualization_quickstart.html

In general, is there any advantage in using grass 7 vs. 6 in our case?

Kind regards and thanks for any pointer,

Luigi

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

____________________________________________________________
Receive Notifications of Incoming Messages
Easily monitor multiple email accounts & access them with a click.
Visit http://www.inbox.com/notifier and check it out!

Hi Luigi,

over the past few weeks Markus Metz has submitted a major rewrite of
r.li.* to GRASS GIS 7.svn.

We tested the older version a lot which is containing a lot of errors.

Suggestion: get a fresh GRASS 7 from SVN (or precompiled, see
http://grass.osgeo.org/grass7/
) and use the r.diversity Addon for GRASS 7.

Backporting the r.li.* rewrite is quite some effort, not sure how to
deal with that.

Best
Markus

Hi Markus,

Thanks to you and Markus Metz!

We will immediately go after your suggestion and report back ASAP.

Kind regards,

Luigi

-----Original Message-----
From: neteler@osgeo.org
Sent: Sun, 23 Feb 2014 23:51:38 +0100
To: lponti@inbox.com
Subject: Re: [GRASS-user] r.diversity (r.li) options on windows

Hi Luigi,

over the past few weeks Markus Metz has submitted a major rewrite of
r.li.* to GRASS GIS 7.svn.

We tested the older version a lot which is containing a lot of errors.

Suggestion: get a fresh GRASS 7 from SVN (or precompiled, see
http://grass.osgeo.org/grass7/
) and use the r.diversity Addon for GRASS 7.

Backporting the r.li.* rewrite is quite some effort, not sure how to
deal with that.

Best
Markus

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth

Hi Markus,

I have installed grass70 on a virtualBox with OSGeo Live 7.0

GRASS precompiled version from:
https://launchpad.net/~grass/+archive/grass-devel
ppa:grass/grass-devel

Installed precompiled version:
7.0.0+0ubuntu3~develppa~2~svn-30128~ubuntu12.04.1

which the repository says is 9 hrs hold, and hence I assume includes r.li.* updates by Markus Metz.

Start GRASS from terminal with grass70 is fine.

If I go menuwise in wxpython gui:
Settings > Addons extenstions > install extensions from Addons

g.extension gui reports the following error:

Unable to load extensions

and when trying to fecth extensions, the same occurs.

Other things appear not to work properly. For example, again in the gui:
Help > About GRASS GIS

Nothing happens and commmand console reports the following:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 6469, in OnKeyDown

id = self.FindItem(self._current, self._findPrefix + ch)
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4151, in FindItem

id = self.GetNext(id)
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4036, in GetNext

children = i.GetChildren()
AttributeError
:
'NoneType' object has no attribute 'GetChildren'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 6469, in OnKeyDown

id = self.FindItem(self._current, self._findPrefix + ch)
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4151, in FindItem

id = self.GetNext(id)
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4036, in GetNext

children = i.GetChildren()
AttributeError
:
'NoneType' object has no attribute 'GetChildren'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 6469, in OnKeyDown

id = self.FindItem(self._current, self._findPrefix + ch)
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4151, in FindItem

id = self.GetNext(id)
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4036, in GetNext

children = i.GetChildren()
AttributeError
:
'NoneType' object has no attribute 'GetChildren'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 6300, in OnKeyDown

if not self.IsItemEnabled(self._current):
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 2661, in IsItemEnabled

return item.IsEnabled()
AttributeError
:
'NoneType' object has no attribute 'IsEnabled'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 6469, in OnKeyDown

id = self.FindItem(self._current, self._findPrefix + ch)
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4151, in FindItem

id = self.GetNext(id)
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4036, in GetNext

children = i.GetChildren()
AttributeError
:
'NoneType' object has no attribute 'GetChildren'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 6469, in OnKeyDown

id = self.FindItem(self._current, self._findPrefix + ch)
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4151, in FindItem

id = self.GetNext(id)
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4036, in GetNext

children = i.GetChildren()
AttributeError
:
'NoneType' object has no attribute 'GetChildren'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 6469, in OnKeyDown

id = self.FindItem(self._current, self._findPrefix + ch)
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4151, in FindItem

id = self.GetNext(id)
  File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py",
line 4036, in GetNext

children = i.GetChildren()
AttributeError
:
'NoneType' object has no attribute 'GetChildren'
Traceback (most recent call last):
  File "/usr/lib/grass70/etc/gui/wxpython/lmgr/frame.py",
line 1003, in OnAboutGRASS

win = AboutWindow(self)
  File
"/usr/lib/grass70/etc/gui/wxpython/gui_core/ghelp.py", line
57, in __init__

for title, win in ((_("Info"), self._pageInfo()),
  File
"/usr/lib/grass70/etc/gui/wxpython/gui_core/ghelp.py", line
112, in _pageInfo

label = 'GRASS GIS ' + vInfo['version'] + '\n')
KeyError
:
'version'

Sounds like a Python problem but I am not sure how to deal with that. I also have of course GRASS 6.4.3 intalled as it comes with OSGeo Live 7.0.

Thanks in advance for any pointer.

Kind regards,

Luigi

-----Original Message-----
From: neteler@osgeo.org
Sent: Sun, 23 Feb 2014 23:51:38 +0100
To: lponti@inbox.com
Subject: Re: [GRASS-user] r.diversity (r.li) options on windows

Hi Luigi,

over the past few weeks Markus Metz has submitted a major rewrite of
r.li.* to GRASS GIS 7.svn.

We tested the older version a lot which is containing a lot of errors.

Suggestion: get a fresh GRASS 7 from SVN (or precompiled, see
http://grass.osgeo.org/grass7/
) and use the r.diversity Addon for GRASS 7.

Backporting the r.li.* rewrite is quite some effort, not sure how to
deal with that.

Best
Markus

____________________________________________________________
Protect your computer files with professional cloud backup.
Get PCRx Backup and upload unlimited files automatically.
Learn more at http://backup.pcrx.com/mail

Hi,

···

On Fri, Mar 7, 2014 at 4:01 AM, Luigi Ponti <lponti@inbox.com> wrote:

Hi Markus,

I have installed grass70 on a virtualBox with OSGeo Live 7.0

GRASS precompiled version from:
https://launchpad.net/~grass/+archive/grass-devel
ppa:grass/grass-devel

Installed precompiled version:
7.0.0+0ubuntu3~develppa~2~svn-30128~ubuntu12.04.1

which the repository says is 9 hrs hold, and hence I assume includes r.li.* updates by Markus Metz.

Start GRASS from terminal with grass70 is fine.

If I go menuwise in wxpython gui:
Settings > Addons extenstions > install extensions from Addons

g.extension gui reports the following error:

Unable to load extensions

and when trying to fecth extensions, the same occurs.

Other things appear not to work properly. For example, again in the gui:
Help > About GRASS GIS

Nothing happens and commmand console reports the following:

Traceback (most recent call last):
File “/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py”,
line 6469, in OnKeyDown

id = self.FindItem(self._current, self._findPrefix + ch)
File “/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py”,
line 4151, in FindItem

id = self.GetNext(id)
File “/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/customtreectrl.py”,
line 4036, in GetNext

children = i.GetChildren()
AttributeError
:
‘NoneType’ object has no attribute ‘GetChildren’

This part of error is not related and I fixed it in r59209.

Traceback (most recent call last):
File “/usr/lib/grass70/etc/gui/wxpython/lmgr/frame.py”,
line 1003, in OnAboutGRASS

win = AboutWindow(self)
File
“/usr/lib/grass70/etc/gui/wxpython/gui_core/ghelp.py”, line
57, in init

for title, win in ((_(“Info”), self._pageInfo()),
File
“/usr/lib/grass70/etc/gui/wxpython/gui_core/ghelp.py”, line
112, in _pageInfo

label = 'GRASS GIS ’ + vInfo[‘version’] + ‘\n’)
KeyError
:
‘version’

This looks like g.version segfaults. What happens when you run:

g.version -rge

Best,

Anna

Sounds like a Python problem but I am not sure how to deal with that. I also have of course GRASS 6.4.3 intalled as it comes with OSGeo Live 7.0.

Thanks in advance for any pointer.

Kind regards,

Luigi

-----Original Message-----
From: neteler@osgeo.org
Sent: Sun, 23 Feb 2014 23:51:38 +0100
To: lponti@inbox.com
Subject: Re: [GRASS-user] r.diversity (r.li) options on windows

Hi Luigi,

over the past few weeks Markus Metz has submitted a major rewrite of
r.li.* to GRASS GIS 7.svn.

We tested the older version a lot which is containing a lot of errors.

Suggestion: get a fresh GRASS 7 from SVN (or precompiled, see
http://grass.osgeo.org/grass7/
) and use the r.diversity Addon for GRASS 7.

Backporting the r.li.* rewrite is quite some effort, not sure how to
deal with that.

Best
Markus


Protect your computer files with professional cloud backup.
Get PCRx Backup and upload unlimited files automatically.
Learn more at http://backup.pcrx.com/mail


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi Anna,

From: kratochanna@gmail.com
Sent: Fri, 7 Mar 2014 08:42:21 -0500
To: lponti@inbox.com
Subject: Re: [GRASS-user] r.diversity (r.li) options on windows

[…]

This part of error is not related and I fixed it in r59209.

Then I will have to try compilation from source a bit harder. I have failed so far – interesting that I was able to compile GRASS from source on windows 7 some time ago using OSGeo4W, likely because there are fewer degrees of freedom compared to Linux.

Traceback (most recent call last):
File “/usr/lib/grass70/etc/gui/wxpython/lmgr/frame.py”,
line 1003, in OnAboutGRASS

win = AboutWindow(self)
File
“/usr/lib/grass70/etc/gui/wxpython/gui_core/ghelp.py”, line
57, in init

for title, win in ((_(“Info”), self._pageInfo()),
File
“/usr/lib/grass70/etc/gui/wxpython/gui_core/ghelp.py”, line
112, in _pageInfo

label = 'GRASS GIS ’ + vInfo[‘version’] + ‘\n’)
KeyError
:
‘version’

This looks like g.version segfaults. What happens when you run:

g.version -rge

Here is what happens (in GRASS prompt):

g.version -rge
version=7.0.svn
date=2014
revision=
build_date=2014-03-04
Segmentation fault (core dumped)

That’s it. Kind regards and thank you,

Luigi

Dear Anna,

Just compiled from source r59347 and the error triggered by menu command

Help > About GRASS GIS

no longer shows up, i.e., we get the regular gui window showing info (even though Code Revision and Build Date are not available and a question mark is shown instead).

Your suggested test command shows the following ouput:

GRASS 7.0.svn (valdagri):/usr > g.version -rge
version=7.0.svn
date=2014
revision=
build_date=2014-03-26
build_platform=i686-pc-linux-gnu
Segmentation fault (core dumped)

with revision number still not available.

Our original target, g.extension (see email subject), still returns the Fetch & Install extension from GRASS Addons gui windows with error saying “Unable to load extensions”.

Displaying GIS layers seems to work fine. Basic things like g.region, r.info, etc. also appear to be OK.

We would be grateful if someone can drop a line pointing us to a way to run r.diversity and/or any other comment you might thing useful.

Kind regards,

Luigi

Hi Luigi,

On Sun, Feb 23, 2014 at 11:51 PM, Markus Neteler <neteler@osgeo.org> wrote:

Hi Luigi,

over the past few weeks Markus Metz has submitted a major rewrite of
r.li.* to GRASS GIS 7.svn.

I have backported it all to GRASS 6.4.svn and 6.5.svn.

Greetings from the Vienna Code Sprint,

Markus

Dear Markus,
That's great! Thanks! Will give it a try right away.
Enjoy Vienna,
Luigi

On 26/03/2014 15:47, Markus Neteler wrote:

Hi Luigi,

On Sun, Feb 23, 2014 at 11:51 PM, Markus Neteler <neteler@osgeo.org> wrote:

Hi Luigi,

over the past few weeks Markus Metz has submitted a major rewrite of
r.li.* to GRASS GIS 7.svn.

I have backported it all to GRASS 6.4.svn and 6.5.svn.

Greetings from the Vienna Code Sprint,

Markus