<div dir="ltr"><div class="gmail_default" style="font-size:small">I think what you want is this:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="courier new, monospace"><span style="font-size:13px">res@cnLevelSelectionMode = "ExplicitLevels" </span><br style="font-size:13px"><span style="font-size:13px">res@cnLevels = (/-35, -25, -22, -18, -14, -10, -7, -5, -3, -2,-1,-.25, 0 , \</span></font></div><div class="gmail_default" style="font-size:small"><font face="courier new, monospace"><span style="font-size:13px"> .25, 1, 2, 3, 5, 7, 10, 14, 18, 22, 25 , 35 /)</span><br style="font-size:13px"><span style="font-size:13px">res@cnFillOn = True</span><br style="font-size:13px"><span style="font-size:13px">res@cnFillColors = (/16, 25, 45, 50, 60, 65, 81, 70, 78, 85, 90 , 0, \</span></font></div><div class="gmail_default" style="font-size:small"><font face="courier new, monospace"><span style="font-size:13px"> 0, 0, 90, 85, 78, 70, 81, 65, 60, 50, 45, 25, 16 /)</span><br style="font-size:13px"></font></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:13px">cnFillColors is meant to take an array of color index values into the current workstation color map, which is usually set by gsn_define_colormap.</span></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:13px">cnFillPalette is meant to take an actual color map name, like "rainbow", which will be applied to a color contour plot, and fully spanned by default. You shouldn't use cnFillPalette and cnFillColors together.</span></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:13px">--Mary</span></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 18, 2014 at 6:51 AM, Xi Chang <span dir="ltr"><<a href="mailto:xi.chang01@gmail.com" target="_blank">xi.chang01@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>Anybody know why did I get this error?<br><br>res@cnLevelSelectionMode = "ExplicitLevels" <br>res@cnLevels = (/-35, -25, -22, -18, -14, -10, -7, -5, -3, -2,-1,-.25, 0 , .25, 1, 2, 3, 5, 7, 10, 14, 18, 22, 25 , 35 /)<br>res@cnFillColors = True<br>res@cnFillPalette = (/16, 25, 45, 50, 60, 65, 81, 70, 78, 85, 90 , 0, 0, 0, 90, 85, 78, 70, 81, 65, 60, 50, 45, 25, 16 /)<br><br></div>Thank you<br><div><br><br></div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>