Re: coordinate use problem

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu, 18 May 2006 09:49:33 -0600 (MDT)

> If i use function "lonFlip" it will change the coordinate variable to :
>Variable :VAR
>Dimension and sizes: [ lat | 73 ] x [ lon | 144 ]
>Coordinates:
> lat :[ -90...90 ]
> lon:[ -180....178.5 ]
>And the area of (longitude : 180~200 ) was been ignored .
>So it can't work !!
>
>Do you have any idea ?
>Thank you
>
>----- Original Message -----
>From: "Julie Arblaster" <jma_at_cgd.ucar.edu>
>To: "jerry" <jerry_at_cwb.gov.tw>
>Cc: <ncl-talk_at_ucar.edu>
>Sent: Thursday, May 18, 2006 4:04 PM
>Subject: Re: coordinate use problem
>
>
>> Hi Jerry,
>>
>> The contributed function 'lonFlip' can reorder the longitude
>> coordinate of your array so that you can subset your data
>> effectively.
>>
>> See
>> http://www.ncl.ucar.edu/Document/Functions/Contributed/lonFlip.shtml
>>
>> Cheers,
>> Julie
>>
______________________________________
jerry wrote:
> Hi
> If i use function "lonFlip" it will change the coordinate variable to :
> Variable :VAR
> Dimension and sizes: [ lat | 73 ] x [ lon | 144 ]
> Coordinates:
> lat :[ -90...90 ]
> lon:[ -180....178.5 ]
> And the area of (longitude : 180~200 ) was been ignored .
> So it can't work !!
>
> Do you have any idea ?
> Thank you
_________________________________________

Use "lonPivot"

        x = lonPivot(x, 330) ; reorder ==> lon: [-30..327.5]
                                                [330..687.5]
        
FYI, lonFlip is a special case of lonPivot
   [ lonFlip(x) <==> lonPivot(x,180) ;-) ]

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

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu May 18 2006 - 09:49:33 MDT

This archive was generated by hypermail 2.2.0 : Thu May 18 2006 - 09:54:58 MDT