<div dir="ltr"><div class="gmail_default" style="font-size:small">Dz,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">When we are asked to look at a script for potential errors, it helps if you send a clean and short script that illustrates the problem. This is especially true if we don't have access to your data.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Your script has a lot of commented code, and it is also using gsn_panel to plot just one figure, when this is normally used to plot multiple figures. It's hard to tell where the problem could be.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">An empty plot can be the result of many things:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><ul style="font-size:small"><li>All missing data</li><li>contour levels that are out-of-range of the data</li><li>bad coordinate arrays<br></li><li>coordinate arrays that are out-of-range of the area you are requesting</li><li>etc</li></ul><div style="font-size:small">How is zAvg being calculated? Did you look at it after you calculated it? That is, did you use printVarSummary to look at its metadata? Did you look at the min/max of the data?</div><div style="font-size:small"><br></div><div style="font-size:small">printVarSummary(zAvg)</div><div style="font-size:small">printMinMax(zAvg,0)</div><div style="font-size:small"><br></div><div style="font-size:small">Are you getting any errors when you run this script?</div><div style="font-size:small"><br></div><div style="font-size:small">Please see this examples page which explains various things you need to look for in order to plot your data correctly:</div><div style="font-size:small"><br></div><div><a href="http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml">http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml</a><br></div><div><br></div><div>If you still have problems, then please post back to ncl-talk with follow-up.</div><div><br></div><div>Thanks, and good luck,</div><div><br></div><div>--Mary</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 16, 2017 at 9:32 PM, dale zuri <span dir="ltr"><<a href="mailto:dalezuri@gmail.com" target="_blank">dalezuri@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><div><div><div>Hi, <br></div>I checked the output numbers. Those values are  fine and ranging from 0-4. But the plot is empty. I would appreciate any help and suggestions.<br><br></div>Thanks<br></div>Dz<br></div>;;;;;;;;;;;Plot properties;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;<br><div>   wks  = gsn_open_wks("x11",Out)       ; specifies a ps plot<br>gsn_define_colormap(wks,""+<wbr>col+"")<br> plot = new(1,graphic)<br>   res                       = True<br>res@gsnDraw             = False<br>   res@gsnMaximize           = True             ; make large<br>   res@gsnFrame           =  False            ; make large<br>   res@cnFillOn              = True             ; turn on color<br>   res@cnLinesOn             = False            ; turn off contour lines<br>   res@cnLineLabelsOn        = False            ; turn off contour line labels<br>   res@cnInfoLabelOn       = False<br>res@lbLabelBarOn        = False           ; turn off individual cb's<br><br>res@gsnTickMarksOn = False<br>res@mpGridAndLimbOn       = False<br><br>   res@cnLevelSelectionMode  = "ManualLevels"   ; set manual contour levels<br>   res@cnMinLevelValF        =  0            ; set min contour level<br>   res@cnMaxLevelValF        =   4           ; set max contour level<br>   res@cnLevelSpacingF       =   0.5          ; set contour interval<br>   res@gsnAddCyclic          =  False<br>   res@mpFillOn              = False            ; turn off default background gray<br> res@mpLimitMode         = "Corners"<br><br>  res@mpRelativeCenterLon = True<br><br>  res@mpCenterLonF        = -152.2044<br><br>  res@mpRelativeCenterLat = True<br><br>  res@mpCenterLatF        = 90.<br><br>  res@mpRightCornerLonF   = -103.99817<br><br>  res@mpRightCornerLatF   = 67.58854<br><br>;  res@mpLeftCornerLonF    = -181.7859<br>  res@mpLeftCornerLonF    = -159.0859<br><br>  res@mpLeftCornerLatF    = 43.23277<br>res@<wbr>mpGeophysicalLineThicknessF = 3.0<br>res@mpGeophysicalLineColor = "Black"; (/22/)<br>;res@mpNationalLineThicknessF  = 3.0<br>res@mpOutlineBoundarySets = "GeophysicalAndUSStates" ; add state boundaries<br>res@mpNationalLineColor  = res@mpGeophysicalLineColor<br>res@mpUSStateLineThicknessF = 3.0<br>res@mpUSStateLineColor  = res@mpGeophysicalLineColor<br>res@gsnStringFont   = "helvetica-bold"<br>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;<br>; res@gsnCenterString       = year(0)+"-"+year(nyrs-1) <br>  res@gsnLeftString   = ""               ; add the gsn titles<br>  res@gsnRightString  = ""<br>;   res@tiMainString          = "Trend, Reanalysis-2m Temperature(~S~o~N~C)"    ; fili<br>;res@tiMainFontHeightF  = 0.02<br>res@gsnCenterStringFontHeightF<wbr>     = 0.020<br>res@gsnCenterString     = "A-Clim-"+mon+""+yr+""<br><br>plot = gsn_csm_contour_map_ce(wks,<wbr>zAvg,res)<br><br>;*****************************<wbr>*******************<br>; create panel<br>;*****************************<wbr>*******************<br> resP                  = True                   ; modify the panel plot<br> resP@gsnPanelLabelBar = True<br> resP@lbLabelFontHeightF = 0.020                ; set font height of Label Bar labels<br> resP@gsnPanelBottom   = 0.2                    ; shrink panel plot by setting bottom edge of plot<br> resP@gsnPanelTop      = 0.9                    ; shrink panel plot by setting top edge of plot<br> resP@pmLabelBarWidthF  = 0.55                 ; make thinner<br>;  resP@pmLabelBarHeightF = 0.05<br> resP@pmLabelBarHeightF = 0.1<br> resP@<wbr>gsnPanelYWhiteSpacePercent = 5.           ; increase spacing along Y-axis between panel plots<br> resP@cnLinesOn       = False                   ; turn off contour lines<br>;  resP@lbTitleString    = "2m-temperature(~S~o~N~C)"<br>  resP@lbTitleString    = ""+unit+""<br>  resP@lbLabelFont    = "helvetica-bold"          ; add common colorbar<br>  resP@lbTitleFont    = "helvetica-bold"          ; add common colorbar<br>  resP@lbTitleFontHeightF= .025                 ; make title smaller<br>   resP@cnLineLabelsOn  = False<br><br>  resP@txFontHeightF   = 0.03<br>  resP@txFont   = "helvetica-bold"<br>  ;resP@txString   = ""+Ind+"-"+Initial+""<br>  gsn_panel(wks,plot,(/1,1/),<wbr>resP)               ; now draw as one pl<br>end<br></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>