<div dir="ltr"><div>Hi Miao,<br></div><div>This is a well known issue that is related to a bug in ghostscript. See the note here:<br><a href="http://www.ncl.ucar.edu/prev_releases.shtml#RasterAndMissingValueAreas6.2.0">http://www.ncl.ucar.edu/prev_releases.shtml#RasterAndMissingValueAreas6.2.0</a><br><br></div><div>Hope that helps. If not, please respond to ncl-talk.<br></div><div>Adam<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 22, 2014 at 9:47 AM, Miao Yu <span dir="ltr"><<a href="mailto:yuuum@163.com" target="_blank">yuuum@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="BORDER-LEFT-WIDTH:0px;FONT-SIZE:10.5pt;FONT-FAMILY:微软雅黑;BORDER-RIGHT-WIDTH:0px;BORDER-BOTTOM-WIDTH:0px;COLOR:#000000;MARGIN:12px;LINE-HEIGHT:1.5;BORDER-TOP-WIDTH:0px" marginheight="0" marginwidth="0">
<div>Thank you so much Mary!</div>
<div> </div>
<div>That fixed my problem. VERY awesome!!</div>
<div> </div>
<div>Can I ask another question? I encounter another problem that the map cannot
be filled with color in some grids sometimes. Please kindly see it attached. In
the attached figure, the North and South America is blank. Only some strips are
drawn. Normally, the grids over land are colored everywhere. </div>
<div> </div>
<div>I have this problem when I use NCL6.2.1 in Cygwin or NCL6.1.2 in
Linux, and create the figures in PS files. I don't have this problem if I
create PNG files. I remember but I'm not sure I didn't have this problem when I
used NCL6.2.0 in Linux and in whatever format. </div>
<div> </div>
<div>Is this caused also by the different version of NCL I use or due to my
computer performance?</div>
<div> </div>
<div>Many thanks and best regards!</div>
<div>Miao</div>
<div> </div>
<div>
<hr style="BORDER-TOP:#c0c0c0 1px solid;min-height:1px;BORDER-RIGHT:0px;BORDER-BOTTOM:0px;BORDER-LEFT:0px">
</div>
<div style="FONT-SIZE:10pt;FONT-FAMILY:Verdana">
<div><strong>发件人:</strong>Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></div>
<div><strong>发送时间:</strong>2014-09-22 22:46</div>
<div><strong>主题:</strong>Re: Re: [ncl-talk] plotting in Cygwin</div>
<div><strong>收件人:</strong>"yuuum"<<a href="mailto:yuuum@163.com" target="_blank">yuuum@163.com</a>></div>
<div><strong>抄送:</strong>"<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>"<<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>></div>
<div> </div>
<div>
<div dir="ltr">
<div class="gmail_default" style="FONT-SIZE:small">Miao,</div>
<div class="gmail_default" style="FONT-SIZE:small"><br></div>
<div class="gmail_default" style="FONT-SIZE:small">It's a bit hard to see the
images when you send them in a panel plot, but I think I can see what you are
talking about.</div>
<div class="gmail_default" style="FONT-SIZE:small"><br></div>
<div class="gmail_default" style="FONT-SIZE:small">There was a rather major
change to NCL V6.2.0 that is probably the cause of the differences you are
seeing. Please see:</div>
<div class="gmail_default" style="FONT-SIZE:small"><br></div>
<div class="gmail_default"><a href="http://www.ncl.ucar.edu/prev_releases.shtml#RasterAndMissingValueAreas6.2.0" target="_blank">http://www.ncl.ucar.edu/prev_releases.shtml#RasterAndMissingValueAreas6.2.0</a><br></div>
<div class="gmail_default"><br></div>
<div class="gmail_default">The borders that you see in the Cygwin version are
probably the outlines of the gray map underneath. As suggested in the above URL:
in the Cygwin version of your script, try adding this line to see if it fixes
the problem:</div>
<div class="gmail_default"><br></div>
<div class="gmail_default">
<p><span> res@<a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnMissingValFillColor" target="_blank"><span><i>cnMissingValFillColor</i></span></a>
= "white"</span></p>
<p><span>--Mary</span></p>
<p><span><br></span></p></div>
<div class="gmail_default"><br></div>
<div class="gmail_default"><br></div>
<div class="gmail_default" style="FONT-SIZE:small"><br></div></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Sep 19, 2014 at 10:22 AM, yuuum <span dir="ltr"><<a href="mailto:yuuum@163.com" target="_blank">yuuum@163.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid"><u></u>
<div style="BORDER-LEFT-WIDTH:0px;FONT-SIZE:10.5pt;FONT-FAMILY:微软雅黑;BORDER-RIGHT-WIDTH:0px;BORDER-BOTTOM-WIDTH:0px;COLOR:#000000;MARGIN:12px;LINE-HEIGHT:1.5;BORDER-TOP-WIDTH:0px" marginheight="0" marginwidth="0">
<div>Thanks Mary for your response!</div>
<div> </div>
<div>Actually those two JPEG images were snipped in my windows
system and saved as JPEG format. The original files are in PS format.
I attached them here but I'm not sure whether they can be received
through email due to their sizes (each of them larger than 1M but less than
1.5M). I ftp them in <a href="ftp://ftp.cgd.ucar.edu" target="_blank">ftp.cgd.ucar.edu</a> also. They have the same name, that
is, LinuxFig.ps and CygwinFig.ps.</div>
<div> </div>
<div>If I produce the figure directly in PNG format, the figure seems fine.
The figure is CygwinFig.png attached here and in <a href="ftp://ftp.cgd.ucar.edu" target="_blank">ftp.cgd.ucar.edu</a>. However, I'm asked to provide figures
in PS or PDF format for publication. The PDF figure has the same
problem, similar as the PS figure.</div>
<div> </div>
<div>I forgot to mention that I'm using NCL6.2.1 in Cygwin. In Linux that is
version 6.1.2.</div>
<div> </div>
<div>Thanks!</div>
<div>Miao</div>
<div> </div>
<hr style="BORDER-TOP:#c0c0c0 1px solid;BORDER-RIGHT:0px;BORDER-BOTTOM:0px;MIN-HEIGHT:1px;BORDER-LEFT:0px">
<div style="FONT-SIZE:10pt;FONT-FAMILY:Verdana">
<div><strong>发件人:</strong>Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></div>
<div><strong>发送时间:</strong>2014-09-19 21:14</div>
<div><strong>主题:</strong>Re: [ncl-talk] plotting in Cygwin</div>
<div><strong>收件人:</strong>"yuuum"<<a href="mailto:yuuum@163.com" target="_blank">yuuum@163.com</a>></div>
<div><strong>抄送:</strong>"ncl-talk"<<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>></div>
<div>
<div>
<div> </div>
<div>
<div dir="ltr">
<div class="gmail_default" style="FONT-SIZE:small">Hi Miao,</div>
<div class="gmail_default" style="FONT-SIZE:small"><br></div>
<div class="gmail_default" style="FONT-SIZE:small">Thanks for providing the two
figures. I don't think the differences are due to NCL, but maybe due to
how the figures were post-processed.</div>
<div class="gmail_default" style="FONT-SIZE:small"><br></div>
<div class="gmail_default" style="FONT-SIZE:small">Can you give me some details
on how you created the JPEG images? That is, what output format did you
use in the NCL script, and then how did you convert that image to JPEG? Also,
what version of NCL are you using under both Cygwin and Linux? (ncl -V)</div>
<div class="gmail_default" style="FONT-SIZE:small"><br></div>
<div class="gmail_default" style="FONT-SIZE:small">Have you tried using direct
PNG output?</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 Fri, Sep 19, 2014 at 2:24 AM, yuuum <span dir="ltr"><<a href="mailto:yuuum@163.com" target="_blank">yuuum@163.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid"><u></u>
<div style="BORDER-LEFT-WIDTH:0px;FONT-SIZE:10.5pt;FONT-FAMILY:微软雅黑;BORDER-RIGHT-WIDTH:0px;BORDER-BOTTOM-WIDTH:0px;COLOR:#000000;MARGIN:12px;LINE-HEIGHT:1.5;BORDER-TOP-WIDTH:0px" marginheight="0" marginwidth="0"><u></u>
<div>Hi NCL,</div>
<div> </div>
<div>I'm plotting figures in Cygwin. </div>
<div>$ uname -a<br>CYGWIN_NT-6.1 Miao-PC 1.7.32(0.274/5/3) 2014-08-13 23:03
i686 Cygwin<br></div>
<div>The figure I got is like that shown in the attached file
of CygwinFig.jpg. I also produced this figure using Linux before. It's
shown in LinuxFig.jpg.</div>
<div> </div>
<div>My problem is the figure produced in Cygwin looks a little
weird compared to that produced in Linux. There seems to have black or
gray lines at the boundary of color filled grids. The figure
produced in Linux is a little blurry but should be right. Is there
any problem with my computer setting? What may cause this problem and how
can I fix it?</div>
<div> </div>
<div>Thanks and best regards!</div>
<div>Miao</div>
<div> </div><u></u></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></div></div></div></div></blockquote></div><br></div></div></div></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><br clear="all"><br>-- <br><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Division, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div>
</div>