<span style="font-family: Helvetica;">Dear Dr Alan Brammer</span><br><br>In my school cluster, I load GCC/4.7.2 and ncl/6.3.0, then I rerun WRAPIT of external binary.so, It worked successfully, and thank you very much for help<div><br></div><div>Yours</div><div>Ziyuan Wang<br><br><blockquote name="replyContent" class="ReferenceQuote" style="padding-left:5px;margin-left:5px;border-left:#b6b6b6 2px solid;margin-right:0">-----原始邮件-----<br>
<b>发件人:</b><span id="rc_from">"Alan Brammer" <abrammer@albany.edu></span><br>
<b>发送时间:</b><span id="rc_senttime">2017-02-25 05:16:28 (星期六)</span><br>
<b>收件人:</b> "Ziyuan Wang" <1301111586@pku.edu.cn><br>
<b>抄送:</b> "ncl-talk@ucar.edu" <ncl-talk@ucar.edu><br>
<b>主题:</b> Re: [ncl-talk] Can't work with reassign command ':=', and '::' call fortran command<br><br>I don’t think the operator is the problem.<div class=""><br class=""></div><div class="">Always start from the first error. </div><div class=""><div class=""></div><blockquote type="cite" class=""><div class="">warning:An error occurred loading the external file $NCL4GC/fortran/binary.so, file not loaded</div><div class="">libifport.so.5: cannot open shared object file: No such file or directory</div><div class=""><br class=""></div><div class="">warning:error at line 23 in file $NCL4GC/file_io/read_bpch.ncl</div><div class=""><br class=""></div></blockquote><div class="">Did you rerun WRAPIT with the new NCL install. If you changed your gcc installation you might need to recompile the shared object. </div><div class=""><br class=""></div><div class="">This would be best in a new email specifically about the loading of the shared object in your script. The :: operator is not the problem though it’s the initial external command that is failing. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; line-height: normal; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">##############################<br class="">Alan Brammer,<div class="">Post-Doc Researcher</div><div class=""><br class=""></div><div class="">Department of Atmospheric and Environmental Sciences,<br class="">University at Albany, State University of New York, Albany, NY, 12222<div class=""><a href="mailto:abrammer@albany.edu" class="" target="_blank">abrammer@albany.edu</a><br class="">##############################</div></div></div></span></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 23 Feb 2017, at 16:43, Ziyuan Wang <<a href="mailto:1301111586@pku.edu.cn" class="" target="_blank">1301111586@pku.edu.cn</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 10.5pt; font-family: 等线; color: rgb(31, 73, 125);" class="">Hi Alan<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 10.5pt; font-family: 等线; color: rgb(31, 73, 125);" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 10.5pt; font-family: 等线; color: rgb(31, 73, 125);" class="">Now I installed ncl/6.30 with gcc/4.7.2, and run that scripts again, but now it see can</span><span style="font-size: 10.5pt; font-family: 等线; color: rgb(31, 73, 125);" class="">’<span lang="EN-US" class="">t read operator<span class="Apple-converted-space"> </span></span>“</span><span lang="EN-US" style="font-size: 11pt; font-family: Consolas;" class="">::”, as error reported (attached 2.error)<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 11pt; font-family: Consolas;" class="">fatal:syntax error: line 119 in file read_bpch.ncl before or near :<span class="Apple-converted-space"> </span><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 11pt; font-family: Consolas;" class=""> BIN:<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 11pt; font-family: Consolas;" class="">-------^<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 11pt; font-family: Consolas;" class="">fatal:error in statement<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 11pt; font-family: Consolas;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 11pt; font-family: Consolas;" class="">and line 119 in ncl is “; Call a Fortran routine to parse bytes into separate variables<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体; text-indent: 24pt;" class=""><span lang="EN-US" style="font-size: 11pt; font-family: Consolas;" class="">BIN::bpch_hdr1( bytes, c_modelname, lon, lat, halfpolar, center180 )” (attached read_bpch.ncl)<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 10.5pt; font-family: 等线; color: rgb(31, 73, 125);" class="">Thank you<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 10.5pt; font-family: 等线; color: rgb(31, 73, 125);" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 10.5pt; font-family: 等线; color: rgb(31, 73, 125);" class="">Ziyuan<o:p class=""></o:p></span></div><div class=""><div style="border-style: solid none none; border-top-color: rgb(225, 225, 225); border-top-width: 1pt; padding: 3pt 0cm 0cm;" class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><b class=""><span style="font-size: 11pt; font-family: 等线;" class="">发件人<span lang="EN-US" class="">:</span></span></b><span lang="EN-US" style="font-size: 11pt; font-family: 等线;" class=""><span class="Apple-converted-space"> </span><a href="mailto:alan.brammer@gmail.com" class="" target="_blank">alan.brammer@gmail.com</a> [<a href="mailto:alan.brammer@gmail.com" class="" target="_blank">mailto:alan.brammer@gmail.com</a>]<span class="Apple-converted-space"> </span></span><b class=""><span style="font-size: 11pt; font-family: 等线;" class="">代表<span class="Apple-converted-space"> </span></span></b><span lang="EN-US" style="font-size: 11pt; font-family: 等线;" class="">Alan Brammer<br class=""></span><b class=""><span style="font-size: 11pt; font-family: 等线;" class="">发送时间<span lang="EN-US" class="">:</span></span></b><span lang="EN-US" style="font-size: 11pt; font-family: 等线;" class=""><span class="Apple-converted-space"> </span>2017</span><span style="font-size: 11pt; font-family: 等线;" class="">年<span lang="EN-US" class="">2</span>月<span lang="EN-US" class="">17</span>日<span lang="EN-US" class=""><span class="Apple-converted-space"> </span>14:52<br class=""></span><b class="">收件人<span lang="EN-US" class="">:</span></b><span lang="EN-US" class=""><span class="Apple-converted-space"> </span>Ziyuan Wang <<a href="mailto:1301111586@pku.edu.cn" class="" target="_blank">1301111586@pku.edu.cn</a>><br class=""></span><b class="">抄送<span lang="EN-US" class="">:</span></b><span lang="EN-US" class=""><span class="Apple-converted-space"> </span><a href="mailto:ncl-talk@ucar.edu" class="" target="_blank">ncl-talk@ucar.edu</a><br class=""></span><b class="">主题<span lang="EN-US" class="">:</span></b><span lang="EN-US" class=""><span class="Apple-converted-space"> </span>Re: [ncl-talk] Can't work with reassign command ':=', and '::' call fortran command<o:p class=""></o:p></span></span></div></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">That operator was introduced in 6.2.1 it won</span>’<span lang="EN-US" class="">t work in versions prior to that. 6.2.1 is roughly 4 years old. There will be lots of missing functionality if you</span>’<span lang="EN-US" class="">re stuck on < 6.1. <o:p class=""></o:p></span></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">To work around, you can replace all := with = and where needed add a delete(fti) or the appropriate variable on the line before. <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">delete() will throw an error if the variable doesn</span>’<span lang="EN-US" class="">t exist though so you</span>’<span lang="EN-US" class="">ll need to go through and decide for each instance. <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">You might want to email<span class="Apple-converted-space"> </span><a href="mailto:ncl-install@ucar.edu" style="color: purple; text-decoration: underline;" class="" target="_blank">ncl-install@ucar.edu</a><span class="Apple-converted-space"> </span>about your installation problems (or one of the devs might help you out in here). <o:p class=""></o:p></span></div><div class=""><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">Alan<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div class=""><div class=""><div class=""><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-family: Helvetica, sans-serif;" class="">##############################<br class="">Alan Brammer,<o:p class=""></o:p></span></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-family: Helvetica, sans-serif;" class="">Post-Doc Researcher<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-family: Helvetica, sans-serif;" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-family: Helvetica, sans-serif;" class="">Department of Atmospheric and Environmental Sciences,<br class="">University at Albany, State University of New York, Albany, NY, 12222<o:p class=""></o:p></span></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><a href="mailto:abrammer@albany.edu" style="color: purple; text-decoration: underline;" class="" target="_blank"><span style="font-family: Helvetica, sans-serif;" class="">abrammer@albany.edu</span></a></span><span lang="EN-US" style="font-family: Helvetica, sans-serif;" class=""><br class="">##############################<o:p class=""></o:p></span></div></div></div></div></div></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div class=""><blockquote style="margin-top: 5pt; margin-bottom: 5pt;" class="" type="cite"><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">On 17 Feb 2017, at 14:37, Ziyuan Wang <<a href="mailto:1301111586@pku.edu.cn" style="color: purple; text-decoration: underline;" class="" target="_blank">1301111586@pku.edu.cn</a>> wrote:<o:p class=""></o:p></span></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div class=""><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">Dear all Users:<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">I want to run a ncl scripts written by geos-chem model to read bpch files (read_bpch.ncl attached).<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">1.When I use ncl/6.1.0 or 6.0.0, it can't work with the re-assign operator :=, as error<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">fatal:syntax error: line 96 in file $NCL4GC/file_io/read_bpch.ncl before or near : <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""> fti :<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">--------------^<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">line 96 in bpch.ncl is "fti := get_string_from_bpch( inFile, R, 40 ) " (attached 1.error)<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">2. When I use ncl/6.3.0, in our school cluster there's no intel/12.1.5, so I have to load gcc/4.7.2. Then it can't read fortran command. And for model compiling I also need intel fortran.<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">fatal:syntax error: line 119 in file $NCL4GC/file_io/read_bpch.ncl before or near : <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""> BIN:<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">-------^<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">Line 129 in bpch.ncl is " BIN::bpch_hdr1( bytes, c_modelname, lon, lat, halfpolar, center180 )" (Attached 2.error)<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">3.So I'm wondering how can I change read_bpch.ncl code, to make the ':=' work in ncl/6.1.0<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class="">Thank you everyone<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 10.5pt; font-family: 等线;" class=""> </span><span lang="EN-US" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" style="font-size: 10.5pt; font-family: 等线;" class="">Ziyuan Wang</span><span lang="EN-US" class=""><o:p class=""></o:p></span></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><read_bpch.ncl><1.error><2.error></span><span lang="EN-US" style="font-size: 9pt; font-family: Helvetica, sans-serif;" class="">_______________________________________________<br class="">ncl-talk mailing list<br class=""></span><span lang="EN-US" class=""><a href="mailto:ncl-talk@ucar.edu" style="color: purple; text-decoration: underline;" class="" target="_blank"><span style="font-size: 9pt; font-family: Helvetica, sans-serif; color: rgb(149, 79, 114);" class="">ncl-talk@ucar.edu</span></a></span><span lang="EN-US" style="font-size: 9pt; font-family: Helvetica, sans-serif;" class=""><br class="">List instructions, subscriber options, unsubscribe:<br class=""></span><span lang="EN-US" class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" style="color: purple; text-decoration: underline;" class="" target="_blank"><span style="font-size: 9pt; font-family: Helvetica, sans-serif; color: rgb(149, 79, 114);" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</span></a><o:p class=""></o:p></span></div></div></blockquote></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 宋体;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div></div></div></div></div></div><span id="cid:F7262F3D-0C05-449B-9F34-72C740264AAA@eas.albany.edu"><2.error></span><span id="cid:F2C74E9A-ED20-49E8-8967-C73A24C0803B@eas.albany.edu"><read_bpch.ncl></span></div></blockquote></div><br class=""></div></div></div></blockquote><br><span><br><p class="MsoNormal" style="font-family: arial, helvetica, clean, sans-serif; font-size: 13px; margin: 0cm 0cm 0pt; line-height: 19px;"><font style="font-size: 12px; font-family: verdana;"><span lang="EN-US">王梓元(WANG Ziyuan)</span></font></p><p class="MsoNormal" style="font-family: arial, helvetica, clean, sans-serif; font-size: 13px; margin: 0cm 0cm 0pt; line-height: 19px;"><span class="yui-tag-span yui-tag" tag="span" style="font-size: 12px; font-family: verdana;">中国北京大学环境科学与工程学院<span lang="EN-US"><br> College of Environmental Science and Engineering <br> Peking University, China<br></span>● 中国北京海淀区颐和园路<span lang="EN-US">5</span>号 邮编:<span lang="EN-US">100871<br> No.5, Yiheyuan Road, Haidian Dist. <br> Beijing 100871, P.R. China <br></span>● 手机<span lang="EN-US"> Cell</span>:<span lang="EN-US"> (+86)132-6999-2003</span></span></p><p class="MsoNormal" style="font-family: arial, helvetica, clean, sans-serif; font-size: 13px; margin: 0cm 0cm 0pt; line-height: 19px;"><font style="font-size: 12px; font-family: verdana;">● 电子邮件<span lang="EN-US"> Email</span>:<a href="mailto:wangziyuan91@163.com" target="_blank">wangziyuan91@163.com</a>, <a href="mailto:ziyuanwang@oku.edu.cn" target="_blank">ziyuanwang@pku.edu.cn</a></font></p></span></div>