There can not be function for everything.
You can always write your own.
Also, is the (x,y,z,t) fortran ordering???
Is 'z' one dimensional or 4 dimensional?
let: dz=layer_thickness,
q=variable, fortran(x,y,z,t)=>ncl(t,z,y,x) ; 0,1,2,3
z_zavg = dim_sum_n(q*dz, 1)/dim_sum_n(dz) ; q and dz (x,y,z,t)
--
dz4 = conform(dz,z,1)
z_zavg = dim_sum_n(q*dz4, 1)/dim_sum_n(dz4) ; q(x,y,z,t), dz(z)
On 1/21/13 10:00 AM, Hyacinth Nnamchi wrote:
>
> Hi users,
> I want to calculate the vertical average of a 4D (x,y,z,t) ocean variable. The problem is that the depths will have to vary: I want to use the thermocline depth (already calculated, x,y,t) as the base at each grid point, for the vertical vertical averaging. Is there a way/function to do this ncl?
> Thanks in advance.
> Hyacinth
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jan 21 12:59:54 2013
This archive was generated by hypermail 2.1.8 : Wed Jan 23 2013 - 20:38:31 MST