Gap in contour plot

From: Brian Holland <hobobrian_at_nyahnyahspammersnyahnyah>
Date: Tue, 25 Aug 2009 15:17:51 -0500


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.
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

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Tue Aug 25 2009 - 14:17:51 MDT

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