<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Melissa,<div class=""><br class=""></div><div class="">you have to set </div><div class=""><br class=""></div><div class=""><font face="Courier New" class=""> res@gsnDraw = False</font></div><div class=""><font face="Courier New" class=""> res@gsnFrame = False</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class="">and</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><div class=""><font face="Courier New" class=""> wpres@gsnDraw = False</font></div><div class=""><font face="Courier New" class=""> wpres@gsnFrame = False</font></div></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class="">Bye,</div><div class="">Karin</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 04.07.2018 um 15:37 schrieb Melissa Lazenby <<a href="mailto:M.Lazenby@sussex.ac.uk" class="">M.Lazenby@sussex.ac.uk</a>>:</div><br class="Apple-interchange-newline"><div class=""><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; direction: ltr; font-family: Tahoma; font-size: 10pt;" class=""><div class="">Dear NCL Users</div><div class=""><br class=""></div><div class="">I am not able to plot a panel plot of 36 CMIP5 models (lat vs time plots).</div><div class="">They plot individually however I think I am missing something when it comes to plotting it as a panel plot.</div><div class=""><br class=""></div><div class="">Any suggestions as to what could be wrong with the code would be very much appreciated.</div><div class=""><br class=""></div><div class="">Kindest Regards</div><div class="">Melissa</div><div class=""><br class=""></div><div class="">CODE BELOW</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">;*********************************************</div><div class="">; lat_time_bw.ncl</div><div class="">;*********************************************</div><div class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</div><div class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</div><div class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</div><div class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">begin</div><div class=""><br class=""></div><div class="">model = (/"ACCESS1-0","ACCESS1-3","bcc-csm1-1","bcc-csm1-1-m","BNU-ESM","CanESM2","CCSM4","CESM1-BGC","CESM1-CAM5","CMCC-CMS","CNRM-CM5","CSIRO-Mk3-6-0","EC-EARTH","FGOALS-g2","FGOALS-s2","FIO-ESM","GFDL-CM3","GFDL-ESM2G","GFDL-ESM2M","GISS-E2-R_p1","GISS-E2-H-CC","GISS-E2-R-CC","HadGEM2-AO","HadGEM2-CC","HadGEM2-ES","inmcm4","IPSL-CM5A-LR","IPSL-CM5A-MR","MIROC5","MIROC-ESM","MIROC-ESM-CHEM","MPI-ESM-LR","MPI-ESM-MR","MRI-CGCM3","NorESM1-M","NorESM1-ME"/)</div><div class=""><br class=""></div><div class=""><span style="font-size: 10pt;" class="">do gg = 0,dimsizes(model)-1</span></div><div class=""><br class=""></div><div class=""> fili = "/mnt/geog/ml382/ml382_sals000408_home_dir/melsicz/dPhov/pr_Amon_"+model(gg)+"_dP_hov.nc" </div><div class=""> fili2 = "/mnt/geog/ml382/ml382_sals000408_home_dir/melsicz/dPhov/pr_Amon_"+model(gg)+"_climhov_1971-2000.nc" </div><div class=""><br class=""></div><div class=""> f = addfile (fili , "r") ; add file</div><div class=""> lat = f->lat ; get lat</div><div class=""> lon = f->lon ; get lon </div><div class=""> time = f->time ; get time </div><div class=""> ;precip = f->pr ; get precip</div><div class=""> ;precip2 = precip(:,0,:,:)</div><div class=""><br class=""></div><div class=""> f1 = addfile (fili2 , "r") ; add file</div><div class=""> lat1 = f->lat ; get lat</div><div class=""> lon1 = f->lon ; get lon </div><div class=""> time1 = f->time ; get time </div><div class=""><br class=""></div><div class="">if ((gg.eq.13) .or. (gg.eq.17) .or. (gg.eq.18)) then</div><div class=""> precip = f1->pr(:,:,:)</div><div class=""> else</div><div class=""> precip = f1->pr(:,0,:,:)</div><div class=""> end if</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">if ((gg.eq.3) .or. (gg.eq.13) .or. (gg.eq.17) .or. (gg.eq.18) .or. (gg.eq.20) .or. (gg.eq.21)) then</div><div class=""> precip2 = f->pr(:,:,:)</div><div class=""> else</div><div class=""> precip2 = f->pr(:,0,:,:)</div><div class=""> end if</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> printVarSummary(precip2)</div><div class=""><br class=""></div><div class=""> latS = -30.</div><div class=""> latN = 30.</div><div class=""><span style="font-size: 10pt;" class=""> shov = precip2(:,{-30:30},{30:40})</span></div><div class="">shov1 = precip(:,{-30:30},{30:40})</div><div class=""> dims = dimsizes(shov) ; shov=3D array=(12,40,37)</div><div class=""><span style="font-size: 10pt;" class=""> sdemo = dim_avg_Wrap(shov) ;sdemo(time,lat)</span></div><div class="">sdemo4 = dim_avg_Wrap(shov1) ;sdemo(time,lat)</div><div class=""> </div><div class=""><br class=""></div><div class=""> </div><div class=""> sdemo1 = sdemo(lat|:,time|:) </div><div class=""> sdemo1 = smth9 (sdemo1,0.5, 0.25, False) ; 2D smoother</div><div class=""> sdemo2 = sdemo4(lat|:,time|:) </div><div class=""> sdemo2 = smth9 (sdemo2,0.5, 0.25, False) </div><div class=""> sdemo1@units = "mm/day"</div><div class=""> sdemo1@long_name = "dP Hov "+model(gg)+" (lon 30E-40E)"</div><div class=""> gtPat = 17 ; stiple</div><div class=""> ltPat = 3 </div><div class="">sdemo2@units = ""</div><div class=""> sdemo2@long_name = ""</div><div class=""> ; hatch</div><div class="">;*************************</div><div class="">; plotting parameters</div><div class="">;*************************</div><div class=""> wks = gsn_open_wks ("X11", "dPhov_ALL_models_lon30-40" ) ; open workstation </div><div class=""><span style="font-size: 10pt;" class=""> gsn_define_colormap(wks,"BlueDarkRed18") ; choose color map</span></div><div class=""> gsn_reverse_colormap(wks)</div><div class=""><br class=""></div><div class=""> plot = new (36,"graphic")</div><div class=""> plot1= new (36,"graphic")</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> res = True ; plot mods desired</div><div class=""> res@cnFillOn = True ; color on</div><div class=""> res@gsnDraw = True ; don't draw yet</div><div class=""> res@gsnAddCyclic = False</div><div class=""> res@lbLabelStride = 2 ; every other label</div><div class=""> res@lbOrientation = "Horizontal" ; vertical label bar</div><div class=""> res@pmLabelBarOrthogonalPosF = -0.04 ; move label bar closer to axis</div><div class=""> res@cnLinesOn = False ; turn off contour lines</div><div class=""> res@gsnSpreadColors = True ; use full range of color map</div><div class=""> res@gsnFrame = True ; don't advance frame yet</div><div class=""><br class=""></div><div class=""><span style="font-size: 10pt;" class=""> res@vpXF = 0.12 ; default is 0.2 change aspect</span></div><div class=""> res@vpYF = 0.8 ; default is 0.8 ration</div><div class=""> res@vpHeightF = 0.4 ; default is 0.6</div><div class=""> res@vpWidthF = 0.8 ; default is 0.6</div><div class=""><br class=""></div><div class=""> res@cnLevelSelectionMode = "ManualLevels" ; manual levels</div><div class=""> res@cnMinLevelValF = -1.5 ; min level</div><div class=""> res@cnMaxLevelValF = 1.5 ; max level</div><div class=""> res@cnLevelSpacingF = 0.25 ; contour spacing</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> res@tmXBMode = "Explicit" ; Define own tick mark labels.</div><div class=""> res@tmXBValues = (/ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11. /)</div><div class=""> res@tmXBLabels = (/"D","J","F","M" ,"A","M", "J", "J", "A", "S", "O", "N" /)</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> wpres = True ; plot mods desired</div><div class=""> wpres@cnFillOn = False ; color on</div><div class=""> wpres@gsnDraw = True ; don't draw yet</div><div class=""> wpres@gsnFrame = True </div><div class=""> wpres@gsnAddCyclic = False</div><div class=""> wpres@lbLabelStride = 2 ; every other label</div><div class=""> wpres@cnLinesOn = True </div><div class=""> wpres@cnLineLabelsOn = True </div><div class=""> wpres@cnLineThicknessF = 1.5</div><div class=""> wpres@cnInfoLabelOn = False</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">wpres@cnLevelSelectionMode = "ManualLevels" ; manual levels</div><div class=""> wpres@cnMinLevelValF = 0 ; min level</div><div class=""> wpres@cnMaxLevelValF = 10 ; max level</div><div class=""> wpres@cnLevelSpacingF = 1 ; contour spacing</div><div class=""><br class=""></div><div class=""> </div><div class=""> plot(gg) = gsn_csm_lat_time(wks, sdemo1({-30:30},:),res ) </div><div class=""> plot1(gg) = gsn_csm_lat_time(wks, sdemo2({-30:30},:),wpres )</div><div class=""><br class=""></div><div class=""> overlay(plot(gg),plot1(gg)) </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">delete(sdemo1)</div><div class="">delete(sdemo2)</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">end do</div><div class="">panres = True ; mod panel plot</div><div class="">panres@gsnPanelLabelBar = True ; add common colorbar</div><div class="">panres@lbLabelFontHeightF =.012 ; make labels larger</div><div class="">panres@gsnMaximize = True ; Maximize plot in frame. </div><div class=""><br class=""></div><div class="">gsn_panel(wks,plot(:15),(/4,4/),panres) ; panel 16 models at a time.</div><div class="">gsn_panel(wks,plot(16:),(/4,4/),panres)</div><div class="">gsn_panel(wks,plot(32:),(/4,4/),panres)</div><div class=""><br class=""></div><div class="">end</div><div class=""><br class=""></div></div><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">ncl-talk mailing list</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:ncl-talk@ucar.edu" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">ncl-talk@ucar.edu</a><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">List instructions, subscriber options, unsubscribe:</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">____________________________________<br class="">Dipl. Geophys. Karin Meier-Fleischer</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class="">Visualisierung, NCL, CDO<br class="">Abteilung Anwendungen<br class=""><br class="">Deutsches Klimarechenzentrum GmbH (DKRZ)<br class="">Bundesstrasse 45a * D-20146 Hamburg <br class="">Germany <br class=""><br class="">Phone:<span class="Apple-tab-span" style="white-space: pre;"> </span>+49 (0)40 460094 126<br class="">Fax:<span class="Apple-tab-span" style="white-space: pre;"> </span>+49 (0)40 460094 270<br class="">E-Mail:<span class="Apple-tab-span" style="white-space: pre;"> </span><a href="mailto:meier-fleischer@dkrz.de" class="">meier-fleischer@dkrz.de</a><br class="">URL:<span class="Apple-tab-span" style="white-space: pre;"> </span>http://www.dkrz.de/<br class=""><br class="">Geschäftsführer: Prof. Dr. Thomas Ludwig<br class="">Sitz der Gesellschaft: Hamburg<br class="">Amtsgericht Hamburg HRB 39784<br class=""><br class=""><br class=""><br class=""></div>
</div>
<br class=""></div></body></html>