[ncl-talk] sum of values with close coordinates

Vanúcia Schumacher vanucia-schumacher at hotmail.com
Mon Jan 27 10:15:36 MST 2020


Hi users,

I am noticing a problem when I try to extract non-missing data.
Values where the latitude and longitude are very close, the sum of these values is occurring, reducing the number of non-missing values.

For example:
...
new_data  [10]
...
data1d := ndtooned(new_data)
ivalid    := ind(.not.ismissing(data1d))
xvalid   := data1d(ivalid)

print(xvalid)

xvalid [8]
-10912.00
-66941.00
-13331.00
-32386.00
-48914.00    ===> this value does not exist in imput data!
-19282.00
-17815.00
-19579.00

As I understand it is the sum of two values that have very close lat and lon coordinates from input file:
lat                  , lon            , value
,-10.6018882,-51.385531,-14530
,-10.6061222,-51.3855321,-34384

I attached my script and data if anyone can help me find how to fix this,

Thanks for any help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200127/0596d43d/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.txt
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200127/0596d43d/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.ncl
Type: application/octet-stream
Size: 3207 bytes
Desc: test.ncl
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200127/0596d43d/attachment.obj>


More information about the ncl-talk mailing list