[ncl-talk] png without station lines, pdf with??

Rick Brownrigg brownrig at ucar.edu
Sun Feb 19 20:22:06 MST 2017


Hi Barry,

I'm not really sure what is going on here, but one thing that stands out is
the call to "frame(wks)" at the end of your script. Normally, that is not
necessary unless the resources gsnDraw and gsnFrame are set to False (their
defaults are True).  As you likely know, its a language idiom to set these
two resources to False when wanting to overlay additional graphics on top
of a plot, and then after all drawing functions have been called, one
performs this little idiom:

    ....
    draw(plot)
    frame(wks)

Which draws the plot and all overlays and advances the "frame"
(page/next-image/etc).

Pure speculation on my part, but perhaps the explicit call to frame(wks)
when gsnFrame is already True is the issue (it shouldn't be, but...).
Maybe try removing this call?  Or add a call to "draw(mp)" just before the
"frame(wks)".

Rick



On Sun, Feb 19, 2017 at 12:07 AM, Barry Lynn <barry.h.lynn at gmail.com> wrote:

> Hi:
>
> When I plot the namelist.wps as a pdf the station lines appear. When I
> plot it as a png, they disappear.
>
> Is there a simple fix for this?
>
> Thanks
>
> --
> Barry H. Lynn, Ph.D
> Senior Lecturer,
> The Institute of the Earth Science,
> The Hebrew University of Jerusalem,
> Givat Ram, Jerusalem 91904, Israel
> Tel: 972 547 231 170
> Fax: (972)-25662581
>
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108 <(914)%20432-3108>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> 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/20170219/9b9532ac/attachment.html 


More information about the ncl-talk mailing list