<div dir="ltr"><div class="gmail_default" style="font-size:small">Jonathan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">By default, contour levels in NCL always represent the values *between* colors, which means you will have one fewer levels than color boxes.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You simply need to provide one less contour level:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"> res@cnLevels = (/1,2,3,4,5,6,7,8,9,10,11,12,</span><span style="font-family:arial,sans-serif;font-size:12.8000001907349px">13,14,15,16,17,18,19,20,21,22,</span><span style="font-family:arial,sans-serif;font-size:12.8000001907349px">23,24/)</span><br style="font-family:arial,sans-serif;font-size:12.8000001907349px"></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px">Which, by the way, can be done with:</span></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"> res@cnLevels = ispan(1,24,1)</span><br style="font-family:arial,sans-serif;font-size:12.8000001907349px"></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px"><br></span></div><div class="gmail_default"><font face="arial, sans-serif">There are other ways to label this labelbar, depending on what your contour levels actually represent. See example 14 at:</font></div><div class="gmail_default"><font face="arial, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, sans-serif"><a href="http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex14">http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex14</a><br></font></div><div class="gmail_default"><font face="arial, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, sans-serif">--Mary</font></div><div class="gmail_default"><font face="arial, sans-serif"><br></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 8, 2014 at 8:42 AM, jbuzan <span dir="ltr"><<a href="mailto:jbuzan@purdue.edu" target="_blank">jbuzan@purdue.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello NCL-Talk,<br>
<br>
I have a contour issue.<br>
I am using explicit color bars from a created color map: 25 levels, and 25 colors<br>
res@cnLevels = (/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25/) ;<br>
res@gsnSpreadColorStart = 3 ;<br>
res@gsnSpreadColorEnd = 27 ;<br>
<br>
However, when it makes the color map, NCL 6.1.0 places one extra color into the map. Additionally, the dark red color is the #5, and should be the light tan color.<br>
<br>
I am not sure how to fix this.<br>
<br>
-Jonathan<br>
<br>
<br><br>
<br>
Colormap colors:<br>
;r g b<br>
255 255 255 ; white background<br>
0 0 0 ; black foreground<br>
<br>
0 0 0<br>
<br>
153 84 15<br>
178 111 44<br>
204 142 81<br>
229 177 126<br>
255 216 178<br>
153 15 15<br>
178 44 44<br>
204 81 81<br>
229 126 126<br>
255 178 178<br>
107 153 15<br>
133 178 44<br>
163 204 81<br>
195 229 126<br>
229 255 178<br>
15 107 153<br>
44 133 178<br>
81 163 204<br>
126 195 229<br>
178 229 255<br>
38 15 153<br>
66 44 178<br>
101 81 204<br>
143 126 229<br>
191 178 255<br>
<br>
0 0 0<br>
<br>
<br>
<br>
<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>