Thanks, Dave!
I finished downloading and testing NCL 6.1.2 and it did not throw any syntax error on the new := operator.
Thanks for adding this new reassignment operator! It's really convenient.
From: Dave Allured - NOAA Affiliate [mailto:dave.allured@noaa.gov]
Sent: Friday, December 06, 2013 12:33 PM
To: Joe Lee
Cc: ncl-talk@ucar.edu
Subject: Re: http://www.ncl.ucar.edu/Applications/Scripts/polyg_17.ncl example
Joe,
What Wei said, but here is a little more information.
":=" is not a typo. This is a new operator that was added in NCL version 6.1.1, You have 6.1.0.
http://www.ncl.ucar.edu/prev_releases.shtml#NewOperator6.1.1
You can use a sequence like the following to replace the := operator. The if statement is frequently needed when the assignment is inside a do loop.
; x := expression ; line being replaced
if (isdefined ("x")) then
delete (x)
end if
x = expression
--Dave
On Fri, Dec 6, 2013 at 11:19 AM, H. Joe Lee <hyoklee@hdfgroup.org<mailto:hyoklee@hdfgroup.org>> wrote:
Hi,
I cannot run the plyg_17.ncl example.
Is ":=" typo?
The blow is the error message:
------------------
Copyright (C) 1995-2012 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.1.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
fatal:syntax error: line 113 in file polyg_17.ncl before or near :
x :
--------^
fatal:error in statement
fatal:Syntax Error in block, block not executed
fatal:error at line 125 in file polyg_17.ncl
fatal:syntax error: line 206 in file polyg_17.ncl before or near :
ii :
---------^
fatal:error in statement
fatal:syntax error: line 208 in file polyg_17.ncl before or near :
ii :
---------^
fatal:error in statement
fatal:syntax error: line 210 in file polyg_17.ncl before or near :
ii :
---------^
fatal:error in statement
fatal:Syntax Error in block, block not executed
fatal:error at line 238 in file polyg_17.ncl
-- HDF: Software that Powers Science _______________________________________________ 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 Fri Dec 6 11:57:28 2013
This archive was generated by hypermail 2.1.8 : Fri Dec 13 2013 - 11:39:30 MST