Re: [GRASS-user] Versions question [ANSWERED]

2018-09-23 Thread Nikos Alexandris

* Rich Shepard  [2018-09-22 10:30:35 -0700]:


On Sat, 22 Sep 2018, Hernán De Angelis wrote:


In my system the executables for the different grass versions look like this:
grass74
grass75
grass77


Hernán,

 A while ago I copied /usr/local/bin/grass75 to /usr/local/bin/grass and
used only 'grass' on the command line, so it was the executable for 7.5.svn
that ran.


Maybe better to softlink, instead of copying.

Nikos

[rest deleted]


signature.asc
Description: PGP signature
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Updated trunk to grass77, GUI crashes at start: wxPython/wxWidgets release number mismatch

2018-09-23 Thread Martin Landa
Hi,

ne 23. 9. 2018 v 17:43 odesílatel Hernán De Angelis
 napsal:
> One question: how do I tell GRASS to use python 3, given that both Python 2 
> and 3 are present in the system? I tried using the configure option 
> "--with-python=/usr/bin/python3" but cannot tell if it worked.

https://trac.osgeo.org/grass/wiki/Python3Support#Howtotest

Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Updated trunk to grass77, GUI crashes at start: wxPython/wxWidgets release number mismatch

2018-09-23 Thread Hernán De Angelis

No worries, thanks for that, Anna.

One question: how do I tell GRASS to use python 3, given that both 
Python 2 and 3 are present in the system? I tried using the configure 
option "--with-python=/usr/bin/python3" but cannot tell if it worked.


H.

On 9/23/18 1:42 PM, Anna Petrášová wrote:

Hi,

trunk is now less 'stable' than usually since it contains experimental 
support for Python 3, but it means there can be new bugs even with 
Python 2 (it was announced on mailing lists). If you want more stable 
environment, please use grass 76, but I will also appreciate you 
testing trunk.


Anna

On Sat, Sep 22, 2018, 9:22 AM Hernán De Angelis > wrote:


Please forget the previous email. I solved the problem by building
wxwidgets from source and then reinstalling grass. All works as
expected
now.

/H.


On 9/22/18 2:50 PM, Hernán De Angelis wrote:
> Hi
>
> I have just updated trunk to grass77 (r73379) via SVN. After the
build
> the location selection window opens normally, then, after the
location
> is selected, the greeting window flashes normally but the GUI never
> starts. There are a lot of warning/errors (see below).
>
> I understand that wxwidgets and python may be the culprit. This
wasn't
> the case with my previous installation (grass75) although there
where
> lots of warnings with this. I have not touched wxwidgets or python
> since my previous grass install.
>
> Any hint on a solution will be appreciated.
>
> Thanks in advance.
>
> /H.
>
>
>
--

>
>
> GRASS 7.7.svn (NVtest):~/NV/grassdb > grass77
> Starting GRASS GIS...
> /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629:
> UserWarning: wxPython/wxWidgets release number mismatch
>   warnings.warn("wxPython/wxWidgets release number mismatch")
> Cleaning up temporary files...
>
>
>   __  ___   __ ___
>  / / __ \/   | / ___/ ___/   / /  _/ ___/
>     / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
>    / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
>    \/_/ |_/_/  |_/// \/___///
>
> Welcome to GRASS GIS 7.7.svn (r72914)
> GRASS GIS homepage: http://grass.osgeo.org
> This version running through:    Bash Shell (/bin/bash)
> Help is available with the command:  g.manual -i
> See the licence terms with:  g.version -c
> See citation options with:   g.version -x
> If required, restart the GUI with:   g.gui wxpython
> When ready to quit enter:    exit
>
> Launching  GUI in the background, please wait...
> GRASS 7.7.svn (NVtest):~/NV/grassdb >
> /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629:
> UserWarning: wxPython/wxWidgets release number mismatch
>   warnings.warn("wxPython/wxWidgets release number mismatch")
> Traceback (most recent call last):
>   File "/usr/local/grass-7.7.svn/gui/wxpython/wxgui.py", line
169, in
> 
>     sys.exit(main())
>   File "/usr/local/grass-7.7.svn/gui/wxpython/wxgui.py", line
156, in
> main
>     app = GMApp(workspaceFile)
>   File "/usr/local/grass-7.7.svn/gui/wxpython/wxgui.py", line
50, in
> __init__
>     wx.App.__init__(self, False)
>   File
"/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py",
> line 8628, in __init__
>     self._BootstrapApp()
>   File
"/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py",
> line 8196, in _BootstrapApp
>     return _core_.PyApp__BootstrapApp(*args, **kwargs)
>   File "/usr/local/grass-7.7.svn/gui/wxpython/wxgui.py", line
101, in
> OnInit
>     from lmgr.frame import GMFrame
>   File "/usr/local/grass-7.7.svn/gui/wxpython/lmgr/frame.py",
line 51,
> in 
>     from lmgr.layertree import LayerTree, LMIcons
>   File
"/usr/local/grass-7.7.svn/gui/wxpython/lmgr/layertree.py", line
> 38, in 
>     from mapdisp.frame import MapFrame
>   File "/usr/local/grass-7.7.svn/gui/wxpython/mapdisp/frame.py",
line
> 33, in 
>     from mapdisp.toolbars import MapToolbar, NvizIcons
>   File "/usr/local/grass-7.7.svn/gui/wxpython/mapdisp/toolbars.py",
> line 22, in 
>     from nviz.main import haveNviz
>   File "/usr/local/grass-7.7.svn/gui/wxpython/nviz/main.py",
line 24,
> in 
>     from nviz import mapwindow
>   File
"/usr/local/grass-7.7.svn/gui/wxpython/nviz/mapwindow.py", line
> 42, in 
>     from nviz.workspace import NvizSettings
>   File
"/usr/local/grass-7.7.svn/gui/wxpython/nviz/workspace.py", line
> 24, in 
>     from nviz import wxnviz
>   File "/usr/local/grass-7.7

