<div dir="ltr">Hi, Rashed <div><br></div><div>I am not sure I understand your question. </div><div><br></div><div>You can assign <span style="font-size:12.8px">a@_FillValue to a different value, then the function will recognize -9.0</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Best </span></div><div><span style="font-size:12.8px">Richard</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 23, 2017 at 7:49 PM, Rashed Mahmood <span dir="ltr"><<a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hello all,<br></div>I am just wondering if there is an easy way to tell the "sum" and "avg" functions NOT ignore the missing values. Below lines clarify my question where I would like to see same values for c and d:<br><br>ncl 0> a = (/(/-9.,2,-9./),(/1,-9.,2./)/)<br>ncl 1> a@_FillValue = -9.                 <br>ncl 2> c = (a(0,:)+a(1,:))<br>ncl 3> d = dim_sum_n(a,0)<br>ncl 4> print("  "+c+ " ... "+d)<br>(0)       -9 ... 1<br>(1)       -9 ... 2<br>(2)       -9 ... 2<br><br></div>Thanks,<br></div>Rashed<br><div><div><div><br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>