Re: backward difference

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Jan 27 2014 - 06:59:05 MST

If U(time) the :

    dimU = dimsizes(U)
    ntim = dimU(0)

    dudt = U(1:ntim-1) - U(0:ntim-2)

====
    U(time,lev,lat)

    dudt = U(1:ntim-1,:,:) - U(0:ntim-2,:,:)

====
    printVarSummary(dudt)

Cheers

On 1/27/14, 6:52 AM, Verena Lili wrote:
> Dear NCL users,
>
> I'd like to perform a simple backward difference for zonal wind data in
> order to produce acceleration term: dU/dt= U(t)-U(t-1).
>
> Any helps would be really appreciated.
> Thanks
>
>
>
> _______________________________________________
> 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 27 06:59:09 2014

This archive was generated by hypermail 2.1.8 : Fri Feb 07 2014 - 16:39:11 MST