[ncl-talk] plotting in Cygwin

Adam Phillips asphilli at ucar.edu
Mon Sep 22 11:52:00 MDT 2014


Hi Miao,
This is a well known issue that is related to a bug in ghostscript. See the
note here:
http://www.ncl.ucar.edu/prev_releases.shtml#RasterAndMissingValueAreas6.2.0

Hope that helps. If not, please respond to ncl-talk.
Adam

On Mon, Sep 22, 2014 at 9:47 AM, Miao Yu <yuuum at 163.com> wrote:

>  Thank you so much Mary!
>
> That fixed my problem. VERY awesome!!
>
> 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.
>
> 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.
>
> Is this caused also by the different version of NCL I use or due to my
> computer performance?
>
> Many thanks and best regards!
> Miao
>
>  ------------------------------
>  *发件人:*Mary Haley <haley at ucar.edu>
> *发送时间:*2014-09-22 22:46
> *主题:*Re: Re: [ncl-talk] plotting in Cygwin
> *收件人:*"yuuum"<yuuum at 163.com>
> *抄送:*"ncl-talk at ucar.edu"<ncl-talk at ucar.edu>
>
>  Miao,
>
> 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.
>
> There was a rather major change to NCL V6.2.0 that is probably the cause
> of the differences you are seeing.  Please see:
>
> http://www.ncl.ucar.edu/prev_releases.shtml#RasterAndMissingValueAreas6.2.0
>
> 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:
>
>     res@*cnMissingValFillColor*
> <http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnMissingValFillColor>
> = "white"
>
> --Mary
>
>
>
>
>
>
> On Fri, Sep 19, 2014 at 10:22 AM, yuuum <yuuum at 163.com> wrote:
>
>>  Thanks Mary for your response!
>>
>> 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
>> ftp.cgd.ucar.edu also. They have the same name, that is, LinuxFig.ps
>> and CygwinFig.ps.
>>
>> If I produce the figure directly in PNG format, the figure seems fine.
>> The figure is CygwinFig.png attached here and in ftp.cgd.ucar.edu. 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.
>>
>> I forgot to mention that I'm using NCL6.2.1 in Cygwin. In Linux that is
>> version 6.1.2.
>>
>> Thanks!
>> Miao
>>
>> ------------------------------
>>  *发件人:*Mary Haley <haley at ucar.edu>
>> *发送时间:*2014-09-19 21:14
>> *主题:*Re: [ncl-talk] plotting in Cygwin
>> *收件人:*"yuuum"<yuuum at 163.com>
>> *抄送:*"ncl-talk"<ncl-talk at ucar.edu>
>>
>>  Hi Miao,
>>
>> 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.
>>
>> 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)
>>
>> Have you tried using direct PNG output?
>>
>> --Mary
>>
>>
>> On Fri, Sep 19, 2014 at 2:24 AM, yuuum <yuuum at 163.com> wrote:
>>
>>>   Hi NCL,
>>>
>>> I'm plotting figures in Cygwin.
>>> $ uname -a
>>> CYGWIN_NT-6.1 Miao-PC 1.7.32(0.274/5/3) 2014-08-13 23:03 i686 Cygwin
>>> 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.
>>>
>>> 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?
>>>
>>> Thanks and best regards!
>>> Miao
>>>
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>


-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Division, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140922/1a341313/attachment.html 


More information about the ncl-talk mailing list