<div dir="ltr">Hello all, sorry I didn't see this earlier. I will investigate the bug and suggestion by Helmut and make any changes. I will try to add some examples to the help file as well.<div><br></div><div>~Isaac<br><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 12, 2018 at 12:00 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>
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>---------- Forwarded message ----------<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>Cc: <br>Bcc: <br>Date: Wed, 12 Sep 2018 10:23:07 -0700 (MST)<br>Subject: Re: [GRASS-user] Help with r.landscape.evol<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>---------- Forwarded message ----------<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>Cc: <br>Bcc: <br>Date: Wed, 12 Sep 2018 11:20:53 -0700 (MST)<br>Subject: Re: [GRASS-user] Help with r.landscape.evol<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>
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></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><div>-------<br></div>Isaac I. Ullah, PhD<br></div><font color="#999999">Assistant Professor of Anthropology<br></font></div></div><div><font color="#999999">Anthropology Undergraduate Adviser</font></div><font color="#999999">San Diego State University</font><br></div></div><div dir="ltr"><br></div><div>Fall Advising Office Hours: <b>W 1-2:30pm AL 480</b></div><div>Fall Lab Hours: <b>T-Th 2-3pm HT 66</b></div><div><b><br></b></div><div><a href="https://www.earth-syst-dynam.net/9/895/2018/" style="outline:0px;font-weight:bold;display:block;font-family:Verdana,Arial,sans-serif;font-size:12px;color:rgb(0,57,116)!important" target="_blank">Modelling feedbacks between human and natural processes in the land system</a><div style="color:rgb(106,106,106);font-family:Verdana,Arial,sans-serif;font-size:12px">Derek T. Robinson, Alan Di Vittorio, Peter Alexander, Almut Arneth, C. Michael Barton, Daniel G. Brown, Albert Kettner, Carsten Lemmen, Brian C. O'Neill, Marco Janssen, Thomas A. M. Pugh, Sam S. Rabin, Mark Rounsevell, James P. Syvitski, Isaac <strong>Ullah</strong>, and Peter H. Verburg</div><div style="color:rgb(106,106,106);font-family:Verdana,Arial,sans-serif;font-size:12px">Earth Syst. Dynam., 9, 895-914, <span><a href="https://doi.org/10.5194/esd-9-895-2018" target="_blank">https://doi.org/10.5194/esd-9-895-2018</a>,</span> 2018</div></div></div></div></div></div></div></div></div></div>