[ncl-talk] 回复: how to draw dashed lines using wrf_contour function?

Li Qi liqi123sh at qq.com
Sun Aug 24 19:24:39 MDT 2014


I deeply sorry for the previous email. I made a mistake in my code.


The resouce  "gsnContourPosLineDashPattern" works well! 


Thanks for your suggestions!‍


------------------ 原始邮件 ------------------
发件人: "Mary Haley";<haley at ucar.edu>;
发送时间: 2014年8月24日(星期天) 晚上11:32
收件人: "Li Qi"<liqi123sh at qq.com>; 
抄送: "ncl-talk"<ncl-talk at ucar.edu>; "wrfhelp"<wrfhelp at ucar.edu>; 
主题: Re: [ncl-talk] how to draw dashed lines using wrf_contour function?



Hi Li,


Normally, setting:
 

res at cnLineDashPattern = 2    ; or some value > 0 and < 16


 should work. However, I looked at the internal code for wrf_contour, and noticed it is setting:


res at gsnContourNegLineDashPattern = 1
 

This causes the general resource to be ignored. 


 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:
 
res at gsnContourPosLineDashPattern= 2     ; or some value > 0 and < 16

If you want all contour levels to be the same dash pattern, regardless of whether they are negative or positive, then set gsnContourNegLineDashPattern too.
 
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 gsnContourNegLineDashPattern resource will get ignored.
 
--Mary



 


On Thu, Aug 21, 2014 at 10:11 PM, Li Qi <liqi123sh at qq.com> wrote:
 Hi all,


I'd like to ask how to set the resources if I want to draw dashed lines using wrf_contour function.


Any advice will be appreciated.


 Best,


Li Qi

_______________________________________________
 ncl-talk mailing list
 List instructions, subscriber options, unsubscribe:
 http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140825/6763fe61/attachment.html 


More information about the ncl-talk mailing list