<div dir="ltr"><div>[SNIP]</div><div>;----- Create a new var to pc's values</div> new_data = new((/npointslat,npointslon/),"float")<br> new_data = 0. ; start<br> new_data!0 = "lat"<br> new_data!1 = "lon"<br> new_data&lat = lat2<br> new_data&lon = lon2<br>printMinMax(lat2,0) ;<b> min=-55.995 max=32.995</b><div>printMinMax(lon2,0) ; <b>min=-119.995 max=-33.005</b></div><div><b><br></b></div><div>;------ PROBLEM<br> do i=0,nrows-1<br> laat = lat(i)<br> loon = lon(i)<br> print(i+" "+laat+" "+loon)<br> new_data({laat},{loon}) = new_data({laat},{loon})+(/var(i)/)<br> end do<b><br></b></div><div><b><br></b></div><div>(0) 0 -5.0811541 -52.1089013<br>(0) 1 -4.7155803 -56.6752861<br>(0) 2 7.7832023 -76.153988</div><div>[snip]</div><div>(0) 59 -4.7399622 -56.8980589<br>(0) 60 -4.9594314 -52.4409655<br>(0) 61 6.5480813 <span style="color:rgb(255,0,0)"><b>-24.7718957</b></span><br>fatal:NclOneDValGetClosestIndex: finish coordinate index out of range, can't continue<br>fatal:Could not obtain coordinate indexes, unable to perform subscript<br>fatal:["Execute.c":8640]:Execute: Error occurred at or near line 77 in file test.vanucia.ncl</div><div><br></div><div>The value <br></div><div> l<span style="color:rgb(255,0,0)"><b>oon= -24.7718957</b></span></div><div><span style="color:rgb(255,0,0)"></span><span style="color:rgb(0,0,0)">is outside the coordinate range min=-119.995002746582 max=-33.005</span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)">==========</span></div><div><span style="color:rgb(0,0,0)">Also:<br>print("nrows="+nrows) ; nrows=<span style="color:rgb(255,0,0)"><b>12232 ; likely it includes the latitude outlier<br></b></span></span></div><div><span style="color:rgb(0,0,0)">printVarSummary(var) ; [<b>12231</b>]</span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><br></div><div>Good luck<br></div><div><br></div><div><b></b></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 21, 2020 at 12:36 PM Vanúcia Schumacher via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</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 style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
Hi </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
I am getting this error:</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
<span>NclOneDValGetClosestIndex: finish coordinate index out of range, can't continue<br>
</span>
<div>fatal:Could not obtain coordinate indexes, unable to perform subscript<br>
</div>
<div>Line 74</div>
<span></span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
Although it is a common error, I have not yet been able to solve the problem for this data.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
I appreciate if anyone can help<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:14pt;color:rgb(0,0,0)">
My script and data are attached<br>
</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>