[GRASS-user] Add-on installation v.strahler not working properly on Mac OS X (or Windows XP)

Dear all,

I tried to install v.strahler and the included other scripts (v.mainchannel, r.broscoe, r.strahler) on a Mac OS X 10.8 with GRASS GIS 6.4.2 (from kyngchaos) and eventually succeeded, but the following errors were shown during the compilation of v.strahler:

ld: warning: directory not found for option '-L/usr/local/pgsql-9.0/lib'
ld: warning: directory not found for option '-L/usr/local/pgsql-9.0/lib'
ERROR: G_getenv(): Variable GISDBASE not set

I suspect that the module is not working properly, because I can not replicate output that was obtained with an older installation of GRASS GIS (6.3) and an older version of OS X (10.6). In the some project location and for the same maps used in the past, I now obtain a shapefile with 99% 0 i.e. no Strahler order assigned. In the past this worked much better, the old map shows only ~20% 0s (due to braided streams etc.). In addition, the Manual is not shown in the GUI window - but was in the past.

Could this be due to a wrong compilation that something is missing - or does the module not run properly anymore under newer versions of GRASS or OS X?

I actually, tried to install v.strahler via g.extension on a Windows XP machine as well, but although it said "Successfully installed", it gives an error message when calling the module in the GUI and says "unknown command" on the command line.

I am aware that the r.stream.order etc. exists, but I want to assign Strahler order to an existing stream network.

Any help appreciated!

Best regards,

Ralf Schäfer

HI Ralf,

On Fri, Jan 25, 2013 at 3:36 PM, Ralf Schäfer <senator@ecotoxicology.de> wrote:

Dear all,

I tried to install v.strahler and the included other scripts (v.mainchannel, r.broscoe, r.strahler) on a Mac OS X 10.8 with GRASS GIS 6.4.2 (from kyngchaos) and eventually succeeded, but the following errors were shown during the compilation of v.strahler:

I have completely (hopefully) demessified the structure of v.strahler and
related tools. They are installed separately now which hopefully helps
(subdirectories are not well supported in g.extension of GRASS 6).

Please try again!

Markus

Hi Markus,

thanks for your help!

I re-installed v.strahler. Works fine but still no satisfactory result. I assume dependend packages are missing.
I assume that I have to reinstall v.mainchannel, r.strahler and r.broscoe as well? Did find v.mainchannel but not the raster packages, when I checked:
svn list https://svn.osgeo.org/grass/grass-addons/grass6/raster/

Or is there no need for independent install of the packages that were previously in the v.strahler folder?

Best regards
Ralf

Am 26.01.2013 um 18:28 schrieb Markus Neteler <neteler@osgeo.org>:

HI Ralf,

On Fri, Jan 25, 2013 at 3:36 PM, Ralf Schäfer <senator@ecotoxicology.de> wrote:

Dear all,

I tried to install v.strahler and the included other scripts (v.mainchannel, r.broscoe, r.strahler) on a Mac OS X 10.8 with GRASS GIS 6.4.2 (from kyngchaos) and eventually succeeded, but the following errors were shown during the compilation of v.strahler:

I have completely (hopefully) demessified the structure of v.strahler and
related tools. They are installed separately now which hopefully helps
(subdirectories are not well supported in g.extension of GRASS 6).

Please try again!

Markus

Hi Ralf,

On Sun, Jan 27, 2013 at 3:36 PM, Ralf Schäfer <senator@ecotoxicology.de> wrote:

Hi Markus,

thanks for your help!

I re-installed v.strahler. Works fine but still no satisfactory result. I assume dependend packages are missing.
I assume that I have to reinstall v.mainchannel, r.strahler and r.broscoe as well? Did find v.mainchannel but not the raster packages, when I checked:
svn list https://svn.osgeo.org/grass/grass-addons/grass6/raster/

v.mainchannel is in the vector subfolder:
https://svn.osgeo.org/grass/grass-addons/grass6/vector/v.mainchannel/

HTH,

madi

Or is there no need for independent install of the packages that were previously in the v.strahler folder?

Best regards
Ralf

Am 26.01.2013 um 18:28 schrieb Markus Neteler <neteler@osgeo.org>:

HI Ralf,

On Fri, Jan 25, 2013 at 3:36 PM, Ralf Schäfer <senator@ecotoxicology.de> wrote:

Dear all,

