<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>You have an older version of NCL.<br><br>This example uses new NCL syntax called the 'reassignment operator' introduced in February 1013. The reassignment operator is mentioned at: <a href="http://www.ncl.ucar.edu/prev_releases.shtml#6.1.1">http://www.ncl.ucar.edu/prev_releases.shtml#6.1.1</a><br>
<br>idnum := f->wmoStaNum<br><br></div>To get your current version of NCL working, <br><br>Replace <br> idnum := f->wmoStaNum<br> synTime := f->synTime<br></div><div> etc<br></div><div>
<br></div>With<br> idnum = f->wmoStaNum<br> synTime = f->synTime<br><br></div>Then before the 'end do'<br><br></div> delete(idnum)<br></div><div> delete(synTime)<br></div><div><br></div>Really, since there are multiple := you could use the following before the 'end do'<br>
</div>to delete multiple variables in one line.<br><br></div> delete( [/ idnum, synTime, ymdh, .... /] )<br><br>===========<br></div>FYI: There will be a new release of NCL [6.2.1] in the next 10days or so.<br></div> When that becomes available, I'd suggest updating to the latest release.<br>
<a href="http://www.ncl.ucar.edu/future_release.shtml">http://www.ncl.ucar.edu/future_release.shtml</a><br><br><br></div>Good luck<br><div><div><div><div><div><div><div><div><div><div><br> <br></div></div></div></div>
</div></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 25, 2014 at 7:18 AM, <span dir="ltr"><<a href="mailto:jorge.conrado@cptec.inpe.br" target="_blank">jorge.conrado@cptec.inpe.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
<br>
Hi,<br>
<br>
<br>
I downloaded the skewt_8.ncl and I did: ncl skewt_8.ncl and I<br>
had the messages:<br>
<br>
<br>
fatal:syntax error: line 48 in file skewt_8.ncl before or near :<br>
idnum :<br>
-------------^<br>
<br>
fatal:error in statement<br>
fatal:syntax error: line 49 in file skewt_8.ncl before or near :<br>
synTime :<br>
-------------^<br>
<br>
fatal:error in statement<br>
fatal:syntax error: line 51 in file skewt_8.ncl before or near :<br>
ymdh :<br>
-------------^<br>
<br>
fatal:error in statement<br>
fatal:syntax error: line 55 in file skewt_8.ncl before or near :<br>
ii :<br>
--------------^<br>
<br>
fatal:error in statement<br>
fatal:syntax error: line 112 in file skewt_8.ncl before or near ; "w"<br>
=> create or overwrite<br>
<br>
write_table(txtPath, "w", varHead, "%s") ; "w" => create<br>
or overwrite<br>
^<br>
<br>
fatal:syntax error: possibly an undefined procedure<br>
fatal:syntax error: line 113 in file skewt_8.ncl before or near ; "a"<br>
=> append<br>
<br>
write_table(txtPath, "a", untHead, "%s") ; "a" => append<br>
^<br>
<br>
fatal:syntax error: possibly an undefined procedure<br>
fatal:syntax error: line 114 in file skewt_8.ncl before or near \n<br>
write_table(txtPath, "a", varList, "%7.0f%7.0f%7.1f%7.1f%7.1f%7.0f")<br>
------------------------------------------------------------------------------^<br>
<br>
fatal:syntax error: possibly an undefined procedure<br>
fatal:Syntax Error in block, block not executed<br>
fatal:error at line 121 in file skewt_8.ncl<br>
<br>
<br>
<br>
<br>
What can I do to solve this.<br>
<br>
<br>
Conrado<br>
<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>
</blockquote></div><br></div>