<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 = "NCEP Wind" </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 = "ERA-INT Wind" </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 = "CCCMA Wind" </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 = "NCEP Wind" </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 = "ERA-INT Wind" </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"><<a href="mailto:starskykwesi@gmail.com" target="_blank">starskykwesi@gmail.com</a>></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"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></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'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"><<a href="mailto:starskykwesi@gmail.com" target="_blank">starskykwesi@gmail.com</a>></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's my script;<br><br>begin<br> fili = "700_ncepJULY.nc"<br> a = addfile (diri+fili , "r") <br> uwnd = a->uwnd(0,0,:,:)<br> printVarSummary(uwnd)<br><br> fili = "700_eraJULY.nc"<br> b = addfile (diri+fili , "r") <br> ua = b->ua(0,0,:,:)<br><br> fili = "700_ccmaJULY.nc"<br> c = addfile (diri+fili , "r") <br> ua1 = c->ua(0,0,:,:)<br> printVarSummary(ua1)<br><br><br> fili = "700_cnrmJULY.nc"<br> d = addfile (diri+fili , "r") <br> ua2 = d->ua(0,0,:,:)<br><br> fili = "700_ichecJULY.nc"<br> e = addfile (diri+fili , "r") <br> ua3 = e->ua(0,0,:,:)<br><br> fili = "700_ipslJULY.nc"<br> f = addfile (diri+fili , "r") <br> ua4 = f->ua(0,0,:,:)<br><br> fili = "700_mirocJULY.nc"<br> g = addfile (diri+fili , "r") <br> ua5 = g->ua(0,0,:,:)<br><br> fili = "700_mohcJULY.nc"<br> h = addfile (diri+fili , "r") <br> ua6 = h->ua(0,0,:,:)<br><br> fili = "700_mpiJULY.nc"<br> i = addfile (diri+fili , "r") <br> ua7 = i->ua(0,0,:,:)<br><br> fili = "700_nccJULY.nc"<br> j = addfile (diri+fili , "r") <br> ua8 = j->ua(0,0,:,:)<br><br> wks = gsn_open_wks("pdf","julyuwnd@7<wbr>00hPa") ; 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 = "Always" ; nicer tickmarks<br> res@mpCenterLonF = 0. ; Centers the plot at 180 <br><br> <br> res@cnLevelSelectionMode = "ExplicitLevels" ; 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 = "MPL_RdYlBu"<br> res@cnInfoLabelOn = False ; turn off contour info label<br> ;res@cnFillDrawOrder = "Predraw" <br> res@lbLabelBarOn = False ; No single label bar<br><br> sres = True ; set up a second resource list <br> sres@cnLevelSelectionMode = "ExplicitLevels" ; use explicit levels<br> sres@cnLevels = ispan(-16,4,2) ; set the contour levels<br> sres@gsnAddCyclic = False<br> sres@pmTickMarkDisplayMode = "Always" ; 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 = "NCEP Wind" <br> plot(0) = gsn_csm_contour_map_overlay(wk<wbr>s,uwnd,uwnd,res,sres) ; create the temperature plot<br> <br> res@gsnLeftString = "ERA-INT Wind" <br> plot(1) = gsn_csm_contour_map_overlay(wk<wbr>s,ua,ua,res,sres)<br> <br> res@gsnLeftString = "CCCMA Wind" <br> plot(2) = gsn_csm_contour_map_overlay(wk<wbr>s,ua1,ua1,res,sres)<br> <br> res@gsnLeftString = "CNRM Wind" <br> plot(3) = gsn_csm_contour_map_overlay(wk<wbr>s,ua2,ua2,res,sres)<br> <br> res@gsnLeftString = "ICHEC Wind" <br> plot(4) = gsn_csm_contour_map_overlay(wk<wbr>s,ua3,ua3,res,sres)<br> <br> res@gsnLeftString = "IPSL Wind" <br> plot(5) = gsn_csm_contour_map_overlay(wk<wbr>s,ua4,ua4,res,sres)<br> <br> res@gsnLeftString = "MIROC Wind" <br> plot(6) = gsn_csm_contour_map_overlay(wk<wbr>s,ua5,ua5,res,sres)<br> <br> res@gsnLeftString = "MOHC Wind" <br> plot(7) = gsn_csm_contour_map_overlay(wk<wbr>s,ua6,ua6,res,sres)<br> <br> res@gsnLeftString = "MPI Wind" <br> plot(8) = gsn_csm_contour_map_overlay(wk<wbr>s,ua7,ua7,res,sres)<br> <br> res@gsnLeftString = "NCC-NOR Wind" <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 = "AEJ July"<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:"trebuchet ms",sans-serif;font-size:12.8px">College of Agriculture and Natural Sciences|</span><span style="font-family:"trebuchet ms",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:"trebuchet ms",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:"trebuchet ms",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:"trebuchet ms",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:'trebuchet ms',sans-serif;font-size:12.8000001907349px">College of Agriculture and Natural Sciences|</span><span style="font-family:'trebuchet ms',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:'trebuchet ms',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:'trebuchet ms',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:'trebuchet ms',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>