I tried to install v.strahler and the included other scripts (v.mainchannel, r.broscoe, r.strahler) on a Mac OS X 10.8 with GRASS GIS 6.4.2 (from kyngchaos) and eventually succeeded, but the following errors were shown during the compilation of v.strahler:

I have completely (hopefully) demessified the structure of v.strahler and
related tools. They are installed separately now which hopefully helps
(subdirectories are not well supported in g.extension of GRASS 6).

Please try again!

Markus


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

Margherita DI LEO
Postdoctoral Researcher

European Commission - DG JRC
Institute for Environment and Sustainability (IES). Unit H03 – FRC
Via Fermi, 2749
I-21027 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission.

Hi Madi

thanks - my post was perhaps a bit confusing. I found v.mainchannel - but not r.broscoe and r.strahler (and I checked for them in raster - but realized they are as well in the vector folder).

However, I now managed to compile all addons v.strahler, v.mainchannel, r.broscoe and r.strahler and still get no reasonable results when processing a stream network (I attach a screenshot). I am using vector (stream network) and raster (DEM) maps for which I previously obtained good results - thus something must be wrong with the installation or something changed with the algorithm, as I can`t reproduce my old maps.

During installation of r.broscoe, r.strahler and v.mainchannel I get the following alerts:
/Users/ralfs/Library/GRASS/6.4/modbuild//dist.i386-apple-darwin10.7.0/scripts/v.mainchannel: line 72: exec: g.parser: not found

/bin/sh: g.parser: command not found
/bin/sh: …/…/locale/scriptstrings/v.mainchannel_to_translate.c: No such file or directory

But since the addons seem to work, this is may be not the problem.

Best regards
Ralf

Am 27.01.2013 um 16:27 schrieb Margherita Di Leo <diregola@gmail.com>:

Hi Ralf,

On Sun, Jan 27, 2013 at 3:36 PM, Ralf Schäfer <senator@ecotoxicology.de> wrote:

Hi Markus,

thanks for your help!

I re-installed v.strahler. Works fine but still no satisfactory result. I assume dependend packages are missing.
I assume that I have to reinstall v.mainchannel, r.strahler and r.broscoe as well? Did find v.mainchannel but not the raster packages, when I checked:
svn list https://svn.osgeo.org/grass/grass-addons/grass6/raster/

v.mainchannel is in the vector subfolder:
https://svn.osgeo.org/grass/grass-addons/grass6/vector/v.mainchannel/

HTH,

madi

Or is there no need for independent install of the packages that were previously in the v.strahler folder?

Best regards
Ralf

Am 26.01.2013 um 18:28 schrieb Markus Neteler <neteler@osgeo.org>:

HI Ralf,

On Fri, Jan 25, 2013 at 3:36 PM, Ralf Schäfer <senator@ecotoxicology.de> wrote:

Dear all,

I tried to install v.strahler and the included other scripts (v.mainchannel, r.broscoe, r.strahler) on a Mac OS X 10.8 with GRASS GIS 6.4.2 (from kyngchaos) and eventually succeeded, but the following errors were shown during the compilation of v.strahler:

I have completely (hopefully) demessified the structure of v.strahler and
related tools. They are installed separately now which hopefully helps
(subdirectories are not well supported in g.extension of GRASS 6).

Please try again!

Markus


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

Margherita DI LEO
Postdoctoral Researcher

European Commission - DG JRC
Institute for Environment and Sustainability (IES). Unit H03 – FRC
Via Fermi, 2749
I-21027 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission.

I found v.mainchannel - but not r.broscoe and r.strahler (and I checked for

them in raster - but

realized they are as well in the vector folder).

maybe these should be moved to the raster-addons?

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Add-on-installation-v-strahler-not-working-properly-on-Mac-OS-X-or-Windows-XP-tp5029875p5030133.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi Ralf,

On Sun, Jan 27, 2013 at 3:36 PM, Ralf Schäfer <senator@ecotoxicology.de> wrote:

Hi Markus,

thanks for your help!

I re-installed v.strahler. Works fine but still no satisfactory result. I assume dependend packages are missing.
I assume that I have to reinstall v.mainchannel, r.strahler and r.broscoe as well? Did find v.mainchannel but not the raster packages, when I checked:

Sorry, I was obviously too tired and didn't complete the demessification.

Now r.strahler and r.broscoe are in raster/ as they should have been since long:

svn list https://svn.osgeo.org/grass/grass-addons/grass6/raster/

Please try again,

Markus (not being the author of these modules)