<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi Rick</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I was able to solve the issue by using gsn_add_text instead. I had to supply lat/lon values instead of ndc coordinates and attach the text to each plot separately and then panel them.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Cheers</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Tabish</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br clear="all"></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><font size="1"><span style="font-family:tahoma,sans-serif">Tabish U Ansari<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">PhD student, Lancaster Environment Center<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">Lancaster Univeristy<br> <span>Bailrigg</span>, <span>Lancaster</span>, <br><span>LA1 4YW</span>, <span>United Kingdom</span></span></font><br></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 30 Apr 2019 at 00:09, Tabish Ansari <<a href="mailto:tabishumaransari@gmail.com">tabishumaransari@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi Rick,</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">In that case it prints the text on a new frame. I get a 2 page PDF with the plots on the first page and just the text on the second.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Tabish</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br clear="all"></div><div><div dir="ltr" class="gmail-m_-9197432283808582959gmail_signature"><div dir="ltr"><div><div><font size="1"><span style="font-family:tahoma,sans-serif">Tabish U Ansari<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">PhD student, Lancaster Environment Center<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">Lancaster Univeristy<br> <span>Bailrigg</span>, <span>Lancaster</span>, <br><span>LA1 4YW</span>, <span>United Kingdom</span></span></font><br></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 29 Apr 2019 at 23:56, Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Tabish,</div><div><br></div><div>I don't know, but I have to wonder what happens if you place the call to gsn_text_ndc() after the call to gsn_panel()?</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 29, 2019 at 4:48 PM Tabish Ansari <<a href="mailto:tabishumaransari@gmail.com" target="_blank">tabishumaransari@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I'm trying to add some text using gsn_text_ndc over a panel plot but it goes underneath the plots. Is there a way to write some text over the panel plots?</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Here's my script:</div><div style="font-family:trebuchet ms,sans-serif" class="gmail_default"><i>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"<br><br>begin<br><br> a1 = addfile("/mnt/rasher/zero-out_runs/run0/<a href="http://subset_d03_2014-10-23_010000.nc" target="_blank">subset_d03_2014-10-23_010000.nc</a>","r") ; Open a file<br> a2 = addfile("/mnt/rasher/zero-out_runs/run0/<a href="http://subset_d03_2014-10-24_010000.nc" target="_blank">subset_d03_2014-10-24_010000.nc</a>","r") ; Open a file<br> b = addfile("/mnt/rasher/control-run-so4-ECMWF/<a href="http://wrfout_d03_2014-10-24_010000.nc" target="_blank">wrfout_d03_2014-10-24_010000.nc</a>","r") ; Open a file<br> wks = gsn_open_wks("x11","episode-maps") ; Create a plot workstation<br><br> opts = True ; Set some Basic Plot options<br>; opts@MainTitle = "GEOGRID FIELDS"<br> opts@InitTime = False ; Do not plot time or footers<br> opts@Footer = False <br><br> pehla = a1->PM2_5_DRY(15:23,0,:,:) ; Read the variable to memory<br> dusra = a2->PM2_5_DRY(0:14,0,:,:) ; Read the variable to memory<br> pehlaSum = dim_sum_n(pehla,0)<br> dusraSum = dim_sum_n(dusra,0)<br> pm25 = (pehlaSum+dusraSum)/24.0<br> pm25@description=""<br> printVarSummary(pm25)<br><br> res = opts ; Use basic options for this field<br> res@cnFillOn = True ; Create a color fill plot<br> ;res@cnFillPalette = "BlGrYeOrReVi200" ; Set color map<br>; res@cnFillPalette = "BlueRed" ; Set color map<br> res@ContourParameters = (/ 0, 340, 20 /) ; Set the levels<br><br>res@pmLabelBarOrthogonalPosF = -0.05<br> contour = wrf_contour(a1,wks,pm25,res)<br><br> pltres = True ; Set plot options<br> pltres@NoHeaderFooter = True <br> pltres@PanelPlot = True <br> mpres = True ; Set map options<br> mpres@mpOutlineBoundarySets = "Allboundaries"<br> mpres@mpUSStateLineDashPattern = 0<br> mpres@mpOutlineOn = True<br> mpres@mpDataBaseVersion = "MediumRes"<br> mpres@mpDataSetName = "Earth..4" ; U.S. counties<br><br><br>mpres@mpGeophysicalLineColor = "Black" ; Overwrite basic map settings<br> mpres@mpGridLineColor = "Black"<br> mpres@mpLimbLineColor = "Black"<br> mpres@mpNationalLineColor = "Black"<br> mpres@mpPerimLineColor = "Black"<br> mpres@mpUSStateLineColor = "Black"<br><br> plot1 = wrf_map_overlays(b,wks,(/contour/),pltres,mpres) ; Plot field over map background<br><br>;;;NOW FOR EPISODE 2;;;<br> a1 = addfile("/mnt/rasher/zero-out_runs/run0/<a href="http://subset_d03_2014-10-29_010000.nc" target="_blank">subset_d03_2014-10-29_010000.nc</a>","r") ; Open a file<br> a2 = addfile("/mnt/rasher/zero-out_runs/run0/<a href="http://subset_d03_2014-10-30_010000.nc" target="_blank">subset_d03_2014-10-30_010000.nc</a>","r") ; Open a file<br> pehla = a1->PM2_5_DRY(15:23,0,:,:) ; Read the variable to memory<br> dusra = a2->PM2_5_DRY(0:14,0,:,:) ; Read the variable to memory<br> pehlaSum = dim_sum_n(pehla,0)<br> dusraSum = dim_sum_n(dusra,0)<br> pm25 = (pehlaSum+dusraSum)/24.0<br><br> res@ContourParameters = (/ 0, 280, 20 /) ; Set the levels<br> contour = wrf_contour(a1,wks,pm25,res)<br> plot2 = wrf_map_overlays(b,wks,(/contour/),pltres,mpres) ; Plot field over map background<br><br> ; Panel the WRF plots.<br> pnlres = True<br> ;pnlres@txString = t@description + " (" + t@units + ")"<br> pnlres@gsnPanelYWhiteSpacePercent = 13 ; Add white space b/w plots.<br> ; pnlres@gsnPanelLabelBar = True ; Turn on common labelbar<br> ; pnlres@lbLabelAutoStride = True ; Spacing of lbar labels.<br> ; pnlres@lbBoxMinorExtentF = 0.13<br><br>txres = True<br>txres@txFontHeightF = 0.020<br>gsn_text_ndc(wks,"Beijing avg=258 ~F33~m~F21~gm~S~-3~N~",0.38,0.4935,txres)<br>gsn_panel(wks,(/plot1,plot2/),(/1,2/),pnlres)<br><br><br>end</i><br></div><br><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Cheers</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Tabish</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br clear="all"></div><div><div dir="ltr" class="gmail-m_-9197432283808582959gmail-m_-1452702375428934178gmail-m_-3639275124185427956gmail_signature"><div dir="ltr"><div><div><font size="1"><span style="font-family:tahoma,sans-serif">Tabish U Ansari<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">PhD student, Lancaster Environment Center<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">Lancaster Univeristy<br> <span>Bailrigg</span>, <span>Lancaster</span>, <br><span>LA1 4YW</span>, <span>United Kingdom</span></span></font><br></div></div></div></div></div></div></div>
_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>