<div dir="ltr"><div dir="ltr">Hi,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 21, 2019 at 1:04 PM Veronica Andreo <<a href="mailto:veroandreo@gmail.com">veroandreo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>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). <br></div><div><br></div><div>[omitting the rest for brevity]</div><div><br></div><div>r.width.funct map=dist2out image=/tmp/my_basin<br> 100%<br>Tot. cells 88407.0<br>Tot. area 8840700.0<br>Max distance 7714.591101<br>Traceback (most recent call last):<br>  File "/home/veroandreo/.grass7/addons/scripts/r.width.funct", line 135, in <module><br>    sys.exit(main())<br>  File "/home/veroandreo/.grass7/addons/scripts/r.width.funct", line 84, in main<br>    prc[0,0] , prc[0,1] = findint(kl,0.05) , 0.05<br>  File "/home/veroandreo/.grass7/addons/scripts/r.width.funct", line 128, in findint<br>    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]<br>IndexError: invalid index to scalar variable.<br></div><div><br></div><div>No idea... <br></div><div><br></div><div>Maybe Madi can help us out here :)</div></div></div></blockquote><div><br></div><div> 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.<br clear="all"></div></div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#666666">Margherita Di Leo</font></div></div></div></div></div></div></div></div></div></div>