[ncl-talk] finish coordinate index out of range
Dennis Shea
shea at ucar.edu
Tue Jan 21 15:44:17 MST 2020
[SNIP]
;----- Create a new var to pc's values
new_data = new((/npointslat,npointslon/),"float")
new_data = 0. ; start
new_data!0 = "lat"
new_data!1 = "lon"
new_data&lat = lat2
new_data&lon = lon2
printMinMax(lat2,0) ;* min=-55.995 max=32.995*
printMinMax(lon2,0) ; *min=-119.995 max=-33.005*
;------ PROBLEM
do i=0,nrows-1
laat = lat(i)
loon = lon(i)
print(i+" "+laat+" "+loon)
new_data({laat},{loon}) = new_data({laat},{loon})+(/var(i)/)
end do
(0) 0 -5.0811541 -52.1089013
(0) 1 -4.7155803 -56.6752861
(0) 2 7.7832023 -76.153988
[snip]
(0) 59 -4.7399622 -56.8980589
(0) 60 -4.9594314 -52.4409655
(0) 61 6.5480813 *-24.7718957*
fatal:NclOneDValGetClosestIndex: finish coordinate index out of range,
can't continue
fatal:Could not obtain coordinate indexes, unable to perform subscript
fatal:["Execute.c":8640]:Execute: Error occurred at or near line 77 in file
test.vanucia.ncl
The value
l*oon= -24.7718957*
is outside the coordinate range min=-119.995002746582 max=-33.005
==========
Also:
print("nrows="+nrows) ; nrows=
*12232 ; likely it includes the latitude outlier*
printVarSummary(var) ; [*12231*]
Good luck
On Tue, Jan 21, 2020 at 12:36 PM Vanúcia Schumacher via ncl-talk <
ncl-talk at ucar.edu> wrote:
> Hi
>
> I am getting this error:
> NclOneDValGetClosestIndex: finish coordinate index out of range, can't
> continue
> fatal:Could not obtain coordinate indexes, unable to perform subscript
> Line 74
>
> Although it is a common error, I have not yet been able to solve the
> problem for this data.
> I appreciate if anyone can help
> My script and data are attached
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200121/0d9a7a4b/attachment.html>
More information about the ncl-talk
mailing list