<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type><!-- flashmail style begin -->
<STYLE type=text/css>
body {border-width:0;margin:0}
img {border:0;margin:0;padding:0}
</STYLE>
<BASE target=_blank><!-- flashmail style end -->
<META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD>
<BODY
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>Dear Rick,</DIV>
<DIV> Thank you for your replying.</DIV>
<DIV> I have tried with the latest version
of NCL 6.6.2, the same problem is still there. But accidentally, I tried to run
the same script in the ROOT account, it works well. Originally, I had
run it in my own user account. It looks like very weird.</DIV>
<DIV> </DIV>
<DIV> Best regards.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; COLOR: #c0c0c0"
align=left>2019-09-04
<HR id=SignNameHR
style="BORDER-TOP: #c0c0c0 1px solid; HEIGHT: 1px; BORDER-RIGHT: 0px; WIDTH: 122px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px"
align=left>
<SPAN id=_FlashSignName>
<STYLE type=text/css>
body {
font-size:12.1pt; font-family:simsun,serif;
}
</STYLE>
<META name=GENERATOR content="MSHTML 10.00.9200.16686"><STATIONERY>
<DIV>
<STYLE type=text/css>
body {
font-size:12.1pt; font-family:simsun,serif;
}
</STYLE>
<META name=GENERATOR content="MSHTML 10.00.9200.16686"><STATIONERY>
<DIV>
<DIV>
<DIV><FONT face="Times New Roman">Xueming Zhu 朱学明<BR>Key Laboratory of Research
on Marine Hazards Forecasting (LoMF), SOA<BR>National Marine Environmental
Forecasting Center (NMEFC)<BR>No.8, Dahuisi Road, Haidian District, Beijing,
100081<BR>People's Republic of
China<BR>Tel:+86-10-82481923</FONT></DIV></DIV></DIV></STATIONERY></DIV></STATIONERY></SPAN></DIV>
<HR
style="BORDER-TOP: #c0c0c0 1px solid; HEIGHT: 1px; BORDER-RIGHT: 0px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px">
<BLOCKQUOTE id=ntes-flashmail-quote
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; PADDING-LEFT: 0px; MARGIN-LEFT: 0px">
<DIV><STRONG>发件人:</STRONG>Rick Brownrigg <brownrig@ucar.edu></DIV>
<DIV><STRONG>发送时间:</STRONG>2019-09-03 23:31</DIV>
<DIV><STRONG>主题:</STRONG>Re: Re: Re: [ncl-talk] ps figure can not work</DIV>
<DIV><STRONG>收件人:</STRONG>"朱学明"<557xiaozhu@163.com></DIV>
<DIV><STRONG>抄送:</STRONG>"ncl-talk@ucar.edu
USERS"<ncl-talk@ucar.edu></DIV>
<DIV> </DIV>
<DIV>
<DIV dir=ltr>
<DIV>Hi,</DIV>
<DIV><BR></DIV>
<DIV>I'm not sure what to tell you. The fact that cairo does not appear in the
output of ldd indicates its statically linked, so not much point in you
building it. And clearly something has changed during the OS upgrade,
but what?</DIV>
<DIV><BR></DIV>
<DIV>I would note that the latest version of NCL is 6.6.2 -- perhaps you might
install it in a private directory, and if it works for you, persuade the
sysadmins to make it more generally available.</DIV>
<DIV><BR></DIV>
<DIV>I wish I had a better answer...</DIV>
<DIV><BR></DIV>
<DIV>Rick</DIV>
<DIV><BR></DIV></DIV><BR>
<DIV class=gmail_quote>
<DIV class=gmail_attr dir=ltr>On Sun, Sep 1, 2019 at 6:47 PM 朱学明 <<A
href="mailto:557xiaozhu@163.com">557xiaozhu@163.com</A>> wrote:<BR></DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex"><U></U>
<DIV
style="BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 10.5pt; FONT-FAMILY: 微软雅黑; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; COLOR: rgb(0,0,0); MARGIN: 12px; LINE-HEIGHT: 1.5; BORDER-TOP-WIDTH: 0px">
<DIV>Thanks Rick.</DIV>
<DIV>I have tried ldd `which ncl` on the login
node and caculate node seperately. Please see the attachments.</DIV>
<DIV> </DIV>
<DIV>It looks like both of them have not linked with 'libcairo'. Do you
think I need to build it?</DIV>
<DIV>Thanks for your kindly answers.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; COLOR: rgb(192,192,192)"
align=left>2019-09-02
<HR id=gmail-m_-780718901375361461SignNameHR
style="BORDER-TOP: rgb(192,192,192) 1px solid; HEIGHT: 1px; BORDER-RIGHT: 0px; WIDTH: 122px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px"
align=left>
<SPAN id=gmail-m_-780718901375361461_FlashSignName><U></U>
<DIV><U></U>
<DIV>
<DIV>
<DIV><FONT face="Times New Roman">Xueming Zhu 朱学明<BR>Key Laboratory of
Research on Marine Hazards Forecasting (LoMF), SOA<BR>National Marine
Environmental Forecasting Center (NMEFC)<BR>No.8, Dahuisi Road, Haidian
District, Beijing, 100081<BR>People's Republic of
China<BR>Tel:+86-10-82481923</FONT></DIV></DIV></DIV><U></U></DIV><U></U></SPAN></DIV>
<HR
style="BORDER-TOP: rgb(192,192,192) 1px solid; HEIGHT: 1px; BORDER-RIGHT: 0px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px">
<BLOCKQUOTE id=gmail-m_-780718901375361461ntes-flashmail-quote
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; PADDING-LEFT: 0px; MARGIN-LEFT: 0px">
<DIV><STRONG>发件人:</STRONG>Rick Brownrigg <<A
href="mailto:brownrig@ucar.edu"
target=_blank>brownrig@ucar.edu</A>></DIV>
<DIV><STRONG>发送时间:</STRONG>2019-08-31 22:13</DIV>
<DIV><STRONG>主题:</STRONG>Re: Re: [ncl-talk] ps figure can not work</DIV>
<DIV><STRONG>收件人:</STRONG>"朱学明"<<A href="mailto:557xiaozhu@163.com"
target=_blank>557xiaozhu@163.com</A>></DIV>
<DIV><STRONG>抄送:</STRONG>"<A href="mailto:ncl-talk@ucar.edu"
target=_blank>ncl-talk@ucar.edu</A> USERS"<<A
href="mailto:ncl-talk@ucar.edu"
target=_blank>ncl-talk@ucar.edu</A>></DIV>
<DIV> </DIV>
<DIV>
<DIV dir=ltr>
<DIV>OK, that's interesting. Ultimately it would be the cairographics
(libcairo) that's responsible for drawing to the "ps" workstation. Fixing
the problem is likely to be rather tricky:</DIV>
<DIV><BR></DIV>
<DIV>i) its hard to see how a simple kernel upgrade could have affected
anything; was it perhaps a complete Linux OS upgrade (which would
likely install newer versions of libraries and other software)?<BR></DIV>
<DIV>ii) is your NCL binary dynamically linked against cairo?
try:</DIV>
<DIV> ldd `which ncl`</DIV>
<DIV>and look to see *if* cairo is showing up in the list, and note where
it is coming from.</DIV>
<DIV>iii) its also hard to imagine the cairo library would be built
without PS support -- its possible, but one has to be very deliberate. But
this is all I can think of that might be the source of the problem.
I should think NCL would give you a meaningful error message,
but...? If cairo is dynamically liked, you could possibly build it
yourself (it requires building pixman too), put it is a directory in your
own workspace, and setting this environment variable to force the system
to look at that location first:</DIV>
<DIV><BR></DIV>
<DIV> export
LD_LIBRARY_PATH=/....your-cairo-dir:$LD_LIBRARY_PATH</DIV>
<DIV><BR></DIV>
<DIV>That seems like a lot of work, and I'm not certain it would fix the
problem (maybe your sysadmin could do this)</DIV>
<DIV><BR></DIV>
<DIV>If you can live with the oldps driver, you can set this environment
variable that will override the "ps" workstation with "oldps". Note that
oldps does not support translucent colors and is possibly limited to 256
colors (I can't recall)<BR></DIV>
<DIV><BR></DIV>
<DIV> export NCARG_OLD_PS=true</DIV>
<DIV><BR></DIV>
<DIV>Hope that helps and good luck!</DIV>
<DIV><BR></DIV>
<DIV>Rick</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV></DIV><BR>
<DIV class=gmail_quote>
<DIV class=gmail_attr dir=ltr>On Sat, Aug 31, 2019 at 7:10 AM 朱学明 <<A
href="mailto:557xiaozhu@163.com" target=_blank>557xiaozhu@163.com</A>>
wrote:<BR></DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex"><U></U>
<DIV
style="BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 10.5pt; FONT-FAMILY: 微软雅黑; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; COLOR: rgb(0,0,0); MARGIN: 12px; LINE-HEIGHT: 1.5; BORDER-TOP-WIDTH: 0px">
<DIV>Dear Rick, </DIV>
<DIV> Thanks for your kindly answer.</DIV>
<DIV> I have tried with "oldps". It works well.
In this case, how should I fix my "ps" case's problem, please? Do you
know which library should lead to this problem?</DIV>
<DIV> </DIV>
<DIV> Thanks.</DIV>
<DIV> </DIV>
<DIV
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; COLOR: rgb(192,192,192)"
align=left>2019-08-31
<HR id=gmail-m_-780718901375361461gmail-m_-5122289181686143622SignNameHR
style="BORDER-TOP: rgb(192,192,192) 1px solid; HEIGHT: 1px; BORDER-RIGHT: 0px; WIDTH: 122px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px"
align=left>
<SPAN
id=gmail-m_-780718901375361461gmail-m_-5122289181686143622_FlashSignName><U></U>
<DIV><U></U>
<DIV>
<DIV>
<DIV><FONT face="Times New Roman">Xueming Zhu 朱学明<BR>Key Laboratory of
Research on Marine Hazards Forecasting (LoMF), SOA<BR>National Marine
Environmental Forecasting Center (NMEFC)<BR>No.8, Dahuisi Road, Haidian
District, Beijing, 100081<BR>People's Republic of
China<BR>Tel:+86-10-82481923</FONT></DIV></DIV></DIV><U></U></DIV><U></U></SPAN></DIV>
<HR
style="BORDER-TOP: rgb(192,192,192) 1px solid; HEIGHT: 1px; BORDER-RIGHT: 0px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px">
<BLOCKQUOTE
id=gmail-m_-780718901375361461gmail-m_-5122289181686143622ntes-flashmail-quote
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; PADDING-LEFT: 0px; MARGIN-LEFT: 0px">
<DIV><STRONG>发件人:</STRONG>Rick Brownrigg <<A
href="mailto:brownrig@ucar.edu"
target=_blank>brownrig@ucar.edu</A>></DIV>
<DIV><STRONG>发送时间:</STRONG>2019-08-30 11:33</DIV>
<DIV><STRONG>主题:</STRONG>Re: [ncl-talk] ps figure can not work</DIV>
<DIV><STRONG>收件人:</STRONG>"朱学明"<<A href="mailto:557xiaozhu@163.com"
target=_blank>557xiaozhu@163.com</A>></DIV>
<DIV><STRONG>抄送:</STRONG>"<A href="mailto:ncl-talk@ucar.edu"
target=_blank>ncl-talk@ucar.edu</A> USERS"<<A
href="mailto:ncl-talk@ucar.edu"
target=_blank>ncl-talk@ucar.edu</A>></DIV>
<DIV> </DIV>
<DIV>
<DIV dir=ltr>
<DIV>Hi,</DIV>
<DIV><BR></DIV>
<DIV>I do not have a good explanation as to why that is happening. But
I wonder if you would try an experiment with me -- in the
gsn_open_wks() statement, try using "oldps" instead of just "ps", and
let me know happens. "oldps" (an unfortunate name that I'm
responsible for) refers to the legacy postscript driver, vs. the
current default drivers based upon cairographics. Postscript
support is optional in cairographics, but one has to go to lengths to
disable it. I can't think of any other explanation however...</DIV>
<DIV><BR></DIV>
<DIV>Rick</DIV>
<DIV><BR></DIV></DIV><BR>
<DIV class=gmail_quote>
<DIV class=gmail_attr dir=ltr>On Thu, Aug 29, 2019 at 8:28 PM 朱学明 via
ncl-talk <<A href="mailto:ncl-talk@ucar.edu"
target=_blank>ncl-talk@ucar.edu</A>> wrote:<BR></DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex"><U></U>
<DIV
style="BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 10.5pt; FONT-FAMILY: 微软雅黑; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; COLOR: rgb(0,0,0); MARGIN: 12px; LINE-HEIGHT: 1.5; BORDER-TOP-WIDTH: 0px">
<DIV>Dear all,</DIV>
<DIV> </DIV>
<DIV> I am trying to
use NCL V6.5.0 on the computer nodes of our super-computer. It
can work when I set the figure type as "png" or "pdf". But it
can not work with "ps". It can output a zero size file named
"<A href="http://aaa.ps" target=_blank>aaa.ps</A>", and without
any error message. However, the same script can work well on
the login node with any figure type, "ps", "png", "pdf". </DIV>
<DIV> Initially, it also can
work well with "ps" type on the computer node in May. It is
side that the super-computer administrator had upgraded the kernel
of Linux system in June. </DIV>
<DIV></DIV>
<DIV> Anybody can give me any
suggestion how to fix my problem? Or which software maybe changed
when upgrading the Linux system, then affecting the generation
of the figure of "ps" type?</DIV>
<DIV> </DIV>
<DIV> Thanks and
regards. </DIV><U></U>
<DIV> </DIV>
<DIV> </DIV>
<DIV
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; COLOR: rgb(192,192,192)">
<DIV align=left>2019-08-30</DIV>
<HR
id=gmail-m_-780718901375361461gmail-m_-5122289181686143622gmail-m_-8324741286211380565SignNameHR
style="BORDER-TOP: rgb(192,192,192) 1px solid; HEIGHT: 1px; BORDER-RIGHT: 0px; WIDTH: 122px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px"
align=left>
<SPAN
id=gmail-m_-780718901375361461gmail-m_-5122289181686143622gmail-m_-8324741286211380565_FlashSignName><U></U>
<DIV><U></U>
<DIV>
<DIV>
<DIV><FONT face="Times New Roman">Xueming Zhu 朱学明<BR>Key Laboratory
of Research on Marine Hazards Forecasting (LoMF), SOA<BR>National
Marine Environmental Forecasting Center (NMEFC)<BR>No.8, Dahuisi
Road, Haidian District, Beijing, 100081<BR>People's Republic of
China<BR>Tel:+86-10-82481923</FONT></DIV></DIV></DIV><U></U></DIV><U></U></SPAN></DIV><U></U></DIV>_______________________________________________<BR>ncl-talk
mailing list<BR><A href="mailto:ncl-talk@ucar.edu"
target=_blank>ncl-talk@ucar.edu</A><BR>List instructions, subscriber
options, unsubscribe:<BR><A
href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk"
rel=noreferrer
target=_blank>http://mailman.ucar.edu/mailman/listinfo/ncl-talk</A></BLOCKQUOTE></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV></DIV></BLOCKQUOTE></BODY></HTML>