[ncl-talk] Coefficient_of Divergence
Kunal Bali
kunal.bali9 at gmail.com
Tue Nov 7 11:15:42 MST 2017
Dear NCL user
Suppose, I have 2 datasets
e.g.
data1 = of single point lat & lon (e.g 28N, 72E) with time steps 365
(having filling values)
data2 = of grid box (24-32N, 68-76E) with time steps 365 (having filling
values)
Now I want to calculate the CoD from one single point to 400km grid box
area and then lot the spatial map of the calculated product.
Formula for CoD is GIVEN BELOW
So I calculated in NCL as
CoD1 = ((data1 - data2)/(data1 + data2))^2
CoD_final = (sqrt(sum(CoD1)))/3
please let me know is it the right way to do?
I tried to plot the final product CoD_final with the attached script, but
error comes as
fatal:Minus: Number of dimensions do not match, can't continue
fatal:["Execute.c":8578]:Execute: Error occurred at or near line 116 in
file plot.ncl
regards
Kunal Bali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171107/0f85ff1b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: COD.png
Type: image/png
Size: 34015 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171107/0f85ff1b/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot.ncl
Type: application/octet-stream
Size: 3866 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171107/0f85ff1b/attachment.obj>
More information about the ncl-talk
mailing list