<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:等线;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@等线";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:宋体;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:等线;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线;color:#1F497D'>Hi Alan<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线;color:#1F497D'>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:#1F497D'>’<span lang=EN-US>t read operator </span>“</span><span lang=EN-US style='font-size:11.0pt;font-family:Consolas'>::”, as error reported (attached 2.error)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:11.0pt;font-family:Consolas'>fatal:syntax error: line 119 in file read_bpch.ncl before or near : <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:11.0pt;font-family:Consolas'> BIN:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:11.0pt;font-family:Consolas'>-------^<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:Consolas'>fatal:error in statement<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:11.0pt;font-family:Consolas'>and line 119 in ncl is “; Call a Fortran routine to parse bytes into separate variables<o:p></o:p></span></p><p class=MsoNormal style='text-indent:24.0pt'><span lang=EN-US style='font-size:11.0pt;font-family:Consolas'>BIN::bpch_hdr1( bytes, c_modelname, lon, lat, halfpolar, center180 )” (attached read_bpch.ncl)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线;color:#1F497D'>Thank you<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线;color:#1F497D'>Ziyuan<o:p></o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:等线'>发件人<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:11.0pt;font-family:等线'> alan.brammer@gmail.com [mailto:alan.brammer@gmail.com] </span><b><span style='font-size:11.0pt;font-family:等线'>代表 </span></b><span lang=EN-US style='font-size:11.0pt;font-family:等线'>Alan Brammer<br></span><b><span style='font-size:11.0pt;font-family:等线'>发送时间<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:11.0pt;font-family:等线'> 2017</span><span style='font-size:11.0pt;font-family:等线'>年<span lang=EN-US>2</span>月<span lang=EN-US>17</span>日<span lang=EN-US> 14:52<br></span><b>收件人<span lang=EN-US>:</span></b><span lang=EN-US> Ziyuan Wang <1301111586@pku.edu.cn><br></span><b>抄送<span lang=EN-US>:</span></b><span lang=EN-US> ncl-talk@ucar.edu<br></span><b>主题<span lang=EN-US>:</span></b><span lang=EN-US> Re: [ncl-talk] Can't work with reassign command ':=', and '::' call fortran command<o:p></o:p></span></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>That operator was introduced in 6.2.1 it won</span>’<span lang=EN-US>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>re stuck on < 6.1. <o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>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></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>delete() will throw an error if the variable doesn</span>’<span lang=EN-US>t exist though so you</span>’<span lang=EN-US>ll need to go through and decide for each instance. <o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>You might want to email <a href="mailto:ncl-install@ucar.edu">ncl-install@ucar.edu</a> about your installation problems (or one of the devs might help you out in here). <o:p></o:p></span></p><div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>Alan<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div><div><div><p class=MsoNormal><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'>##############################<br>Alan Brammer,<o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'>Post-Doc Researcher<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'>Department of Atmospheric and Environmental Sciences,<br>University at Albany, State University of New York, Albany, NY, 12222<o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US><a href="mailto:abrammer@albany.edu"><span style='font-family:"Helvetica",sans-serif'>abrammer@albany.edu</span></a></span><span lang=EN-US style='font-family:"Helvetica",sans-serif;color:black'><br>##############################<o:p></o:p></span></p></div></div></div></div></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal><span lang=EN-US>On 17 Feb 2017, at 14:37, Ziyuan Wang <<a href="mailto:1301111586@pku.edu.cn">1301111586@pku.edu.cn</a>> wrote:<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div><p class=MsoNormal><span lang=EN-US>Dear all Users:<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>I want to run a ncl scripts written by geos-chem model to read bpch files (read_bpch.ncl attached).<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>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></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>fatal:syntax error: line 96 in file $NCL4GC/file_io/read_bpch.ncl before or near : <o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US> fti :<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>--------------^<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>line 96 in bpch.ncl is "fti := get_string_from_bpch( inFile, R, 40 ) " (attached 1.error)<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>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></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>fatal:syntax error: line 119 in file $NCL4GC/file_io/read_bpch.ncl before or near : <o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US> BIN:<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>-------^<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>Line 129 in bpch.ncl is " BIN::bpch_hdr1( bytes, c_modelname, lon, lat, halfpolar, center180 )" (Attached 2.error)<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>3.So I'm wondering how can I change read_bpch.ncl code, to make the ':=' work in ncl/6.1.0<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>Thank you everyone<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'> </span><span lang=EN-US><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:等线'>Ziyuan Wang</span><span lang=EN-US><o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US><read_bpch.ncl><1.error><2.error></span><span lang=EN-US style='font-size:9.0pt;font-family:"Helvetica",sans-serif'>_______________________________________________<br>ncl-talk mailing list<br></span><span lang=EN-US><a href="mailto:ncl-talk@ucar.edu"><span style='font-size:9.0pt;font-family:"Helvetica",sans-serif;color:#954F72'>ncl-talk@ucar.edu</span></a></span><span lang=EN-US style='font-size:9.0pt;font-family:"Helvetica",sans-serif'><br>List instructions, subscriber options, unsubscribe:<br></span><span lang=EN-US><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk"><span style='font-size:9.0pt;font-family:"Helvetica",sans-serif;color:#954F72'>http://mailman.ucar.edu/mailman/listinfo/ncl-talk</span></a><o:p></o:p></span></p></div></blockquote></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></div></div></div></div></body></html>