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

Mary Haley haley at ucar.edu
Sun Aug 24 09:32:25 MDT 2014


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/20140824/6dc363ef/attachment.html 


More information about the ncl-talk mailing list