Re: Display map near 180deg E/W

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Thu Apr 22 2010 - 05:57:42 MDT

Glad to hear it worked. Not to belabor this issue but I just noticed
that my 'where' function code was wrong.
It should have been:

  lon = where(lon .lt. 0, lon + 360, lon)

  -dave

On Apr 22, 2010, at 2:57 AM, Wee-Beng Tay wrote:

> Hi Dave,
>
> Thanks again. The option mpCenterLonF worked!
>
> Regards
>
> On Wed, Apr 21, 2010 at 1:45 PM, David Brown <dbrown@ucar.edu> wrote:
> Hi Wee-Beng Tay,
>
> One thing you need to do is set
> to 180 where your data is centered. The other thing that might be
> helpful (assuming your west longitude values are actually stored as
> negative numbers) is to convert your longitude values to the range
> 0-360 so that there is not a discontinuous jump between 179 E and
> -179 (W). You can use the 'where' function on your longitude
> array(s):
>
> lon = where(lon .lt. 0, lon +180, lon)
>
> Hope this helps.
> -dave
>
>
>
>
> On Apr 20, 2010, at 9:24 PM, Wee-Beng Tay wrote:
>
> Hi,
>
> I am trynig to display a trajectory plot near the location of 180deg
> E/W. However as seen from the attached plot, the trajectories are
> all around the +-180deg location. Some trajectories are in the
> 179deg E, while some are at the 179deg W. I would like to zoom up
> into the location the trajectories are in.
>
> I used :
>
> res@mpMinLatF = -1+(min(min_y))
> res@mpMaxLatF = 1+(max(max_y))
> res@mpMinLonF = -1+(min(min_x)) ;some allowance
> res@mpMaxLonF = 1+(max(max_x))
>
> but it can't work.
>
> Do you have any solution?
>
> Thank you very much.
>
> Regards
> <traj.png>_______________________________________________
>
> 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 Thu Apr 22 05:57:50 2010

This archive was generated by hypermail 2.1.8 : Fri Apr 23 2010 - 14:40:07 MDT