Re: Plotting Maps over the Date Line

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Tue Mar 20 2012 - 12:42:07 MDT

It's not a bug and changing mpCenterLonF is the correct answer to what you are trying to do. Note mpCenterLonF defaults to 0. For a cylindrical equidistant (lat/lon) plot it does not have to be in the exact center of the area you want to plot, but it cannot be at one end, which I believe is the situation you have set up.
 -dave

On Mar 20, 2012, at 9:30 AM, Mary Haley wrote:

> 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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Mar 20 12:42:22 2012

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