<div dir="ltr"><div class="gmail_default" style="font-size:small">Zhifeng,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks for providing the files offline. I see what the problem is, and it&#39;s a bit complex to explain here. It&#39;s a bug that&#39;s been in our code for awhile. It was marked to be fixed for NCL V6.5.0, but I have elevated it to be fixed for V6.4.1.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I do have a fix:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Save the attached files &quot;add_labelbar_630.ncl&quot; and &quot;add_labelbar_640.ncl&quot;.  </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Which one you use depends on whether you have NCL V6.4.0 (use add_labelbar_640,ncl) or NCL V6.3.0 or earlier (use add_labelbar_630.ncl).</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Add the following line to your script, after any other potential &quot;load&quot; commands:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">load &quot;./add_labelbar_xxx.ncl&quot;</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Replacing &quot;xxx&quot; with the appropriate 630 or 640.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Try your script again and see if it works.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You only need this fixed if you need to set cnLineLabelFormat.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Let me know if it doesn&#39;t work for you.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 21, 2017 at 12:51 PM, Mary Haley <span dir="ltr">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;</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 class="gmail_default" style="font-size:small">Zhifeng,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I still can&#39;t reproduce this problem using the numbers you gave me.  I get exponential labels by default, using either a vertical or horizontal labelbar.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Can you try the attached program and let me know what you get?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It would help if I can get your data and script.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you are calling gsn_csm_contour or gsn_csm_contour_map, then you can set the following special resource:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">res@gsnDebugWriteFileName = &quot;formary&quot;<br></div><div class="gmail_default"><p class="m_-8968052199875782502gmail-p1" style="font-size:small">and it will cause the data that is being contoured to be written to a NetCDF file called &quot;<a href="http://formary.nc" target="_blank">formary.nc</a>&quot;, and it will create a pared down NCL script that you can send me called formary.ncl.</p><p class="m_-8968052199875782502gmail-p1" style="font-size:small">You can send me the two files offline if you like, or use our ftp:</p><p class="m_-8968052199875782502gmail-p1" style="font-size:small"><a href="http://www.ncl.ucar.edu/report_bug.shtml#HowToFTP" target="_blank">http://www.ncl.ucar.edu/<wbr>report_bug.shtml#HowToFTP</a><br></p><p class="m_-8968052199875782502gmail-p1">Thanks,</p><p class="m_-8968052199875782502gmail-p1">--Mary</p><p class="m_-8968052199875782502gmail-p1"><br></p></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 20, 2017 at 10:16 AM, Zhifeng Yang <span dir="ltr">&lt;<a href="mailto:yangzf01@gmail.com" target="_blank">yangzf01@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Mary,<div><br></div><div>Maybe it’s better to tell you the maximum and minimum data. The data range from -0.00001 to 0.00001. And I want contour levels with 0.0000001 interval. If you have any data in hand, you can simply divid by a big number for the whole data, then get very small data, then you can draw with very small data.</div><div><br></div><div>Thank you for your concern, Mary.</div><span class="m_-8968052199875782502HOEnZb"><font color="#888888"><div><br></div></font></span><div><span class="m_-8968052199875782502HOEnZb"><font color="#888888">Zhifeng</font></span><div><div class="m_-8968052199875782502h5"><br><div><blockquote type="cite"><div>On Mar 20, 2017, at 10:40 AM, Mary Haley &lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt; wrote:</div><br class="m_-8968052199875782502m_-7519302019928951574Apple-interchange-newline"><div><div dir="ltr"><div class="gmail_default" style="font-size:small">Zhifeng,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">What you are setting looks correct.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I was going to try to create an example so I could make sure this resource works as expected, but it&#39;s hard to get NCL to do a mix of exponential and fractional labels.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Can you either provide the data you are trying to contour or else tell me what the exact min/max is of your data, and what contour levels you are using, and I&#39;ll see if I can reproduce the problem.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 19, 2017 at 8:01 PM, Zhifeng Yang <span dir="ltr">&lt;<a href="mailto:yangzf01@gmail.com" target="_blank">yangzf01@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Dennis,<div><br></div><div>I tried </div><div><br></div><div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Courier;color:rgb(52,188,38);background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">cres@</span><span style="font-variant-ligatures:no-common-ligatures">cnLineLabelFormat</span><span style="font-variant-ligatures:no-common-ligatures">= </span><span style="font-variant-ligatures:no-common-ligatures;color:#c33720">&quot;0@!;*^se&quot;</span></div></div><div>But it doesn’t work. I also used other combination. It seems no effect at all.</div><div><br></div><div>Thank you</div><span class="m_-8968052199875782502m_-7519302019928951574HOEnZb"><font color="#888888"><div>Zhifeng</div></font></span><div><div class="m_-8968052199875782502m_-7519302019928951574h5"><div><br><div><blockquote type="cite"><div>On Mar 19, 2017, at 6:53 PM, Dennis Shea &lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt; wrote:</div><br class="m_-8968052199875782502m_-7519302019928951574m_-5171428634351064981Apple-interchange-newline"><div><div dir="ltr"><div><div><a href="http://www.ncl.ucar.edu/Applications/tickmarks.shtml" target="_blank">http://www.ncl.ucar.edu/Applic<wbr>ations/tickmarks.shtml</a><br></div>Example 8<br><br></div>may be what you want.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 19, 2017 at 4:01 PM, Zhifeng Yang <span dir="ltr">&lt;<a href="mailto:yangzf01@gmail.com" target="_blank">yangzf01@gmail.com</a>&gt;</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><div><div>Hi <br><br></div>I use some very small numbers to plot contour image. Since they are very small, like -0.000001, the label bar looks very wield. So I want to display the small number as exponential format on the label bar, such as -1.0e(-6) or -1.0*10^-6, rather than -0.000001. Do you have any ideas?<br><br></div>Thank you<span class="m_-8968052199875782502m_-7519302019928951574m_-5171428634351064981HOEnZb"><font color="#888888"><br></font></span></div><span class="m_-8968052199875782502m_-7519302019928951574m_-5171428634351064981HOEnZb"><font color="#888888">Zhifeng<br></font></span></div>
<br>______________________________<wbr>_________________<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="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div><br>______________________________<wbr>_________________<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="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>