Hi Agnes,
I think the ::-1 syntax will do what you want:
finarr = a->T(:,::-1,:,:)
That will flip the order of the levels in the array, assuming levels is
the 2nd dimension of the T array.
Adam
Agnes Lim wrote:
> Hi
>
> Is there a faster way like lonflip that I can flip my vertical coordinates?
> Both my datasets have opposite vertical arrangement of data.
> I can create a new array and reorder it but wonder if there is a faster
> way.
>
> Agnes
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Fri Nov 07 2008 - 11:21:19 MST
This archive was generated by hypermail 2.2.0 : Fri Nov 07 2008 - 13:41:15 MST