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.

~Isaac

On Wed, Sep 12, 2018 at 12:00 PM <[email protected]> wrote:

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



-- 
-------
Isaac I. Ullah, PhD
Assistant Professor of Anthropology
Anthropology Undergraduate Adviser
San Diego State University

Fall Advising Office Hours: *W 1-2:30pm AL 480*
Fall Lab Hours: *T-Th 2-3pm HT 66*

Modelling feedbacks between human and natural processes in the land system
<https://www.earth-syst-dynam.net/9/895/2018/>
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 *Ullah*, and Peter H. Verburg
Earth Syst. Dynam., 9, 895-914, https://doi.org/10.5194/esd-9-895-2018, 2018
_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to