Re: Plotting Maps over the Date Line

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Mar 20 2012 - 09:30:34 MDT

Hi Alan,

This does seem puzzling and seems like a bug to me.

If you want the plot to be centered about 180, then try also setting:

   res@mpCenterLonF = 180

--Mary

On Mar 20, 2012, at 9:15 AM, Alan Brammer wrote:

> Dear All,
>
> Possibly inline with the post from Bidyut earlier this morn (East Coast US). I quickly tried to plot a Pacific centric map. (Globe view but centered over the Pacific). Thought it was fairly simple but got some interesting results maybe I'm missing something here and doing this too simply, or maybe this has been raised before.
>
> Very straight forward script below:
>
> ;=======================================================
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
>
>
> begin
> wks = gsn_open_wks("x11","blank_map")
>
>
> res = True
>
> ; res@mpLimitMode = "LatLon" ; Tried this on/off makes no difference
> res@mpMaxLatF = 90
> res@mpMinLatF = -90
> res@mpMaxLonF = 360 ; Anything over 180 gives same type of output
> res@mpMinLonF = 0
>
> plot = gsn_csm_map_ce(wks,res)
>
> end
> ;=======================================================
>
>
>
>
> This fits the definition of mpMaxLonF in that "mpMaxLonF minus mpMinLonF is greater than 0.0 and less than or equal to 360.0" but does not give me a map extending from greenwich east to 360. See below.
> <blank_map_0_360.png>
>
>
> This happens with data plotted as well: see
> http://www.atmos.albany.edu/student/abrammer/ncl_plots/blank_map_w_data.png
>
> 0 to 250 same error:
> http://www.atmos.albany.edu/student/abrammer/ncl_plots/blank_map.png
>
>
>
>
> I would have expected this to come up before so apologies if its been raised numerous times. Any thoughts?
>
>
>
> Alan.
>
>
>
> ##############################
> Alan Brammer
> PhD Student,
>
> Department of Atmospheric and Environmental Sciences,
> University at Albany,
> State University of New York
> Albany, NY, 12222
>
> abrammer@albany.edu
>
> ##############################
>
> _______________________________________________
> 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 Tue Mar 20 09:30:46 2012

This archive was generated by hypermail 2.1.8 : Tue Mar 20 2012 - 15:27:15 MDT