Re: [GRASS-user] floodplain creation

2018-09-23 Thread Shane Carey
Thanks, I will compare them and let you  know the differences.
Thanks

On Domh 23 MFómh 2018 at 02:09, Vaclav Petras  wrote:

> These are steps based on:
>
>
> https://grasswiki.osgeo.org/wiki/From_GRASS_GIS_novice_to_power_user_(workshop_at_FOSS4G_Boston_2017)#Hydrology:_Estimating_inundation_extent_using_HAND_methodology
>
> You need r.stream.distance module from Addons:
>
> g.extension r.stream.distance
>
> Get drainage and streams from your DEM (your carved DEM):
>
> r.watershed elevation=dem accumulation=flowacc drainage=drainage
> stream=streams threshold=10
>
> Compute height above nearest drainage/stream (HAND):
>
> r.stream.distance stream_rast=streams direction=drainage
> elevation=elevation method=downstream difference=hand
>
> Use r.lake not on the original DEM, but on the HAND and start flooding
> ("lake") from the streams:
>
> r.lake elevation=hand water_level=3 lake=flood_3m seed=streams
>
> Convert to vector if desired:
>
> r.to.vect -s input=flood_3m output=flood_3m type=area
>
> The difference to the r.grow+r.mapcalc method [1] is that this uses an
> addon module (there should be no problem installing it) and that r.grow
> uses euclidean distance for what is later used for height difference while
> r.steam.distance follows drainage and further that r.lake floods only the
> cells accessible to water unlike the r.mapcalc expression which just looks
> at height. The two methodological differences can be summarized as "not
> respecting the surrounding terrain enough." Anyway, the r.grow+r.mapcalc
> method can get you quite far and I would be interested in the comparison
> (will differ for different terrains).
>
> Best,
> Vaclav
>
> [1]
> https://lists.osgeo.org/pipermail/grass-user/2018-September/079134.html
>
> On Fri, Sep 21, 2018 at 11:39 AM Shane Carey  wrote:
>
>> Hi All,
>>
>> I have used r.carve to carve out the rivers of a DTM - a really super
>> job. I now need to pour 3meters of water into every cell in the river and
>> see how for this water extends out - onto the floodplain.
>>
>> I was trying to use r.lake to do this, but unsure as to how r.lake will
>> work to pour 3 meters of water in every cell along the river network.
>>
>> Any advice on this would be great. It is for the creation of a floodplain.
>>
>> Thanks
>>
>>
>> Le gach dea ghui,
>> *Shane Carey*
>>
>> ___
>> grass-user mailing list
>> grass-user@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-user
>
> --
Le gach dea ghui,
*Shane Carey*
*GIS and Data Solutions Consultant*
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Updated trunk to grass77, GUI crashes at start: wxPython/wxWidgets release number mismatch

2018-09-23 Thread Anna Petrášová
Hi,

trunk is now less 'stable' than usually since it contains experimental
support for Python 3, but it means there can be new bugs even with Python 2
(it was announced on mailing lists). If you want more stable environment,
please use grass 76, but I will also appreciate you testing trunk.

Anna

On Sat, Sep 22, 2018, 9:22 AM Hernán De Angelis 
wrote:

