[ncl-talk] unable to run NCL on Ubuntu

Mary Haley haley at ucar.edu
Wed May 27 12:51:28 MDT 2015


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".

The "begin" and "end" statements are optional for the main NCL code, but
not optional when you are defining procedures and functions.


--Mary


On Wed, May 27, 2015 at 12:27 PM, Alessandra Giannini <
alesall at iri.columbia.edu> wrote:

>
> Hi,
>
> I am not sure you need the
>
> end
>
> line when you copy and paste, and execute line by line, but if so, how
> come you have no
>
> begin
>
> ?
>
>
>
> On May 27, 2015, at 2:23 PM, Geeta Geeta <geetag54 at yahoo.com> wrote:
>
> > This is continuation of my mails.
> > The script given on the NCL site runs perfectly on my system.  the ps
> file is created well.
> >
> > aditya at agniilap:~/geeta/ncl/myscripts_ncl$ echo $NCARG_ROOT
> > /home/aditya/geeta/ncl
> > aditya at agniilap:~/geeta/ncl/myscripts_ncl$ ncl
> >  Copyright (C) 1995-2014 - All Rights Reserved
> >  University Corporation for Atmospheric Research
> >  NCAR Command Language Version 6.2.1
> >  The use of this software is governed by a License Agreement.
> >  See http://www.ncl.ucar.edu/ for more details.
> > ncl 0> a = addfile("$NCARG_ROOT/lib/ncarg/data/cdf/uv300.nc","r")
> > ncl 1> u = a->U(1,:,:)
> > ncl 2> wks = gsn_open_wks("ps","ce")
> > ncl 3> plot = gsn_csm_contour_map_ce(wks,u,False)
> > ncl 4> end
> > fatal:syntax error: line 4 before or near end
> > end
> > --^
> >
> > fatal:error in statement
> > ncl 5> quit
> > aditya at agniilap:~/geeta/ncl/myscripts_ncl$ ls -lrt
> > total 182900
> > -rw-rw-r-- 1 aditya aditya 18838952 May 27 22:27 fnl_20150423_12_00.grib2
> > -rw-rw-r-- 1 aditya aditya 83991480 May 27 22:29 fnl_20150423_12_00.nc
> > -rw-rw-r-- 1 aditya aditya 83991480 May 27 22:34 test.nc
> > -rw-rw-r-- 1 aditya aditya      542 May 27 23:41 test.ncl
> > -rw-rw-r-- 1 aditya aditya   451983 May 27 23:50 ce.ps
> > aditya at agniilap:~/geeta/ncl/myscripts_ncl$
> >
> > pls suggest
> > Geeta.
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150527/b8543353/attachment.html 


More information about the ncl-talk mailing list