[ncl-talk] A question about dim_avg_n

Rick Brownrigg brownrig at ucar.edu
Thu Mar 1 12:04:46 MST 2018


Hi,

It looks like they are ignored:

a = (/ (/ 1, 2, -1/), (/ 1, 2, 3/) /)
a at _FillValue = -1

print(dim_avg_n(a,1))
(0)    1.5
(1)     2

print(dim_avg_n(a,0))
(0)     1
(1)     2
(2)     3





On Thu, Mar 1, 2018 at 11:52 AM, Barry Lynn <barry.h.lynn at gmail.com> wrote:

> Hi:
>
> I am wondering what this program would do if there is a missing value.
>
> Does it take the average within an array's index only for those array
> indices with real numbers?
>
> Thank you.
>
> --
> Barry H. Lynn, Ph.D
> Senior Lecturer,
> The Institute of the Earth Science,
> The Hebrew University of Jerusalem,
> Givat Ram, Jerusalem 91904, Israel
> Tel: 972 547 231 170
> Fax: (972)-25662581
>
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108 <(914)%20432-3108>
>
> _______________________________________________
> 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/20180301/cc28db21/attachment.html>


More information about the ncl-talk mailing list