[ncl-talk] change coordinate

Ciao Kai Liang ciaokailiang at gmail.com
Wed Feb 1 08:46:01 MST 2017


Thank you all.

LonFlip solves my problem.

Thanks for prompt reply to me

Joe

2017-02-01 23:30 GMT+08:00 Dennis Shea <shea at ucar.edu>:

> 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/a54daf70/attachment.html 


More information about the ncl-talk mailing list