<div>Dear Mary,</div><div><br></div><div>I deeply appreciate your help. You are so awesome!</div><div><br></div><div>I've tried your advice, but the resource "<span style="font-size: small; line-height: 19.5px;">res@gsnContourPosLineDashPattern= 2<span id="_editor_bookmark_start_0" style="display: none; line-height: 0px;">‍</span></span><span style="line-height: 1.5;">" doesn't seem to exist in function "wrf_contour".</span></div><div><span style="line-height: 1.5;"><br></span></div><div>Instead of NCL WRF function, I use the general contour function "<span style="white-space: pre-wrap; line-height: normal;">gsn_csm_contour<span id="_editor_bookmark_start_1" style="display: none; line-height: 0px;">‍</span></span><span style="line-height: 1.5;">" and set "</span><span style="font-size: small; line-height: 19.5px;">res@cnLineDashPattern = 2" to plot dashed lines.<span id="_editor_bookmark_start_2" style="display: none; line-height: 0px;">‍</span></span></div><div><span style="font-size: small; line-height: 19.5px;"><br></span></div><div><span style="font-size: small; line-height: 19.5px;">Best,</span></div><div><span style="font-size: small; line-height: 19.5px;"><br></span></div><div><span style="font-size: small; line-height: 19.5px;">Li Qi</span></div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------&nbsp;原始邮件&nbsp;------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b>&nbsp;"Mary Haley";&lt;haley@ucar.edu&gt;;</div><div><b>发送时间:</b>&nbsp;2014年8月24日(星期天) 晚上11:32</div><div><b>收件人:</b>&nbsp;"Li Qi"&lt;liqi123sh@qq.com&gt;; <wbr></div><div><b>抄送:</b>&nbsp;"ncl-talk"&lt;ncl-talk@ucar.edu&gt;; "wrfhelp"&lt;wrfhelp@ucar.edu&gt;; <wbr></div><div><b>主题:</b>&nbsp;Re: [ncl-talk] how to draw dashed lines using wrf_contour function?</div></div><div><br></div><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Li,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Normally, setting:</div><div class="gmail_default" style="font-size:small">
<br></div><div class="gmail_default" style="font-size:small">res@cnLineDashPattern = 2 &nbsp; &nbsp;; or some value &gt; 0 and &lt; 16</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
should work. However, I looked at the internal code for wrf_contour, and noticed it is setting:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">res@gsnContour<span class="">Neg</span>LineDashPattern = 1</div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This causes the general resource to be ignored. <br><br></div><div class="gmail_default" style="font-size:small">
I'm not sure yet if this is a bug or feature, but I believe you can work around it by setting the "Pos" version of this resource:</div><div class="gmail_default" style="font-size:small">







<p class="">res@gsnContourPosLineDashPattern= 2 &nbsp;&nbsp; &nbsp;; or some value &gt; 0 and &lt; 16</p><p class="">If you want all contour levels to be the same dash pattern, regardless of whether they are negative or positive, then set gsnContour<span class="">Neg</span>LineDashPattern too.</p>
<p class="">I've CC'ed wrfhelp on this, in case they have some idea about how they'd like for this to work. We could modify the wrf_contour code so that if the user sets cnLineDashPattern, the gsnContour<span class="">Neg</span>LineDashPattern resource will get ignored.</p>
<p class="">--Mary</p><div><br></div></div>







</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 10:11 PM, Li Qi <span dir="ltr">&lt;<a href="mailto:liqi123sh@qq.com" target="_blank">liqi123sh@qq.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>Hi all,</div><div><br></div><div>I'd like to ask how to set the resources if I want to draw dashed lines using wrf_contour function.</div><div><br></div><div>Any advice will be appreciated.</div><div><br></div><div>
Best,</div><div><br></div><div>Li Qi</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></div>