Hi Yan,
In my experience I never use pmTickMarkDisplayMode unless I have to to
get the tick marks to be drawn. So my first guess is to comment out that
resource. My second guess is to see what happens when you do not turn on
the XB tickmarks. Try commenting out res@tmXBOn = True and
res@tmXBLabelsOn = True right above where you create plot2(2)
Finally, I assume the script that you just sent is a subset of what you
are running. I don't see where lat2d lon2d, ttt, etc are created. In my
experience it's usually better to simply set
mpMinLatF/mpMaxLatF/mpMinLonF/mpMaxLonF and mpLimitMode = "LatLon"
(default), especially for cylindrical equidistant plots..
These are just guesses on my part. Looking at your script nothing stands
out to me as being "wrong"... Let the group know if this does/doesn't
help you.. Adam
On 09/03/2010 12:22 PM, Yan Bao wrote:
> Hi, All
> I'd like to post the entire my script to put my problme more
> specific.Thanks. Hope you can help me to find something.
> Thanks,
> Yan
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
>
> begin
>
> dir = "/Users/DATA/"
> f11 = addfile (dir+"a1.nc <http://a1.nc>", "r")
> f11 = addfile (dir+"a2.nc <http://a2.nc>", "r")
> pp11 = f11->ttt(:,:,:)
> plot1 =new(10,graphic)
>
> ;********************************************************
> ; create plots
> ;********************************************************
> wks = gsn_open_wks("pdf" ,"aaa.map") ; ps,pdf,x11,ncgm,eps
> ; gsn_define_colormap(wks,"precip2_17lev"); select color map
> gsn_define_colormap(wks,"temp_19lev"); select color map
>
> res = True ; plot mods desired
> res@gsnDraw <mailto:res@gsnDraw> = False
> res@gsnFrame <mailto:res@gsnFrame> = False
>
> res@gsnAddCyclic <mailto:res@gsnAddCyclic> = False
> res@mpLimitMode <mailto:res@mpLimitMode> = "Corners"
> res@mpLeftCornerLatF <mailto:res@mpLeftCornerLatF> = lat2d(0,0)
> res@mpLeftCornerLonF <mailto:res@mpLeftCornerLonF> = lon2d(0,0)
> res@mpRightCornerLatF <mailto:res@mpRightCornerLatF> =
> lat2d(mlat-1,mlon-1)
> res@mpRightCornerLonF <mailto:res@mpRightCornerLonF> =
> lon2d(mlat-1,mlon-1)
> res@pmTickMarkDisplayMode <mailto:res@pmTickMarkDisplayMode> = "Always"
>
>
> res@cnFillOn <mailto:res@cnFillOn> = True ; turn
> on color
> res@cnLinesOn <mailto:res@cnLinesOn> = False ;
> turn contour lines
> res@gsnSpreadColors <mailto:res@gsnSpreadColors> = True
> ; use entire color map
> res@lbLabelAutoStride <mailto:res@lbLabelAutoStride> = False; let
> NCL determine label spacing
> res@lbLabelBarOn <mailto:res@lbLabelBarOn> = False
> res@mpPerimOn <mailto:res@mpPerimOn> = True
> res@mpOutlineBoundarySets <mailto:res@mpOutlineBoundarySets> =
> "GeophysicalAndUSStates"
> res@mpFillOn <mailto:res@mpFillOn> = True
> res@mpLandFillColor <mailto:res@mpLandFillColor> = (/-1/)
> res@mpFillDrawOrder <mailto:res@mpFillDrawOrder> = "PostDraw"
> res@tiMainFontHeightF <mailto:res@tiMainFontHeightF> = 0.027
>
> res@cnLevelSelectionMode <mailto:res@cnLevelSelectionMode> = "ManualLevels"
> res@cnMinLevelValF <mailto:res@cnMinLevelValF> = 50.
> res@cnMaxLevelValF <mailto:res@cnMaxLevelValF> = 150.0 ;3000.0
> res@cnLevelSpacingF <mailto:res@cnLevelSpacingF> = 5. ;50.0
>
> ;TickMark
>
> res@tmXBLabelsOn <mailto:res@tmXBLabelsOn> = False
> res@tmXBOn <mailto:res@tmXBOn> = False
> res@tmXBLabelFontHeightF <mailto:res@tmXBLabelFontHeightF> = 0.021
> res@tiMainString <mailto:res@tiMainString> = "CCSM 2020s"
> plot2(0)=gsn_csm_contour_map_ce(wks,ttt(:,:,0),res)
> res@tmYLOn <mailto:res@tmYLOn> = False
> plot2(1)=gsn_csm_contour_map_ce(wks,ttt(:,:,1),res)
> res@tmXBLabelsOn <mailto:res@tmXBLabelsOn> = True
> res@tmXBLabelsOn <mailto:res@tmXBLabelsOn> = True
> res@tmXBOn <mailto:res@tmXBOn> = True
> res@tmYLLabelsOn <mailto:res@tmYLLabelsOn> = True
> res@tmYLOn <mailto:res@tmYLOn> = True
> plot2(2)=gsn_csm_contour_map_ce(wks,ttt(:,:,3),res)
> res@tmYLLabelsOn <mailto:res@tmYLLabelsOn> = False
> res@tmYLOn <mailto:res@tmYLOn> = False
> plot2(3)=gsn_csm_contour_map_ce(wks,ttt(:,:,4),res)
>
> resP = True
> resP@txString <mailto:resP@txString> = "aaa "
> resP@gsnPanelLabelBar <mailto:resP@gsnPanelLabelBar> = True
> resP@lbLabelAutoStride <mailto:resP@lbLabelAutoStride> = True
> resP@lbLabelFontHeightF <mailto:resP@lbLabelFontHeightF> =
> 0.011 ; make labels smaller
> resP@cnLabelBarEndStyle <mailto:resP@cnLabelBarEndStyle> =
> "IncludeMinMaxLabels" ; turn on end labels
> resP@gsnPanelFigureStringsFontHeightF=0.012
> <mailto:resP@gsnPanelFigureStringsFontHeightF=0.012>
> resP@amJust <mailto:resP@amJust> = "TopLeft"
> resP@gsnPanelFigureStringsBackgroundFillColor
> <mailto:resP@gsnPanelFigureStringsBackgroundFillColor> ="transparent"
> resP@gsnPanelFigureStringsPerimOn
> <mailto:resP@gsnPanelFigureStringsPerimOn> = False
> resP@gsnPanelFigureStrings <mailto:resP@gsnPanelFigureStrings>=
> (/"(a)","(b)","(d)","(e)"/)
> resP@gsnPanelLabelBar <mailto:resP@gsnPanelLabelBar> = True
> resP@lbLabelAutoStride <mailto:resP@lbLabelAutoStride> =True
> ;resP@lbLabelAngleF = 45 ; angle labels
> resP@lbLabelFontHeightF <mailto:resP@lbLabelFontHeightF> =
> 0.011 ; make labels smaller
> resP@cnLabelBarEndStyle <mailto:resP@cnLabelBarEndStyle> =
> "IncludeMinMaxLabels" ; turn on end labels
> gsn_panel(wks,plot2,(/2,2/),resP)
>
> end
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- __________________________________________________ Adam Phillips asphilli@ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 Climate and Global Dynamics Division 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-talkReceived on Fri Sep 3 12:26:05 2010
This archive was generated by hypermail 2.1.8 : Thu Sep 16 2010 - 11:05:25 MDT