[GRASS-user] Help with r.landscape.evol
Helmut Kudrnovsky
hellik at web.de
Wed Sep 12 11:20:53 PDT 2018
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 at PERMANENT initbdrk=bedrock at 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
More information about the grass-user
mailing list