<div dir="ltr"><div class="gmail_default" style="font-size:small">You can simply change the value after you create the first plot. Right now you have:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"><br></font></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><font face="monospace, monospace">;define plots</font></div><div class="gmail_default"><font face="monospace, monospace">  plot = new( 10, graphic)</font></div><div class="gmail_default"><font face="monospace, monospace">  </font></div><div class="gmail_default"><font face="monospace, monospace">  ;make plots</font></div><div class="gmail_default"><font face="monospace, monospace">  res@gsnLeftString           = &quot;NCEP Wind&quot; </font></div><div class="gmail_default"><font face="monospace, monospace">  plot(0)   = gsn_csm_contour_map_overlay(wks,uwnd,uwnd,res,sres)   ; create the temperature plot</font></div><div class="gmail_default"><font face="monospace, monospace">  </font></div><div class="gmail_default"><font face="monospace, monospace">  res@gsnLeftString           = &quot;ERA-INT Wind&quot; </font></div><div class="gmail_default"><font face="monospace, monospace">  plot(1)   = gsn_csm_contour_map_overlay(wks,ua,ua,res,sres)</font></div><div class="gmail_default"><font face="monospace, monospace">  </font></div><div class="gmail_default"><font face="monospace, monospace">  res@gsnLeftString           = &quot;CCCMA Wind&quot; </font></div><div class="gmail_default"><font face="monospace, monospace">  plot(2)   = gsn_csm_contour_map_overlay(wks,ua1,ua1,res,sres)</font></div></div><div class="gmail_default" style="font-size:small">   . . .</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">So right before you create plot(0), set the resource to True:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><font face="monospace, monospace">  ;make plots</font></div><div class="gmail_default"><font face="monospace, monospace">  res@gsnLeftString           = &quot;NCEP Wind&quot; </font></div><div class="gmail_default"><font face="monospace, monospace">  res@gsnAddCyclic            = True</font></div><div class="gmail_default"><font face="monospace, monospace">  plot(0)   = gsn_csm_contour_map_overlay(wks,uwnd,uwnd,res,sres)   ; create the temperature plot</font></div><div class="gmail_default"><br></div><div class="gmail_default">and then before you create the rest of the plots. set it to False.  It will then stay equal to False for the rest of the code:</div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">  res@gsnLeftString           = &quot;ERA-INT Wind&quot; </font></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">  res@gsnAddCyclic            = False</font></div></div><div class="gmail_default"><font face="monospace, monospace">  plot(1)   = gsn_csm_contour_map_overlay(wks,ua,ua,res,sres)</font></div></div><div class="gmail_default"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 19, 2017 at 8:40 AM, Kwesi Quagraine <span dir="ltr">&lt;<a href="mailto:starskykwesi@gmail.com" target="_blank">starskykwesi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Thanks Mary, any idea how I can set <span style="font-family:arial,sans-serif">res@gsnAddCyclic to False for only that plot? since the res is defined for all the other plots in my script?</span></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><span style="font-family:arial,sans-serif"><br></span></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><span style="font-family:arial,sans-serif">Thanks in advance.</span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 19, 2017 at 5:37 PM, Mary Haley <span dir="ltr">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Dear Kwesi,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Your uwnd data is global (goes from 0 to 357.5), but it doesn&#39;t quite go all the way to to 360, so you need to set res@gsnAddCyclic to True for that data so the longitude cyclic point gets added.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For the other plots, which appear to all be regional, set res@gsnAddCyclic to False.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-1230872558920529907h5">On Thu, Jan 19, 2017 at 3:27 AM, Kwesi Quagraine <span dir="ltr">&lt;<a href="mailto:starskykwesi@gmail.com" target="_blank">starskykwesi@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-1230872558920529907h5"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hello NCLers, I am trying to make a wind overlay plot. I have been able to make the plot from the overlay template. <br><br>[1] first plot in panel seem to only appear with some empty line through it when gsnAddCyclic = False (please see attached) whereas vice-versa distorts the other plots.<br><br>[2] Also I want to increase the font size of the contour labels.<br><br> Any help will be much appreciated.<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Kwesi.<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Here&#39;s my script;<br><br>begin<br>   fili    = &quot;700_ncepJULY.nc&quot;<br>   a       = addfile (diri+fili , &quot;r&quot;) <br>   uwnd = a-&gt;uwnd(0,0,:,:)<br>   printVarSummary(uwnd)<br><br>   fili    = &quot;700_eraJULY.nc&quot;<br>   b       = addfile (diri+fili , &quot;r&quot;) <br>   ua = b-&gt;ua(0,0,:,:)<br><br>   fili    = &quot;700_ccmaJULY.nc&quot;<br>   c       = addfile (diri+fili , &quot;r&quot;) <br>   ua1 = c-&gt;ua(0,0,:,:)<br>   printVarSummary(ua1)<br><br><br>   fili    = &quot;700_cnrmJULY.nc&quot;<br>   d       = addfile (diri+fili , &quot;r&quot;) <br>   ua2 = d-&gt;ua(0,0,:,:)<br><br>   fili    = &quot;700_ichecJULY.nc&quot;<br>   e       = addfile (diri+fili , &quot;r&quot;) <br>   ua3 = e-&gt;ua(0,0,:,:)<br><br>   fili    = &quot;700_ipslJULY.nc&quot;<br>   f       = addfile (diri+fili , &quot;r&quot;) <br>   ua4 = f-&gt;ua(0,0,:,:)<br><br>   fili    = &quot;700_mirocJULY.nc&quot;<br>   g       = addfile (diri+fili , &quot;r&quot;) <br>   ua5 = g-&gt;ua(0,0,:,:)<br><br>   fili    = &quot;700_mohcJULY.nc&quot;<br>   h       = addfile (diri+fili , &quot;r&quot;) <br>   ua6 = h-&gt;ua(0,0,:,:)<br><br>   fili    = &quot;700_mpiJULY.nc&quot;<br>   i       = addfile (diri+fili , &quot;r&quot;) <br>   ua7 = i-&gt;ua(0,0,:,:)<br><br>   fili    = &quot;700_nccJULY.nc&quot;<br>   j       = addfile (diri+fili , &quot;r&quot;) <br>   ua8 = j-&gt;ua(0,0,:,:)<br><br>  wks = gsn_open_wks(&quot;pdf&quot;,&quot;julyuwnd@7<wbr>00hPa&quot;)         ; send graphics to PNG file<br>  <br><br>  ;set resources <br>  res = True<br>  res@mpFillOn     = False<br>  res@mpMaxLatF    = 25.                      ; specify the plot domain<br>  res@mpMinLatF    = 0.                      ;                         <br>  res@mpMinLonF    = -20.                     ;<br>  res@mpMaxLonF    = 20.                     ;<br>  res@mpOutlineOn  = True                  ; turn the map outline on<br>  res@gsnDraw      =  False                   ; do not draw the plot<br>  res@gsnFrame     =  False                   ; do not advance the frame<br>  res@gsnAddCyclic      =False<br>  res@pmTickMarkDisplayMode = &quot;Always&quot;    ; nicer tickmarks<br>  res@mpCenterLonF         = 0.                ; Centers the plot at 180 <br><br>  <br>  res@cnLevelSelectionMode = &quot;ExplicitLevels&quot; ; use explicit levels<br>  res@cnLevels             = ispan(-16,4,2) ; set the contour levels<br>  res@cnLineLabelsOn       = True            ; do not use line labels<br>  res@cnFillOn             = True             ; color fill<br>  res@cnLinesOn            = True            ; do not draw contour lines<br>  res@cnFillPalette        = &quot;MPL_RdYlBu&quot;<br>  res@cnInfoLabelOn        = False              ; turn off contour info label<br>  ;res@cnFillDrawOrder  = &quot;Predraw&quot; <br>  res@lbLabelBarOn         = False              ; No single label bar<br><br>  sres                      = True              ; set up a second resource list <br>  sres@cnLevelSelectionMode = &quot;ExplicitLevels&quot;  ; use explicit levels<br>  sres@cnLevels             = ispan(-16,4,2)   ; set the contour levels<br>  sres@gsnAddCyclic          = False<br>  sres@pmTickMarkDisplayMode = &quot;Always&quot;    ; nicer tickmarks<br>  sres@cnInfoLabelOn        = False              ; turn off contour info label<br>  sres@tiXAxisOn = False<br>  sres@tiYAxisOn = False <br>  sres@tiMainOn  = False<br> <br><br>  ;define plots<br>  plot = new( 10, graphic)<br>  <br>  ;make plots<br>  res@gsnLeftString           = &quot;NCEP Wind&quot; <br>  plot(0)   = gsn_csm_contour_map_overlay(wk<wbr>s,uwnd,uwnd,res,sres)   ; create the temperature plot<br>  <br>  res@gsnLeftString           = &quot;ERA-INT Wind&quot; <br>  plot(1)   = gsn_csm_contour_map_overlay(wk<wbr>s,ua,ua,res,sres)<br>  <br>  res@gsnLeftString           = &quot;CCCMA Wind&quot; <br>  plot(2)   = gsn_csm_contour_map_overlay(wk<wbr>s,ua1,ua1,res,sres)<br> <br>  res@gsnLeftString           = &quot;CNRM Wind&quot; <br>  plot(3)   = gsn_csm_contour_map_overlay(wk<wbr>s,ua2,ua2,res,sres)<br>  <br>  res@gsnLeftString           = &quot;ICHEC Wind&quot; <br>  plot(4)   = gsn_csm_contour_map_overlay(wk<wbr>s,ua3,ua3,res,sres)<br>  <br>  res@gsnLeftString           = &quot;IPSL Wind&quot; <br>  plot(5)   = gsn_csm_contour_map_overlay(wk<wbr>s,ua4,ua4,res,sres)<br>  <br>  res@gsnLeftString           = &quot;MIROC Wind&quot; <br>  plot(6)   = gsn_csm_contour_map_overlay(wk<wbr>s,ua5,ua5,res,sres)<br>  <br>  res@gsnLeftString           = &quot;MOHC Wind&quot; <br>  plot(7)   = gsn_csm_contour_map_overlay(wk<wbr>s,ua6,ua6,res,sres)<br>  <br>  res@gsnLeftString           = &quot;MPI Wind&quot; <br>  plot(8)   = gsn_csm_contour_map_overlay(wk<wbr>s,ua7,ua7,res,sres)<br> <br>  res@gsnLeftString           = &quot;NCC-NOR Wind&quot; <br>  plot(9)   = gsn_csm_contour_map_overlay(wk<wbr>s,ua8,ua8,res,sres)<br>  <br>  resP                     = True               ; panel options<br>  resP@gsnMaximize         = True               ; maximize image<br>  resP@gsnPanelLabelBar    = True               ; Add common label bar <br>  resP@txString            = &quot;AEJ July&quot;<br>gsn_panel(wks,plot,(/5,2/),res<wbr>P)<br>end<br clear="all"></div><br><br><div style="font-family:verdana,sans-serif;font-size:small" class="gmail_default">​var summary;<br>​Variable: uwnd<br>Type: float<br>Total Size: 42048 bytes<br>            10512 values<br>Number of Dimensions: 2<br>Dimensions and sizes:    [lat | 73] x [lon | 144]<br>Coordinates: <br>            lat: [90..-90]<br>            lon: [ 0..357.5]<br>Number Of Attributes: 14<br>  level :     700<br>  time :    1678608<br>  long_name :    Monthly mean u wind<br>  units :    m/s<br>  _FillValue :    -9.96921e+36<br>  missing_value :    -9.96921e+36<br>  precision :    2<br>  least_significant_digit :    1<br>  var_desc :    u-wind<br>  level_desc :    Multiple levels<br>  statistic :    Mean<br>  parent_stat :    Other<br>  dataset :    NCEP Reanalysis Derived Products<br>  actual_range :    ( -68.19482, 124.4 )<br><br>Variable: ua1 (same for the rest)<br>Type: float<br>Total Size: 964004 bytes<br>            241001 values<br>Number of Dimensions: 2<br>Dimensions and sizes:    [lat | 401] x [lon | 601]<br>Coordinates: <br>            lat: [ -15..  25]<br>            lon: [ -30..  30]<br>Number Of Attributes: 8<br>  plev :    70000<br>  time :    15192.5<br>  standard_name :    eastward_wind<br>  long_name :    Eastward Wind<br>  units :    m s-1<br>  _FillValue :    1e+20<br>  missing_value :    1e+20<br>  cell_methods :    time: mean<span class="m_-1230872558920529907m_-8117692914800683592HOEnZb"><font color="#888888"><br><br></font></span></div><span class="m_-1230872558920529907m_-8117692914800683592HOEnZb"><font color="#888888"><br>-- <br><div class="m_-1230872558920529907m_-8117692914800683592m_4942187513845532218gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><div><font color="#0000ff" face="trebuchet ms, sans-serif">Try not to become a man of success but rather a man of value-Albert Einstein</font></div><div><font color="#0000ff" face="trebuchet ms, sans-serif"><br></font></div><div><font color="#0000ff"><font face="trebuchet ms, sans-serif">University of Cape Coast|</font><span style="font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:12.8px">College of Agriculture and Natural Sciences|</span><span style="font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:12.8px">Department of Physics|</span></font></div><div><font color="#0000ff" face="trebuchet ms, sans-serif">Team Leader|Recycle Up! Ghana|Technology Without Borders|</font></div><div><font color="#0000ff"><font face="trebuchet ms, sans-serif">Other emails: </font><span style="font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:12.8px"><a href="mailto:kwesi.quagraine@ucc.edu.gh" target="_blank">kwesi.quagraine@ucc.ed<wbr>u.gh</a>|</span><span style="font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:12.8px"><a href="mailto:kwesi.quagraine@teog.de" target="_blank">kwesi.quagraine@teog.de</a>|</span></font></div><div><span style="font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:12.8px"><font color="#0000ff">Mobile: <a href="tel:+233%2026%20617%203582" value="+233266173582" target="_blank">+233266173582</a></font></span></div></div><div><font color="#0000ff" face="trebuchet ms, sans-serif">Skype: quagraine_cwasi</font></div><div><font color="#0000ff" face="trebuchet ms, sans-serif">Twitter: @Pkdilly</font></div><div><br></div></div></div></div></div></div></div></div>
</font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-1230872558920529907gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><div><font face="trebuchet ms, sans-serif" color="#0000ff">Try not to become a man of success but rather a man of value-Albert Einstein</font></div><div><font face="trebuchet ms, sans-serif" color="#0000ff"><br></font></div><div><font color="#0000ff"><font face="trebuchet ms, sans-serif">University of Cape Coast|</font><span style="font-family:&#39;trebuchet ms&#39;,sans-serif;font-size:12.8000001907349px">College of Agriculture and Natural Sciences|</span><span style="font-family:&#39;trebuchet ms&#39;,sans-serif;font-size:12.8000001907349px">Department of Physics|</span></font></div><div><font face="trebuchet ms, sans-serif" color="#0000ff">Team Leader|Recycle Up! Ghana|Technology Without Borders|</font></div><div><font color="#0000ff"><font face="trebuchet ms, sans-serif">Other emails: </font><span style="font-family:&#39;trebuchet ms&#39;,sans-serif;font-size:12.8px"><a href="mailto:kwesi.quagraine@ucc.edu.gh" target="_blank">kwesi.quagraine@ucc.<wbr>edu.gh</a>|</span><span style="font-family:&#39;trebuchet ms&#39;,sans-serif;font-size:12.8px"><a href="mailto:kwesi.quagraine@teog.de" target="_blank">kwesi.quagraine@teog.de</a><wbr>|</span></font></div><div><span style="font-family:&#39;trebuchet ms&#39;,sans-serif;font-size:12.8px"><font color="#0000ff">Mobile: <a href="tel:+233%2026%20617%203582" value="+233266173582" target="_blank">+233266173582</a></font></span></div></div><div><font face="trebuchet ms, sans-serif" color="#0000ff">Skype: quagraine_cwasi</font></div><div><font face="trebuchet ms, sans-serif" color="#0000ff">Twitter: @Pkdilly</font></div><div><br></div></div></div></div></div></div></div></div>
</div>
</div></div></blockquote></div><br></div>