<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(51,51,255)">Thank you Margherita Di Leo, Veronica, Helmut and Nikos.  </div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(51,51,255)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(51,51,255)">Trying to show some of my searches, I found <a href="https://stackoverflow.com/questions/32978575/how-to-fix-indexerror-invalid-index-to-scalar-variable/32979196">an explanation of that IndexError in python discussion</a>.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(51,51,255)">I seems to be a python specific problem. But I am not sure nor able to use it...</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(51,51,255)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(51,51,255)">This is the link</div><div class="gmail_default"><font color="#3333ff" face="tahoma, sans-serif"><a href="https://stackoverflow.com/questions/32978575/how-to-fix-indexerror-invalid-index-to-scalar-variable/32979196">https://stackoverflow.com/questions/32978575/how-to-fix-indexerror-invalid-index-to-scalar-variable/32979196</a></font><br></div><div class="gmail_default"><font color="#3333ff" face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font color="#3333ff" face="tahoma, sans-serif">It is curious that previous grass versions works perfect with the same r.width.funct</font></div><div class="gmail_default"><font color="#3333ff" face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font color="#3333ff" face="tahoma, sans-serif">Regards</font></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 21, 2019 at 8:21 AM Margherita Di Leo <<a href="mailto:diregola@gmail.com">diregola@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">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" target="_blank">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-m_1420706375339173327gmail_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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span><span></span></span><span><font color="#888888"><span style="color:black"><span style="color:rgb(0,0,127)">Prof. Juan Ygnacio López Hernández </span></span></font></span><span><font color="#888888"><span style="color:black"><span style="color:rgb(0,0,127)"><span><font color="#888888"><span style="color:black"><span style="color:rgb(0,0,127)">Ing.</span></span></font></span><font color="#888888"> </font>MSc. PhD.<br style="font-family:"lucida console",sans-serif"><a rel="nofollow" href="http://www.ula.ve/" target="_blank">Universidad de Los Andes</a><br>
Escuela de Ingeniería Forestal<br>Mérida, Venezuela.<br style="font-family:"lucida console",sans-serif"><span style="font-family:"lucida console",sans-serif">Tel. <a value="+582742401688">++58 </a></span></span></span></font></span><font color="#00007f" face="lucida console, sans-serif">426 3185690</font><span style="color:black"><span style="color:rgb(0,0,127)"><span style="font-family:"lucida console",sans-serif"><br></span></span></span></div></div></div></div>