hi Helmut, thanks a lot i applied the changes you recommended to the .py file and it worked.
cheers Nick On Wed, Sep 12, 2018 at 8:01 PM <grass-user-requ...@lists.osgeo.org> wrote: > Send grass-user mailing list submissions to > grass-user@lists.osgeo.org > > 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 > grass-user-requ...@lists.osgeo.org > > You can reach the person managing the list at > grass-user-ow...@lists.osgeo.org > > 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) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 12 Sep 2018 10:23:07 -0700 (MST) > From: Helmut Kudrnovsky <hel...@web.de> > To: grass-user@lists.osgeo.org > Subject: Re: [GRASS-user] Help with r.landscape.evol > Message-ID: <1536772987490-0.p...@n6.nabble.com> > Content-Type: text/plain; charset=us-ascii > > 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 > > > ------------------------------ > > Message: 2 > Date: Wed, 12 Sep 2018 11:20:53 -0700 (MST) > From: Helmut Kudrnovsky <hel...@web.de> > To: grass-user@lists.osgeo.org > Subject: Re: [GRASS-user] Help with r.landscape.evol > Message-ID: <1536776453399-0.p...@n6.nabble.com> > Content-Type: text/plain; charset=us-ascii > > 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 > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > grass-user mailing list > grass-user@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/grass-user > > ------------------------------ > > End of grass-user Digest, Vol 149, Issue 15 > ******************************************* >
_______________________________________________ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user