<div dir="ltr"><div class="gmail_default" style="font-size:small">That's correct, you do *not* want the "end" statement if you don't have a "begin" statement, or you will get an error. Perhaps what you mean to use was "quit".</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The "begin" and "end" statements are optional for the main NCL code, but not optional when you are defining procedures and functions.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 27, 2015 at 12:27 PM, Alessandra Giannini <span dir="ltr"><<a href="mailto:alesall@iri.columbia.edu" target="_blank">alesall@iri.columbia.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
<br>
I am not sure you need the<br>
<br>
end<br>
<br>
line when you copy and paste, and execute line by line, but if so, how come you have no<br>
<br>
begin<br>
<br>
?<br>
<br>
<br>
<br>
On May 27, 2015, at 2:23 PM, Geeta Geeta <<a href="mailto:geetag54@yahoo.com">geetag54@yahoo.com</a>> wrote:<br>
<br>
> This is continuation of my mails.<br>
> The script given on the NCL site runs perfectly on my system. the ps file is created well.<br>
><br>
> aditya@agniilap:~/geeta/ncl/myscripts_ncl$ echo $NCARG_ROOT<br>
> /home/aditya/geeta/ncl<br>
> aditya@agniilap:~/geeta/ncl/myscripts_ncl$ ncl<br>
> Copyright (C) 1995-2014 - All Rights Reserved<br>
> University Corporation for Atmospheric Research<br>
> NCAR Command Language Version 6.2.1<br>
> The use of this software is governed by a License Agreement.<br>
> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
> ncl 0> a = addfile("$NCARG_ROOT/lib/ncarg/data/cdf/<a href="http://uv300.nc" target="_blank">uv300.nc</a>","r")<br>
> ncl 1> u = a->U(1,:,:)<br>
> ncl 2> wks = gsn_open_wks("ps","ce")<br>
> ncl 3> plot = gsn_csm_contour_map_ce(wks,u,False)<br>
> ncl 4> end<br>
> fatal:syntax error: line 4 before or near end<br>
> end<br>
> --^<br>
><br>
> fatal:error in statement<br>
> ncl 5> quit<br>
> aditya@agniilap:~/geeta/ncl/myscripts_ncl$ ls -lrt<br>
> total 182900<br>
> -rw-rw-r-- 1 aditya aditya 18838952 May 27 22:27 fnl_20150423_12_00.grib2<br>
> -rw-rw-r-- 1 aditya aditya 83991480 May 27 22:29 <a href="http://fnl_20150423_12_00.nc" target="_blank">fnl_20150423_12_00.nc</a><br>
> -rw-rw-r-- 1 aditya aditya 83991480 May 27 22:34 <a href="http://test.nc" target="_blank">test.nc</a><br>
> -rw-rw-r-- 1 aditya aditya 542 May 27 23:41 test.ncl<br>
> -rw-rw-r-- 1 aditya aditya 451983 May 27 23:50 <a href="http://ce.ps" target="_blank">ce.ps</a><br>
> aditya@agniilap:~/geeta/ncl/myscripts_ncl$<br>
><br>
> pls suggest<br>
> Geeta.<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>
<br>
<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>