<div dir="ltr">hi 

Helmut,<div>thanks a lot i applied the changes you recommended  to the .py file and it worked. </div><div><br></div><div>cheers </div><div>Nick</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 12, 2018 at 8:01 PM <<a href="mailto:grass-user-request@lists.osgeo.org">grass-user-request@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send grass-user mailing list submissions to<br>
        <a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:grass-user-request@lists.osgeo.org" target="_blank">grass-user-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:grass-user-owner@lists.osgeo.org" target="_blank">grass-user-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of grass-user digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Help with r.landscape.evol (Helmut Kudrnovsky)<br>
   2. Re: Help with r.landscape.evol (Helmut Kudrnovsky)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 12 Sep 2018 10:23:07 -0700 (MST)<br>
From: Helmut Kudrnovsky <<a href="mailto:hellik@web.de" target="_blank">hellik@web.de</a>><br>
To: <a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
Subject: Re: [GRASS-user] Help with r.landscape.evol<br>
Message-ID: <<a href="mailto:1536772987490-0.post@n6.nabble.com" target="_blank">1536772987490-0.post@n6.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Nicholas Uwadia wrote<br>
> Thanks makus for your reply, i have added more details as required and<br>
> also<br>
> the error experienced.<br>
> operating system :windows 10<br>
> GRASS GIS: 7.4<br>
<br>
tested here with OSGeo4W-winGRASS 7.4.1<br>
<br>
-----------------------------<br>
r.landscape.evol --verbose elev=elevation@PERMANENT initbdrk=bedrock@user1<br>
smoothing=no prefx=levol_ outdem=elevation outsoil=soildepth number=1<br>
statsout=D:\temp\testadd\test.txt<br>
<br>
##################################################<br>
##################################################<br>
<br>
STARTING SIMULATION<br>
<br>
Beginning iteration sequence. This may take some time.<br>
Process is not finished until you see the message: 'Done with everything'<br>
_____________________________________________________________<br>
_____________________________________________________________<br>
Total number of iterations to be run is 1<br>
Iteration = 1<br>
<br>
##################################################<br>
<br>
*************************<br>
Iteration 1 -- step 1: calculating slope<br>
*************************<br>
<br>
*************************<br>
Iteration 1 -- step 2: calculating accumulated flow depths<br>
*************************<br>
Calculating runoff excess rates (uplsope accumulated cells scaled to<br>
"flowcontrib" map<br>
<br>
*************************<br>
Iteration 1 -- step 3: calculating sediment transport rates (units variable<br>
depending upon process)<br>
*************************<br>
<br>
*************************<br>
Iteration 1 -- step 4: calculating divergence/difference of sediment<br>
transport for each process and the actual amount of erosion or deposition in<br>
vertical meters/cell/year<br>
*************************<br>
<br>
Running soft-knee smoothing filter...<br>
No additional modal smoothing was requested...<br>
ERROR: Unable to load rules file<br>
<c:\users\hkmyr\appdata\local\temp\grass7-hkmyr-8260\tmp3ykzyr><br>
Traceback (most recent call last):<br>
  File "C:\Users\hkmyr\AppData\Roaming\GRASS7\addons/scripts<br>
/<a href="http://r.landscape.evol.py" rel="noreferrer" target="_blank">r.landscape.evol.py</a>", line 681, in <module><br>
    main(x, (x + 1), prefx, statsout,  region1['nsres'],<br>
masterlist);<br>
  File "C:\Users\hkmyr\AppData\Roaming\GRASS7\addons/scripts<br>
/<a href="http://r.landscape.evol.py" rel="noreferrer" target="_blank">r.landscape.evol.py</a>", line 509, in main<br>
    grass.run_command('r.colors', quiet = "True", map =<br>
netchange, rules = <a href="http://nccolors.name" rel="noreferrer" target="_blank">nccolors.name</a>)<br>
  File "C:\OSGEO4~1\apps\grass\grass-7.4.1\etc\python\grass\<br>
script\core.py", line 421, in run_command<br>
    return handle_errors(returncode, returncode, args,<br>
kwargs)<br>
  File "C:\OSGEO4~1\apps\grass\grass-7.4.1\etc\python\grass\<br>
script\core.py", line 332, in handle_errors<br>
    returncode=returncode)<br>
