[GRASS-user] r.width.funct in correct version

Helmut Kudrnovsky hellik at web.de
Thu Feb 21 00:55:50 PST 2019


>>Traceback (most recent call last):
>>  File "/home/jefe/.grass7/addons/scripts/r.width.funct",
>>line 135, in <module>
>>    sys.exit(main())
>>  File "/home/jefe/.grass7/addons/scripts/r.width.funct",
>>line 84, in main
>>    prc[0,0] , prc[0,1] = findint(kl,0.05) , 0.05
>>  File "/home/jefe/.grass7/addons/scripts/r.width.funct",
>>line 128, in findint
>>    z1, z2, f1, f2 = kl[int(Xf[0])][0], kl[int(Xf[0]-1)][0],
>>kl[int(Xf[0])][1], kl[int(Xf[0]-1)][1]
>>IndexError: invalid index to scalar variable.
>>('Tot. cells', 3679327.0)
>>('Tot. area', 3456746376.8999004)
>>('Max distance', 69179.644669000001)

>If that's the case, please share the exact command you used,

please post also g.region -p.

I remember there is sometimes such an error if the region isn't set right.



-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html


More information about the grass-user mailing list