[GRASS-user] help v.lidar.mcc

Moritz Lennert mlennert at club.worldonline.be
Mon Jan 9 07:32:28 PST 2017


On 09/01/17 16:11, Rafaela Soares wrote:
> Hi Anna,
>
> Thanks for your attention.
>
> The module v.lidar.mcc creates two products (point cloud): ground and
> non-ground. So, after I installed Linux Mint on my computer, the module
> is not creating ground file, only file of non-ground and also files I'm
> not understanding what it are.
>
> Example for output:
>
> ***
> /home/eddard/Downloads/v.lidar.mcc.py <http://v.lidar.mcc.py>
> input=q16 at q16_total g_output=q16_gro ng_output=q16_ngro
> Processing scale domain 1...
> Traceback (most recent call last):
>   File "/home/eddard/Downloads/v.lidar.mcc.py <http://v.lidar.mcc.py>",
> line 243, in
> <module>
>     sys.exit(main())
>   File "/home/eddard/Downloads/v.lidar.mcc.py <http://v.lidar.mcc.py>",
> line 214, in
> main
>     grass.run_command('g.remove', vect = temp_ncin, quiet =
> True, stderr = nuldev)
>   File "/usr/lib/grass73/etc/python/grass/script/core.py",
> line 410, in run_command
>     return handle_errors(returncode, returncode, args,
> kwargs)
>   File "/usr/lib/grass73/etc/python/grass/script/core.py",
> line 329, in handle_errors
>     returncode=returncode)
> grass.exceptions.CalledModuleError: Module run None
> ['g.remove', '--q', 'vect=v_lidar_mcc_tmp_ncin_18102'] ended
> with error
> Process ended with non-zero return code 1. See errors in the
> (error) output.
> Error in atexit._run_exitfuncs:
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/atexit.py", line 24, in
> _run_exitfuncs
>     func(*targs, **kargs)
>   File "/home/eddard/Downloads/v.lidar.mcc.py <http://v.lidar.mcc.py>",
> line 106, in
> cleanup
>     grass.run_command('g.remove', vect = '%s,%s,%s' %
> (temp_ng, temp_ncin, temp_ncout), quiet = True, stderr =
> nuldev)
>   File "/usr/lib/grass73/etc/python/grass/script/core.py",
> line 410, in run_command
>     return handle_errors(returncode, returncode, args,
> kwargs)
>   File "/usr/lib/grass73/etc/python/grass/script/core.py",
> line 329, in handle_errors
>     returncode=returncode)
> CalledModuleError: Module run None ['g.remove', '--q', 'vect
> =v_lidar_mcc_tmp_ng_18102,v_lidar_mcc_tmp_ncin_18102,v_lidar
> _mcc_tmp_ncout_18102'] ended with error
> Process ended with non-zero return code 1. See errors in the
> (error) output.
> Error in sys.exitfunc:
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/atexit.py", line 24, in
> _run_exitfuncs
>     func(*targs, **kargs)
>   File "/home/eddard/Downloads/v.lidar.mcc.py <http://v.lidar.mcc.py>",
> line 106, in
> cleanup
>     grass.run_command('g.remove', vect = '%s,%s,%s' %
> (temp_ng, temp_ncin, temp_ncout), quiet = True, stderr =
> nuldev)
>   File "/usr/lib/grass73/etc/python/grass/script/core.py",
> line 410, in run_command
>     return handle_errors(returncode, returncode, args,
> kwargs)
>   File "/usr/lib/grass73/etc/python/grass/script/core.py",
> line 329, in handle_errors
>     returncode=returncode)
> grass.exceptions.CalledModuleError: Module run None
> ['g.remove', '--q', 'vect=v_lidar_mcc_tmp_ng_18102,v_lidar_m
> cc_tmp_ncin_18102,v_lidar_mcc_tmp_ncout_18102'] ended with
> error
> Process ended with non-zero return code 1. See errors in the
> (error) output.
> (Mon Dec  5 22:28:30 2016) Comando terminado (4983 min 19 sec)
>
>
>
> What can I do wrong?


I don't think you are doing anything wrong. It rather looks like the 
version you use is and old version of v.lidar.mcc. The parameters of 
g.remove have changed in grass 7 and v.lidar.mcc does not use a call 
such as "grass.run_command('g.remove', vect = '%s,%s,%s'" anymore.

Try reinstalling v.lidar.mcc using g.extension.

Moritz


More information about the grass-user mailing list