[ncl-talk] unable to run NCL on Ubuntu

Alessandra Giannini alesall at iri.columbia.edu
Wed May 27 12:27:30 MDT 2015


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





More information about the ncl-talk mailing list