<div dir="ltr">Hi Dennis, <div><br></div><div>I'm so sorry for causing this inconvenience. As I didn't see my question posted, I do it again. Thank you for your instruction. The problem is solved. It turns out some values are set to be _FillValue : 9.96921e+36 as I create a new metric in the first place. <span style="font-size:14px">Thank you</span></div><div><br></div><div>CiaoKai</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-19 20:51 GMT+08:00 Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I think you already posted this question.<br><br></div><div>You did not do As I suggested:<br><br>1]<br>The 'golden-rule' of data processing is **look at your data**.<br>Did you look at the variable?<span><br><br><div style="font-size:14px">file = "<a href="http://dox_mean_2010_05x05.nc/" target="_blank">dox_mean_2010_05x05.nc</a>"</div><div style="font-size:14px">a = addfile(file,"r")<br></div></span><div style="font-size:14px">dox = a->ozone ;720x360x24<br><br>do i=0,2 ; 23<div> printMinMax(dox(:,:,i), 0) ; print Min and max for each level<br></div><div>end do</div><br></div>Maybe the values are all _FillValue.<br></div><div><br>===<br><br>[2]<br></div>Please use the following simple code. This illustrates what you get when you try to plot a variable that contains only _FillValue<br><br> x = new ( (/50,30/), "float", 1e10) ; all _FillValue<br> wks = gsn_open_wks("x11","tst_FillValue")<br> plot = gsn_csm_contour(wks,x,False) ; contour the variable<br><br><br>warning:ContourPlotInitialize: no valid values in scalar field; ContourPlot not possible:[errno=1101]<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, Jun 18, 2016 at 9:22 AM, Ciao Kai Liang <span dir="ltr"><<a href="mailto:ciaokailiang@gmail.com" target="_blank">ciaokailiang@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="h5"><div dir="ltr">Hi, <div><br></div><div>I have one variable "dox" with (360x720x24). It is ozone global map and contains 24 different perturbation results. I would like to plot them on multiple panels in a single sheet. However, I don't know why I can't plot the first 3 (see pic). The output of "dox"from printVarSummary and plotting script shows below. </div><div><br></div><div>Thx</div><div><div data-smartmail="gmail_signature"><div dir="ltr">CiaoKai<div><br></div><div>dox-----------------------------------------------------------------------------</div><div><div>Variable: dox</div><div>Type: float</div><div>Total Size: 24883200 bytes</div><div> 6220800 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [lat | 360] x [lon | 720] x [24]</div><div>Coordinates:</div><div> lat: [-89.75..89.75]</div><div> lon: [-179.75..179.75]</div><div>Number Of Attributes: 1</div><div> _FillValue : 9.96921e+36</div></div><div><br></div><div>plot script----------------------------------------------------------------------------------------------</div><div><div><br></div><div>plots = new(24,graphic)</div><div> wks_type = "png"</div><div> wks_name = "dox_panel"</div><div> wks = gsn_open_wks(wks_type,wks_name) ; send graphics to PDF file</div><div><br></div><div> res = True</div><div> res@gsnDraw = False ; don't draw</div><div> res@gsnFrame = False ; don't advance frame</div><div><br></div><div> res@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels</div><div> res@cnMinLevelValF = -2. ; set min contour level</div><div> res@cnMaxLevelValF = 2. ; set max contour level</div><div> res@cnLevelSpacingF = 1. ; set contour spacing</div><div><br></div><div> res@cnFillOn = True</div><div> res@cnLinesOn = False</div><div> res@cnLineLabelsOn = False</div><div> res@lbLabelBarOn = False</div><div> res@cnFillPalette = "BlWhRe" ; Blue-Red colormap</div><div> res@gsnRightString = "ppb" ; "~" is txFuncCode</div><div><br></div><div> leftstring = (/"a","g","m","b","h","n",\</div><div> "c","i","o","d","j","p",\</div><div> "e","k","q","f","l","r",\</div><div> "s","t","u","v","w","X"/)</div><div><br></div><div> do i=0,23</div><div> res@gsnLeftString = "("+leftstring(i)+")"</div><div> plots(i) = gsn_csm_contour_map_ce(wks,dox(:,:,i),res)</div><div> end do</div></div><div><br></div><div><div> pnlres = True</div><div> pnlres@txString = "Dox"</div><div> pnlres@gsnPanelLabelBar = True</div><div> pnlres@lbLabelAutoStride = True</div><div><br></div><div> gsn_panel(wks,plots,(/6,4/),pnlres)</div></div></div></div>
</div></div>
<br></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>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>---------------------------------------------------------------------------------------------------------</div>CiaoKai Liang<div>919-808-8069</div><div><a href="mailto:ckliang@live.unc.edu" target="_blank">ckliang@live.unc.edu</a></div><div>University of North Carolina, Gillings School of Global Public Health<br>170 Rosenau Hall, CB #7400 | 135 Dauer Drive | Chapel Hill, NC 27599-7400</div><div>------------------------------------------------------------------------------------------------------------</div><div><br></div></div></div>
</div>