<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><span style="font-size: 14px;" class=""><font face="Palatino" class="">Hello all, </font></span></div><div class=""><span style="font-size: 14px;" class=""><font face="Palatino" class="">I am trying to take an average of nine 1D arrays that I have .. a1 to a9 all of them of the dimension <span class="Apple-tab-span" style="white-space: pre;">  </span><span class="" style="background-color: rgb(237, 234, 212);">[lev | 11]</span></font></span></div><div class=""><span style="font-size: 14px;" class=""><font face="Palatino" class=""><br class=""></font></span></div><div class=""><font class="" face="Palatino"><span class="" style="background-color: rgb(237, 234, 212); font-size: 14px;">If my understanding is right, the average functions in NCL doesn’t simply allow you to do avg(a1….a9). Please correct me if I am wrong. </span></font></div><div class=""><font class="" face="Palatino"><span class="" style="background-color: rgb(237, 234, 212); font-size: 14px;"><br class=""></span></font></div><div class=""><font class="" face="Palatino"><span class="" style="background-color: rgb(237, 234, 212); font-size: 14px;">The other way around is that I combine the 9 arrays in to a 11x9 array using a function that Dennis have posted out in the past. Is this the way around it? Or is there a simpler/less computationally intensive way of doing it?</span></font></div><div class=""><div class="" style="margin: 0px; line-height: normal; background-color: rgb(237, 234, 212);"><p class="" style="font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);"><span style="font-size: 14px;" class=""><font face="Palatino" class="">function combine (x[*], y[*]) <br class="">begin <br class="">    nx = dimsizes(x) <br class="">    ny = dimsizes(y) <br class="">    if (nx.eq.my) then <br class="">         xy = new ( (/nx,2/), typeof(x)) ; (row,col) <br class="">         xy(:,0) = (/ x /) <br class="">         xy(:,1) = (/ y /) <br class="">         return (xy) <br class="">    end if <br class=""></font></span></p><p class="" style="font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);"><span style="font-size: 14px;" class=""><font face="Palatino" class="">    print("combine error") <br class="">    exit <br class="">end </font></span></p><div class=""><br class=""></div><div class="">Thank you, </div><div class="">Prashanth</div></div></div></body></html>