# Re: Vertical averaging using varying depths

From: Hyacinth Nnamchi <hyacinth.1_at_nyahnyahspammersnyahnyah>
Date: Wed Jan 23 2013 - 09:09:11 MST

Hyacinth

> Date: Mon, 21 Jan 2013 11:26:15 -0700
> From: shea@ucar.edu
> To: hyacinth.1@hotmail.com
> CC: ncl-talk@ucar.edu
> Subject: Re: Vertical averaging using varying depths
>
>
> 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?
> > 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 Wed Jan 23 09:09:21 2013

This archive was generated by hypermail 2.1.8 : Wed Jan 23 2013 - 20:38:31 MST