[GRASS-user] problems with r.neighborhoodmatrix

Gra graziaz at gmail.com
Wed Feb 21 07:49:13 PST 2018


I have this error with r.neighborhoodmatrix
could you help?
thanks


Traceback (most recent call last):
  File
"/home/zuliagr/.grass7/addons/scripts/r.neighborhoodmatrix",
line 190, in <module>
    main()
  File
"/home/zuliagr/.grass7/addons/scripts/r.neighborhoodmatrix",
line 150, in main
    for line in heapq.merge(*[decorated_file(f, keyfunc) for
f in files]):
  File "/usr/lib/python2.7/heapq.py", line 376, in merge
    h_append([next(), itnum, next])
  File
"/home/zuliagr/.grass7/addons/scripts/r.neighborhoodmatrix",
line 96, in decorated_file
    yield (key(line), line)
  File
"/home/zuliagr/.grass7/addons/scripts/r.neighborhoodmatrix",
line 92, in keyfunc
    return [int(x) for x in s.split(separator)[:2]]
ValueError: invalid literal for int() with base 10:
'0-0.003922'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180221/c5e57636/attachment.html>


More information about the grass-user mailing list