<div dir="ltr"><div class="gmail_default" style="font-size:small">For future reference, if you get an NCL error that you don&#39;t understand, you can look it up here:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Document/Language/error_messages.shtml">http://www.ncl.ucar.edu/Document/Language/error_messages.shtml</a><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">There are other types of errors, and their fixes, mentioned here as well:</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Document/Language/error_messages.shtml">http://www.ncl.ucar.edu/Document/Language/error_messages.shtml</a><br></div><div class="gmail_default" style=""><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 21, 2015 at 12:02 PM, Dennis Shea <span dir="ltr">&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Whenever you encounter:<br>
<br>
===================<br>
<span class="">fatal:syntax error: line 142 in file wrf_gsn_5.ncl before or near \n<br>
end<br>
---^<br>
<br>
fatal:error in statement<br>
fatal:syntax error: line -1 before or near<br>
</span>===================<br>
<br>
it means a block is not properly terminated.<br>
<br>
In this case there is a &#39;do loop&#39; but no &#39;end do&#39;<br>
<br>
 do it = 0,ntimes-1,2             ; TIME LOOP<br>
<br>
 end do     ; end &#39;it&#39; loop<br>
<br>
I would also suggest replacing<br>
<br>
wks = gsn_open_wks(&quot;ps&quot;,&quot;wrf_gsn&quot;)<br>
<br>
with<br>
<br>
wks = gsn_open_wks(&quot;ps&quot;,&quot;wrf_gsn_&quot;+sprinti(&quot;%0.2i&quot;, it))<br>
<div><div class="h5"><br>
On Wed, Oct 21, 2015 at 10:22 AM, Mansur Ali Jisan<br>
&lt;<a href="mailto:jisan.mansur@gmail.com">jisan.mansur@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am trying to run the attached script which I downloaded from NCL&#39;s<br>
&gt; website. While running it, it&#39;s showing the following error messages:<br>
&gt;<br>
&gt; [mjisan@frisco tmp]$ ncl wrf_gsn_5.ncl<br>
&gt;  Copyright (C) 1995-2014 - All Rights Reserved<br>
&gt;  University Corporation for Atmospheric Research<br>
&gt;  NCAR Command Language Version 6.2.0<br>
&gt;  The use of this software is governed by a License Agreement.<br>
&gt;  See <a href="http://www.ncl.ucar.edu/" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
&gt; fatal:syntax error: line 142 in file wrf_gsn_5.ncl before or near \n<br>
&gt; end<br>
&gt; ---^<br>
&gt;<br>
&gt; fatal:error in statement<br>
&gt; fatal:syntax error: line -1 before or near<br>
&gt;<br>
&gt; ^<br>
&gt;<br>
&gt; fatal:error in statement<br>
&gt;<br>
&gt; I have tried my best to solve this but as a new user with less experiences,<br>
&gt; I couldn&#39;t able to solve that. Looking forward to hear from you.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Mansur.<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; ncl-talk mailing list<br>
&gt; <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
&gt;<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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><br>
</blockquote></div><br></div>