Re: Fatal error when trying to open a .ncl script

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 25 2011 - 14:28:03 MDT

To run an NCL script, don't type "ncl" first.

On the UNIX command line, type:

ncl test.ncl

--Mary

On Oct 25, 2011, at 2:22 PM, Catalina Oaida wrote:

> Hi,
>
> I am trying to run a script in ncl but I get an error as soon as I open ncl and try to run it. For example, I open ncl, then type ncl test.ncl, and immediately get an error (fatal:syntax error: line 0 before or near test). See below. I am attaching the test.ncl script for reference. Could someone tell me why this happens? Does it have to do with setting environments?
>
> The strange thing is it worked earlier in the morning, ran the script with no problems, it produced a figure and everything, and I am not sure what happened but all of a sudden I get this error. Can someone help? Thanks.
>
>
>
> Copyright (C) 1995-2011 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 6.0.0
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> ncl 0> ncl test.ncl
> fatal:syntax error: line 0 before or near test
> ncl test
> -------^
>
> fatal:error in statement
>
>
> --
> Catalina
>
> <test.ncl>_______________________________________________
> 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
Received on Tue Oct 25 14:28:10 2011

This archive was generated by hypermail 2.1.8 : Fri Oct 28 2011 - 10:52:03 MDT