Re: Gap in contour plot

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Tue, 25 Aug 2009 14:33:07 -0600

Hi Brian,
In your second resource list (the one controlling the contour plot) try
setting gsnAddCyclic = True
By default, gsnAddCyclic = True for most *_map* plotting functions. For
gsn_csm_contour, I bet the default is False. (I'm not 100% sure on this
though.)
Adam

Brian Holland wrote:
> Hello,
>
> I am using gsn_csm_contour_map_ce to create a map, and then using
> gsn_csm_contour to overlay a set of contours on that map. This works
> fine, except that there is a gap in the resulting contours along the
> zero longitude line. Any idea how I can fix this problem? Below I am
> copying the code used to define the points the data will be mapped to
> for the contour plot. If needed I can post more of the code.
> Thanks!
> Brian Holland
>
>
>
>
> nlons = 96
> nlats = 48
>
> gau_info = new((/nlats,2/),float)
> gau_info = doubletofloat(gaus(nlats/2))
>
> lat = new((/nlats/),float)
> lat_at_long_name = "latitude"
> lat_at_units = "degrees_north"
> ;lat@_FillValue = "-9999."
> lat = gau_info(:,0)
>
> lon = new((/nlons/),float)
> lon_at_long_name = "longitude"
> lon_at_units = "degrees_east"
> ;lon@_FillValue = "-9999."
>
> do i = 0, nlons-1
> lon(i) = 360./(nlons)*i
> end do
>
>
>
> ********************************
> Brian Holland
> Graduate Student
> University of Oklahoma
> 5357 National Weather Center
> 972-897-4871
> bholland_at_ou.edu <mailto:bholland_at_ou.edu>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
--------------------------------------------------------------
Adam Phillips			             asphilli_at_ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
ESSL/CGD/CAS                               fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000	  http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Aug 25 2009 - 14:33:07 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 02 2009 - 12:24:39 MDT