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

Margherita Di Leo diregola at gmail.com
Thu Feb 21 04:21:20 PST 2019


Hi,

On Thu, Feb 21, 2019 at 1:04 PM Veronica Andreo <veroandreo at gmail.com>
wrote:

> I get the same error that Juan gets, both with his commands and with those
> in the example in the manual page (and both in grass76 and trunk).
>
> [omitting the rest for brevity]
>
> r.width.funct map=dist2out image=/tmp/my_basin
>  100%
> Tot. cells 88407.0
> Tot. area 8840700.0
> Max distance 7714.591101
> Traceback (most recent call last):
>   File "/home/veroandreo/.grass7/addons/scripts/r.width.funct", line 135,
> in <module>
>     sys.exit(main())
>   File "/home/veroandreo/.grass7/addons/scripts/r.width.funct", line 84,
> in main
>     prc[0,0] , prc[0,1] = findint(kl,0.05) , 0.05
>   File "/home/veroandreo/.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.
>
> No idea...
>
> Maybe Madi can help us out here :)
>

 I wish :-) The fact is that I don't know what caused the error because it
was working fine previously. As soon as I have time I will look into it,
but if someone else has idea of what's causing the error, it's more than
welcome.

-- 
Margherita Di Leo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20190221/95242d9d/attachment.html>


More information about the grass-user mailing list