grass.exceptions.CalledModuleError: Module run None<br>
['r.colors', '--q', 'rules=c:\\users\\hkmyr\\appdata\\local\<br>
\temp\\grass7-hkmyr-8260\\tmp3ykzyr', 'map=levol_ED_rate']<br>
ended with error<br>
Process ended with non-zero return code 1. See errors in the<br>
(error) output.<br>
----------------------------<br>
<br>
confirmed<br>
<br>
it seems there is an issue with r.colors reading a temporary color rules<br>
file.<br>
<br>
<br>
<br>
-----<br>
best regards<br>
Helmut<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 12 Sep 2018 11:20:53 -0700 (MST)<br>
From: Helmut Kudrnovsky <<a href="mailto:hellik@web.de" target="_blank">hellik@web.de</a>><br>
To: <a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
Subject: Re: [GRASS-user] Help with r.landscape.evol<br>
Message-ID: <<a href="mailto:1536776453399-0.post@n6.nabble.com" target="_blank">1536776453399-0.post@n6.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Helmut Kudrnovsky wrote<br>
>   File "C:\Users\hkmyr\AppData\Roaming\GRASS7\addons/scripts<br>
> /<a href="http://r.landscape.evol.py" rel="noreferrer" target="_blank">r.landscape.evol.py</a>", line 509, in main<br>
>     grass.run_command('r.colors', quiet = "True", map =<br>
> netchange, rules = <a href="http://nccolors.name" rel="noreferrer" target="_blank">nccolors.name</a>)<br>
>   File "C:\OSGEO4~1\apps\grass\grass-7.4.1\etc\python\grass\<br>
> script\core.py", line 421, in run_command<br>
>     return handle_errors(returncode, returncode, args,<br>
> kwargs)<br>
>   File "C:\OSGEO4~1\apps\grass\grass-7.4.1\etc\python\grass\<br>
> script\core.py", line 332, in handle_errors<br>
>     returncode=returncode)<br>
> grass.exceptions.CalledModuleError: Module run None<br>
> ['r.colors', '--q', 'rules=c:\\users\\hkmyr\\appdata\\local\<br>
> \temp\\grass7-hkmyr-8260\\tmp3ykzyr', 'map=levol_ED_rate']<br>
> ended with error<br>
> Process ended with non-zero return code 1. See errors in the<br>
> (error) output.<br>
<br>
it seems<br>
<br>
<a href="https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.landscape.evol/r.landscape.evol.py#L509" rel="noreferrer" target="_blank">https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.landscape.evol/r.landscape.evol.py#L509</a><br>
<br>
509         grass.run_command('r.colors', quiet = "True", map = netchange, rules<br>
= <a href="http://nccolors.name" rel="noreferrer" target="_blank">nccolors.name</a>)<br>
<br>
<a href="https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.landscape.evol/r.landscape.evol.py#L522" rel="noreferrer" target="_blank">https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.landscape.evol/r.landscape.evol.py#L522</a><br>
<br>
522         grass.run_command('r.colors', quiet = "True", map = new_soil, rules<br>
= <a href="http://sdcolors.name" rel="noreferrer" target="_blank">sdcolors.name</a>)<br>
<br>
that the rules fille for these 2 r.colors command aren't correctly defined<br>
in the script.<br>
<br>
locally changing these 2 lines e.g. to<br>
<br>
    grass.run_command('r.colors', quiet = "True", map = netchange, color =<br>
'viridis')<br>
    grass.run_command('r.colors', quiet = "True", map = new_soil, color =<br>
'viridis')<br>
<br>
then the addons script finishes:<br>
<br>
r.landscape.evol elev=elevation@PERMANENT initbdrk=bedrock@user1<br>
smoothing=no prefx=levol_ outdem=elevation outsoil=soildepth number=1<br>
statsout=D:\wd\test\log.txt<br>
<br>
##################################################<br>
##################################################<br>
<br>
STARTING SIMULATION<br>
<br>
Beginning iteration sequence. This may take some time.<br>
Process is not finished until you see the message: 'Done with everything'<br>
_____________________________________________________________<br>
_____________________________________________________________<br>
Total number of iterations to be run is 1<br>
Iteration = 1<br>
<br>
##################################################<br>
<br>
*************************<br>
Iteration 1 -- step 1: calculating slope<br>
*************************<br>
<br>
*************************<br>
Iteration 1 -- step 2: calculating accumulated flow depths<br>
*************************<br>
Calculating runoff excess rates (uplsope accumulated cells scaled to<br>
"flowcontrib" map<br>
<br>
*************************<br>
Iteration 1 -- step 3: calculating sediment transport rates (units variable<br>
depending upon process)<br>
*************************<br>
<br>
*************************<br>
Iteration 1 -- step 4: calculating divergence/difference of sediment<br>
transport for each process and the actual amount of erosion or deposition in<br>
vertical meters/cell/year<br>
*************************<br>
<br>
Running soft-knee smoothing filter...<br>
No additional modal smoothing was requested...<br>
<br>
*************************<br>
Iteration 1 -- step 5: calculating terrain evolution and new soil depths<br>
*************************<br>
<br>
<br>
*************************<br>
Iteration 1 -- step 6: writing stats to output file<br>
*************************<br>
<br>
Outputing stats to textfile: D:\wd\test\log.txt<br>
<br>
Cleaning up temporary maps...<br>
<br>
<br>
*************************<br>
Done with Iteration 1<br>
*************************<br>
<br>
Iterations complete!<br>
<br>
Done with everything<br>
(Wed Sep 12 20:16:14 2018) Command finished (43 sec)                            <br>
<br>
<br>
<br>
<br>
<br>
-----<br>
best regards<br>
Helmut<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html</a><br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
<br>
------------------------------<br>
<br>
End of grass-user Digest, Vol 149, Issue 15<br>
*******************************************<br>
</blockquote></div>