[ncl-talk] change coordinate

Dennis Shea shea at ucar.edu
Wed Feb 1 08:30:16 MST 2017


As noted: lonFlip or lonPivot

However, you list the dimension order as:
280x180x1x8760 (lonxlatxlevxtime).
Is this fortran dimension ordering?

In NCL this would be:    x(time,lev,lat,lon)

x = lonFlip(x)

http://www.ncl.ucar.edu/Document/Functions/Contributed/lonFlip.shtml
http://www.ncl.ucar.edu/Document/Functions/Contributed/lonPivot.shtml

On Wed, Feb 1, 2017 at 4:45 AM, Marston Johnston <shejo284 at gmail.com> wrote:

> Try lonFlip(Variable with lon(0:360))
>
> /M
>
> On 1 Feb 2017, 12:11 +0100, Ciao Kai Liang <ciaokailiang at gmail.com>,
> wrote:
>
> Dear NCL users,
>
> I have one model reported hourly matric with 4-dimensional resolution of
> 280x180x1x8760(lonxlatxlevxtime). Since its longitude coordinate is 0deg
> to 360deg and latitude is -90deg to 90deg. However, I want to change its
> longitude to *-180deg to 180deg *but keep latitude coordinate. Can anyone
> provide me the code to do this job?  kind of desperately need this help.
> Thank you
>
>
> Best Regards,
>
> Joe
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170201/c5672b00/attachment.html 


More information about the ncl-talk mailing list