Some questions about "contours on contours"

From: MUHTARJAN osman (muhterjan AT XXXXXX)
Date: Mon Oct 18 2004 - 02:37:12 MDT


I have plotted "contours on contours" by imitating the examples in the
webpage:
http://www.cgd.ucar.edu/csm/support/CSM_Graphics/conOncon.shtml

Now I am still confuced by the following:
****************************************************************************
  res3 = True ; plot mods desired
  res3@mpCenterLonF = 180. ; center plot at 180
  res3@cnLevelSelectionMode = "ExplicitLevels"
  res3@cnLevels =
(/0.9,0.8,0.7,0.6,0.5,0.4,0.3,0.2,-0.9,-0.8,-0.7,-0.6,-0.5,-0.4,-0.3,-0.2/)
  res3@gsnDraw = False ; Do not draw plot
  res3@gsnFrame = False ; Do not advance frome
  res3@cnInfoLabelOn = False ; turn off info label
;****************************************************************************
  res4 = True ; res2 probability plots
  res4@mpCenterLonF = 180. ; center plot at 180
  res4@gsnDraw = False ; Do not draw plot
  res4@gsnFrame = False ; Do not advance frome
  res4@cnInfoLabelOn = False ; turn off info label
  res4@cnLinesOn = False ; do not draw contour lines
  res4@cnLineLabelsOn = False ; do not draw contour labels

  res4@cnFillScaleF = 0.6 ; add extra density
;***************Text Resource************************************
  txres = True ; text mods desired
  txres@txFontHeightF = 0.03 ; font smaller. default big
;***************Polymark
Resource********************************************
   polyres = True
   polyres@gsMarkerIndex = 16 ; polymarker style
   polyres@gsMarkerSizeF = 15. ; polymarker size
;******************************************************************************
   plot3 = gsn_csm_contour_map_ce(wks,t, res4)
   plot3=ShadeLtGtContour(plot3,-2.576,17,2.576,3)

   plot4 = gsn_csm_contour(wks,gsn_add_cyclic_point(ccr), res3)
   plot4 = ZeroNegDashLineContour (plot4)
   gsn_text(wks,plot4,"H",lon(maxlonid),lat(maxlatid),txres)
   
polymarker=gsn_add_polymarker(wks,plot4,lon(ptlon(lonid)),lat(ptlat(latid)),polyres)

   overlay (plot3, plot4)

   draw (plot3)
   frame(wks)

   delete(plot3)
   delete(plot4)

   plot3 = gsn_csm_contour_map_ce(wks,t, res4)
   plot3=ShadeLtGtContour(plot3,-2.576,17,2.576,3)

   plot4 = gsn_csm_contour(wks,gsn_add_cyclic_point(ccr), res3)
   plot4 = ZeroNegDashLineContour (plot4)
   gsn_text(wks,plot4,"H",lon(maxlonid),lat(maxlatid),txres)
   
polymarker=gsn_add_polymarker(wks,plot4,lon(ptlon(lonid)),lat(ptlat(latid)),polyres)

   overlay (plot3, plot4)

   draw (plot3)
   frame(wks)

   delete(plot3)
   delete(plot4)

As a result, I had two different (in size) shading pattern. But what I want
is just one Black&White version and one Color version of a same figure
(correlation contours with significance shading). Obviously, one of them is
wrong. Why?

Another thing is my output text "H" seems not in right spot. it has been
somewhat shifted.

And about the function "gsn_add_cyclic_point", why sometime we need to use
it to overlay two plots? I noticed some of examples in your webpage don't
use this function.

But the way, it always comes up with the warning message:
"warning:mpCenterLonF is not a valid resource in
FS7-51slpda_vpda_0dLagBW_contour at this time"

Muhtarjan Osman
ASGG
LAWR
UC Davis

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

_______________________________________________
ncl-talk mailing list
ncl-talk AT ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Mon Oct 18 2004 - 10:09:54 MDT