<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">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">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">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">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">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_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>