Re: Gap in contour plot

From: Debasish PaiMazumder <debasish_at_nyahnyahspammersnyahnyah>
Date: Tue, 25 Aug 2009 16:33:48 -0400

Dear Brian,

You need to use the function lonFlip to fix the problem. Please check
the webpage
http://www.ncl.ucar.edu/Document/Functions/Contributed/lonFlip.shtml

Thanks

Debasish

On 09-08-25, at 16:17, 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
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Debasish PaiMazumder, PhD
Hydrology & Climate Science
Postdoctoral Researcher at UQÀM/Ouranos
550, Sherbrooke west, 19th floor, west tower,
Montréal, QC, Canada H3A 1B9
Tel: (514) 282-6464-343
      (514) 937-0042 (R)
email: debasish_at_sca.uqam.ca

_______________________________________________
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:48 MDT

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