<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Yan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">These resources only work with the gsn_contour_shade function:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_contour_shade.shtml">http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_contour_shade.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">See the coneff_13.ncl example:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/coneff.shtml#ex13">http://www.ncl.ucar.edu/Applications/coneff.shtml#ex13</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 28, 2017 at 8:56 PM, WIND <span dir="ltr"><<a href="mailto:954051157@qq.com" target="_blank">954051157@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi all,</div><div><span style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px">I'm trying to draw the trend and its significance level above 95%, the data has been stored in <a href="http://jantest.nc" target="_blank">jantest.nc</a>. But it always warning </span></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">gsnShadeFillType is not a valid resource in re_contour at this time</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">gsnShadeHigh is not a valid resource in re_contour at this time</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">I have referred to this: <a href="http://www.ncl.ucar.edu/Applications/Scripts/coneff_7.ncl" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/Scripts/coneff_7.<wbr>ncl</a></span></font></div><div>so I just don't know why and how to solve this problem. </div><div><span style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px">It's very appreciate if you could help me find a way to sove the problem. Thanks a lot!</span></div><div><span style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px"><br></span></div><div><span style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px">Here is my script.</span></div><div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px"><br></span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">load "$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_code.ncl"</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">load "$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_csm.ncl"</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">load "$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/contributed.<wbr>ncl"</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">load "$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/shea_util.ncl"</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">f = addfile("<a href="http://jantest.nc" target="_blank">jantest.nc</a>","r")</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">trend=f->jantrend</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">sig=f->sig</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px"><br></span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">wks = gsn_open_wks("eps" ,"re") </span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">res = True </span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">res@gsnDraw = True </span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">res@cnLevelSelectionMode = "ManualLevels"</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">res@cnMinLevelValF = -4</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">res@cnMaxLevelValF = 4</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">res@cnLevelSpacingF = 0.5</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">res@cnLineLabelInterval = 1</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">res@cnSmoothingOn = True</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">plot0 = gsn_csm_contour(wks,trend,res)</span></font></div><div><br></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">opt = True</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">opt@gsnShadeFillType = "pattern" </span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">opt@gsnShadeHigh =17 </span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">plota = gsn_csm_contour(wks,sig,opt) </span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">plota = ShadeGtContour(plota,0.95,17)</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">overlay(plot0,plota) </span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">draw(plot0)</span></font></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px">frame(wks)</span></font></div></div><div><font face="lucida Grande, Verdana, Microsoft YaHei"><span style="line-height:23.7999992370605px"><br></span></font></div><div><span style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px">Sincerely, </span></div><div><span style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.7999992370605px">Yan</span></div><div><br></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>