<div dir="ltr">Hi all,<div><br></div><div>I solved this problem this morning. While the biggest issue with my example was the lack of a statement to convert the input from string to a numeric type, I did have such provisions in my actual code of interest.</div>

<div><br></div><div>It turns out that the order with which contour resources are set *does* matter. If cnLevels or cnMinLevelValF, cnMaxLevelValF, and cnLevelSpacingF (depending on selection mode) are set before the cnLevelSelectionMode is set, the previously-set limits are essentially ignored (or perhaps partially reset?). I can&#39;t quite say what was happening as I didn&#39;t look into it, but just wanted to clarify that it is crucial to set cnLevelSelectionMode ***before*** setting any other related resources with the &#39;setvalues&#39; command.</div>

<div><br></div><div><br></div><div>Kyle<br clear="all"><div><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div>

<div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div>
<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Kyle Griffin</b> <span dir="ltr">&lt;<a href="mailto:ksgriffin2@wisc.edu">ksgriffin2@wisc.edu</a>&gt;</span><br>

Date: Mon, Aug 25, 2014 at 6:29 PM<br>Subject: Setting contour levels with setvalues<br>To: ncl-talk &lt;<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>&gt;<br><br><br><div dir="ltr">Hi all,<div><br></div><div>I have either found a bug or am missing other resources that need setting. My problem stems from not being able to properly limit the min and max levels with cnMinLevelValF/cnMaxLevelValF in ManualLevels mode and cnLevels with ExplicitLevels mode. While this doesn&#39;t seem to always occur, I&#39;ve attached a script which duplicates this problem. There might be a few unnecessary lines in the script as well, as I&#39;ve been testing quite a bit of the object-oriented setvalues/getvalues commands. You can test each mode by commenting/uncommenting the pair of vresources/vresvalue variables just inside the begin statement. I think this is all self-contained (aside from the two gsm load statements), but let me know if anything doesn&#39;t work when the script is run. This is on a 64-bit linux system with 6.1.2. Thanks,</div>


<div><br></div><div><br></div><div>Kyle</div><div><div><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div>


<div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div>
</div></div>
</div><br></div></div>