hi
am trying to model gully erosion changes using the r.landscape.evol i get an erros as the output to excel is blank. i kindly as if there is any tutorial using this tool that can guide me.
Thanks
Nick
hi
am trying to model gully erosion changes using the r.landscape.evol i get an erros as the output to excel is blank. i kindly as if there is any tutorial using this tool that can guide me.
Thanks
Nick
On Sun, Sep 9, 2018 at 11:55 PM Nicholas Uwadia
<uwadianicholas@gmail.com> wrote:
hi
am trying to model gully erosion changes using the r.landscape.evol i get an erros as the output to excel is blank. i kindly as if there is any tutorial using this tool that can guide me.
Please post more details - which operating system, which GRASS GIS
version and which error message appears.
Markus
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
this is the output command and error
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…
Enacting additional “low” smoothing: one pass of a 3x3 modal smoothing window.
ERROR: Unable to load rules file <c:\users\samy\appdata\local\temp\grass7-samy-7592\tmpgyoapy>
Traceback (most recent call last):
File “C:\Users\Samy\AppData\Roaming\GRASS7\addons/scripts/r.landscape.evol.py”, line 681, in
main(x, (x + 1), prefx, statsout, region1[‘nsres’], masterlist);
File “C:\Users\Samy\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:\Program Files\GRASS GIS 7.4.0\etc\python\grass\script\core.py”, line 421, in
run_command return handle_errors(returncode, returncode, args, kwargs)
File “C:\Program Files\GRASS GIS 7.4.0\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\samy\appdata\local\
temp\grass7-samy-7592\tmpgyoapy’, ‘map=levol_ED_rate’]
ended with error
Process ended with non-zero return code 1. See errors in the
(error) output.
Thanks
On Tue, Sep 11, 2018 at 10:32 PM Markus Neteler <neteler@osgeo.org> wrote:
On Sun, Sep 9, 2018 at 11:55 PM Nicholas Uwadia
<uwadianicholas@gmail.com> wrote:hi
am trying to model gully erosion changes using the r.landscape.evol i get an erros as the output to excel is blank. i kindly as if there is any tutorial using this tool that can guide me.Please post more details - which operating system, which GRASS GIS
version and which error message appears.Markus
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
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
509 grass.run_command('r.colors', quiet = "True", map = netchange, rules
= nccolors.name)
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