<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_1_1432748405764_66069"><span id="yui_3_16_0_1_1432748405764_66075">Thanks Mary for ur help. <br></span></div><div id="yui_3_16_0_1_1432748405764_66076"><span id="yui_3_16_0_1_1432748405764_66075">But pls tell me why the data in my directory is NOT being read. </span></div><div id="yui_3_16_0_1_1432748405764_66024"> </div><div id="yui_3_16_0_1_1432748405764_66016"><div id="yui_3_16_0_1_1432748405764_66015">Geeta. </div></div> <br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Thursday, 28 May 2015 12:21 AM, Mary Haley <haley@ucar.edu> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv4137810772"><div><div dir="ltr"><div class="yiv4137810772gmail_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="yiv4137810772gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4137810772gmail_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="yiv4137810772gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4137810772gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv4137810772gmail_default" style="font-size:small;">--Mary</div><div class="yiv4137810772gmail_default" style="font-size:small;"><br clear="none"></div></div><div class="yiv4137810772gmail_extra"><br clear="none"><div class="yiv4137810772gmail_quote">On Wed, May 27, 2015 at 12:27 PM, Alessandra Giannini <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:alesall@iri.columbia.edu" target="_blank" href="mailto:alesall@iri.columbia.edu">alesall@iri.columbia.edu</a>></span> wrote:<br clear="none"><blockquote class="yiv4137810772gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br clear="none">
Hi,<br clear="none">
<br clear="none">
I am not sure you need the<br clear="none">
<br clear="none">
end<br clear="none">
<br clear="none">
line when you copy and paste, and execute line by line, but if so, how come you have no<br clear="none">
<br clear="none">
begin<br clear="none">
<br clear="none">
?<br clear="none">
<br clear="none">
<br clear="none">
<br clear="none">
On May 27, 2015, at 2:23 PM, Geeta Geeta <<a rel="nofollow" shape="rect" ymailto="mailto:geetag54@yahoo.com" target="_blank" href="mailto:geetag54@yahoo.com">geetag54@yahoo.com</a>> wrote:<br clear="none">
<br clear="none">
> This is continuation of my mails.<br clear="none">
> The script given on the NCL site runs perfectly on my system. the ps file is created well.<br clear="none">
><br clear="none">
> aditya@agniilap:~/geeta/ncl/myscripts_ncl$ echo $NCARG_ROOT<br clear="none">
> /home/aditya/geeta/ncl<br clear="none">
> aditya@agniilap:~/geeta/ncl/myscripts_ncl$ ncl<br clear="none">
> Copyright (C) 1995-2014 - All Rights Reserved<br clear="none">
> University Corporation for Atmospheric Research<br clear="none">
> NCAR Command Language Version 6.2.1<br clear="none">
> The use of this software is governed by a License Agreement.<br clear="none">
> See <a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/">http://www.ncl.ucar.edu/</a> for more details.<br clear="none">
> ncl 0> a = addfile("$NCARG_ROOT/lib/ncarg/data/cdf/<a rel="nofollow" shape="rect" target="_blank" href="http://uv300.nc/">uv300.nc</a>","r")<br clear="none">
> ncl 1> u = a->U(1,:,:)<br clear="none">
> ncl 2> wks = gsn_open_wks("ps","ce")<br clear="none">
> ncl 3> plot = gsn_csm_contour_map_ce(wks,u,False)<br clear="none">
> ncl 4> end<br clear="none">
> fatal:syntax error: line 4 before or near end<br clear="none">
> end<br clear="none">
> --^<br clear="none">
><br clear="none">
> fatal:error in statement<br clear="none">
> ncl 5> quit<br clear="none">
> aditya@agniilap:~/geeta/ncl/myscripts_ncl$ ls -lrt<br clear="none">
> total 182900<br clear="none">
> -rw-rw-r-- 1 aditya aditya 18838952 May 27 22:27 fnl_20150423_12_00.grib2<br clear="none">
> -rw-rw-r-- 1 aditya aditya 83991480 May 27 22:29 <a rel="nofollow" shape="rect" target="_blank" href="http://fnl_20150423_12_00.nc/">fnl_20150423_12_00.nc</a><br clear="none">
> -rw-rw-r-- 1 aditya aditya 83991480 May 27 22:34 <a rel="nofollow" shape="rect" target="_blank" href="http://test.nc/">test.nc</a><br clear="none">
> -rw-rw-r-- 1 aditya aditya 542 May 27 23:41 test.ncl<br clear="none">
> -rw-rw-r-- 1 aditya aditya 451983 May 27 23:50 <a rel="nofollow" shape="rect" target="_blank" href="http://ce.ps/">ce.ps</a><br clear="none">
> aditya@agniilap:~/geeta/ncl/myscripts_ncl$<br clear="none">
><br clear="none">
> pls suggest<br clear="none">
> Geeta.<br clear="none">
> _______________________________________________<br clear="none">
> ncl-talk mailing list<br clear="none">
> List instructions, subscriber options, unsubscribe:<br clear="none">
> <a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><div class="yiv4137810772yqt1003519657" id="yiv4137810772yqtfd80531"><br clear="none">
<br clear="none">
<br clear="none">
<br clear="none">
_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">
</div></blockquote></div><div class="yiv4137810772yqt1003519657" id="yiv4137810772yqtfd26588"><br clear="none"></div></div></div></div><br><br></div> </div> </div> </div></div></body></html>