> Please forget the previous email. I solved the problem by building
> wxwidgets from source and then reinstalling grass. All works as expected
> now.
>
> /H.
>
>
> On 9/22/18 2:50 PM, Hernán De Angelis wrote:
> > Hi
> >
> > I have just updated trunk to grass77 (r73379) via SVN. After the build
> > the location selection window opens normally, then, after the location
> > is selected, the greeting window flashes normally but the GUI never
> > starts. There are a lot of warning/errors (see below).
> >
> > I understand that wxwidgets and python may be the culprit. This wasn't
> > the case with my previous installation (grass75) although there where
> > lots of warnings with this. I have not touched wxwidgets or python
> > since my previous grass install.
> >
> > Any hint on a solution will be appreciated.
> >
> > Thanks in advance.
> >
> > /H.
> >
> >
> >
> --
> >
> >
> > GRASS 7.7.svn (NVtest):~/NV/grassdb > grass77
> > Starting GRASS GIS...
> > /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629:
> > UserWarning: wxPython/wxWidgets release number mismatch
> >   warnings.warn("wxPython/wxWidgets release number mismatch")
> > Cleaning up temporary files...
> >
> >
> >   __  ___   _____
> >  / / __ \/   | / ___/ ___/   / /  _/ ___/
> > / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
> >/ /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
> >\/_/ |_/_/  |_///   \/___///
> >
> > Welcome to GRASS GIS 7.7.svn (r72914)
> > GRASS GIS homepage:  http://grass.osgeo.org
> > This version running through:Bash Shell (/bin/bash)
> > Help is available with the command:  g.manual -i
> > See the licence terms with:  g.version -c
> > See citation options with:   g.version -x
> > If required, restart the GUI with:   g.gui wxpython
> > When ready to quit enter:exit
> >
> > Launching  GUI in the background, please wait...
> > GRASS 7.7.svn (NVtest):~/NV/grassdb >
> > /usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629:
> > UserWarning: wxPython/wxWidgets release number mismatch
> >   warnings.warn("wxPython/wxWidgets release number mismatch")
> > Traceback (most recent call last):
> >   File "/usr/local/grass-7.7.svn/gui/wxpython/wxgui.py", line 169, in
> > 
> > sys.exit(main())
> >   File "/usr/local/grass-7.7.svn/gui/wxpython/wxgui.py", line 156, in
> > main
> > app = GMApp(workspaceFile)
> >   File "/usr/local/grass-7.7.svn/gui/wxpython/wxgui.py", line 50, in
> > __init__
> > wx.App.__init__(self, False)
> >   File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py",
> > line 8628, in __init__
> > self._BootstrapApp()
> >   File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py",
> > line 8196, in _BootstrapApp
> > return _core_.PyApp__BootstrapApp(*args, **kwargs)
> >   File "/usr/local/grass-7.7.svn/gui/wxpython/wxgui.py", line 101, in
> > OnInit
> > from lmgr.frame import GMFrame
> >   File "/usr/local/grass-7.7.svn/gui/wxpython/lmgr/frame.py", line 51,
> > in 
> > from lmgr.layertree import LayerTree, LMIcons
> >   File "/usr/local/grass-7.7.svn/gui/wxpython/lmgr/layertree.py", line
> > 38, in 
> > from mapdisp.frame import MapFrame
> >   File "/usr/local/grass-7.7.svn/gui/wxpython/mapdisp/frame.py", line
> > 33, in 
> > from mapdisp.toolbars import MapToolbar, NvizIcons
> >   File "/usr/local/grass-7.7.svn/gui/wxpython/mapdisp/toolbars.py",
> > line 22, in 
> > from nviz.main import haveNviz
> >   File "/usr/local/grass-7.7.svn/gui/wxpython/nviz/main.py", line 24,
> > in 
> > from nviz import mapwindow
> >   File "/usr/local/grass-7.7.svn/gui/wxpython/nviz/mapwindow.py", line
> > 42, in 
> > from nviz.workspace import NvizSettings
> >   File "/usr/local/grass-7.7.svn/gui/wxpython/nviz/workspace.py", line
> > 24, in 
> > from nviz import wxnviz
> >   File "/usr/local/grass-7.7.svn/gui/wxpython/nviz/wxnviz.py", line
> > 51, in 
> > from grass.lib.gis import *
> >   File "/usr/local/grass-7.7.svn/etc/python/grass/lib/gis.py", line
> > 988, in 
> > G_asprintf = _variadic_function(_func,_restype,_argtypes)
> > TypeError: __init__() takes exactly 5 arguments (4 given)
> >
> > ___
> > grass-user mailing list
> > grass-user@lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/grass-user
> ___
> grass-user mailing list
> grass-user@lists