<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Handwriting";
        panose-1:3 1 1 1 1 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Mary,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Thanks for create this example!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="background:white"><b><span style="font-size:17.0pt;font-family:&quot;Lucida Handwriting&quot;;color:#1F497D">Wei Huang</span></b><span style="font-size:9.5pt;font-family:&quot;Lucida Handwriting&quot;;color:#222222"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Mary Haley [mailto:haley@ucar.edu]
<br>
<b>Sent:</b> Sunday, August 23, 2015 11:40 PM<br>
<b>To:</b> Wei Huang<br>
<b>Cc:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] contour line label format<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">Hi Wei,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">The xxYYYYFormat resources don't work like the formatting in sprintf or sprinti.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Please see this tickmark formatting example image, which shows what the different strings are you can use:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.ncl.ucar.edu_Applications_Images_tm-5F8-5Flg.png&amp;d=BQMFaQ&amp;c=qHNyRuJKHYeI-vwTnTfWXq4fkZpyjWUA1LcPL7eQSSQ&amp;r=6RmpIe4P-G8omsHqYS85uBS-3JaNVk3lvOG-hmdOrr8&amp;m=t3odcgioPsQgU6JRWvsdVwd0gwOEVV5hMSrdBndd3Mo&amp;s=MLnAW7GwBKTZVdLQtMdV8QpGZ-SOLOOef0GWLCeP2kI&amp;e=" target="_blank">http://www.ncl.ucar.edu/Applications/Images/tm_8_lg.png</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">You can also read this description:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.ncl.ucar.edu_Document_Graphics_format-5Fspec.shtml&amp;d=BQMFaQ&amp;c=qHNyRuJKHYeI-vwTnTfWXq4fkZpyjWUA1LcPL7eQSSQ&amp;r=6RmpIe4P-G8omsHqYS85uBS-3JaNVk3lvOG-hmdOrr8&amp;m=t3odcgioPsQgU6JRWvsdVwd0gwOEVV5hMSrdBndd3Mo&amp;s=J9VbOkOGqnZf1wKNqvP8bW5obuQuB7zN4g84s5ugnxg&amp;e=">http://www.ncl.ucar.edu/Document/Graphics/format_spec.shtml</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">I created a new example, since we didn't have any that use this resource:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.ncl.ucar.edu_Applications_contourLab.shtml-23ex8&amp;d=BQMFaQ&amp;c=qHNyRuJKHYeI-vwTnTfWXq4fkZpyjWUA1LcPL7eQSSQ&amp;r=6RmpIe4P-G8omsHqYS85uBS-3JaNVk3lvOG-hmdOrr8&amp;m=t3odcgioPsQgU6JRWvsdVwd0gwOEVV5hMSrdBndd3Mo&amp;s=ZNuQ_nbWpHAZoQA2TihMpeuz17r-dKyP9ToS_3sKHC4&amp;e=">http://www.ncl.ucar.edu/Applications/contourLab.shtml#ex8<br>
</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">This example uses:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<pre style="word-wrap:break-word;white-space:pre-wrap"><span style="color:black">&nbsp; res@cnLineLabelFormat&nbsp;&nbsp;&nbsp; = &quot;<a href="mailto:0@;*.3f">0@;*.3f</a>&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; Only one value after decimal point<o:p></o:p></span></pre>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
<div>
<p class="MsoNormal">--Mary<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On Fri, Aug 21, 2015 at 12:11 PM, Wei Huang &lt;<a href="mailto:whuang@univ-wea.com" target="_blank">whuang@univ-wea.com</a>&gt; wrote:<o:p></o:p></p>
<p class="MsoNormal">Hi, there,<br>
<br>
I am doing contour lines, and want to label those lines properly.<br>
I need the line label's to have one decimal, so I set.<br>
res@cnLineLabelFormat&nbsp; &nbsp; &nbsp; = &quot;%6.1f&quot;<br>
But it seems it did not work well, but only have the integers.<br>
<br>
Here is the part of the resource:<br>
<br>
&nbsp; &nbsp;res@cnMinLevelValF&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 1010.0<br>
&nbsp; res@cnMaxLevelValF&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 1020.0<br>
&nbsp; res@cnLineLabelInterval&nbsp; &nbsp; &nbsp;= 1<br>
&nbsp; res@cnLevelSpacingF&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 0.5<br>
&nbsp; res@cnLineLabelFormat&nbsp; &nbsp; &nbsp; = &quot;%6.1f&quot;<br>
<br>
What I hope to get the line labels to have:<br>
1015.0, 1015.5, 1016.0<br>
Not (as it happens now):<br>
1015 1015 1016.<br>
<br>
Thanks,<br>
<br>
Wei Huang<br>
<a href="mailto:whuang@univ-wea.com" target="_blank">whuang@univ-wea.com</a><br>
<br>
<br>
_______________________________________________<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="https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&amp;d=BQMFaQ&amp;c=qHNyRuJKHYeI-vwTnTfWXq4fkZpyjWUA1LcPL7eQSSQ&amp;r=6RmpIe4P-G8omsHqYS85uBS-3JaNVk3lvOG-hmdOrr8&amp;m=t3odcgioPsQgU6JRWvsdVwd0gwOEVV5hMSrdBndd3Mo&amp;s=G6zH9-M5oZblc1rB26begg_zyBJ7i4CaY1Hhh5qqWWk&amp;e=" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
</body>
</html>