[gradsusr] mysterious scripting error
Love, Mr. Gary, Contractor, Code 7542
gary.love.ctr at nrlmry.navy.mil
Thu Dec 29 14:35:38 EST 2016
Hi Jeff,
Your script must be local to you. I could not find it at
ftp://cola.gmu.edu/grads/scripts/
Anyway I made a simple test script shown below that works fine, so there must
be an assignment problem in you script probably with CpT.1 or CpT.nt.
function main()
nt=10
CpT.1=302984
CpT.nt=316526
a=CpT.1
b=CpT.nt
say a
say b
deltatheta=b-a
say deltatheta
return
Gary
From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On
Behalf Of Jeff Duda
Sent: Thursday, December 29, 2016 10:55 AM
To: GrADS Users Forum
Subject: [gradsusr] mysterious scripting error
I have this snippet of code:
a = CpT.1
b = CpT.nt
say a
say b
deltatheta = b-a
say deltatheta
where CpT.1 and CpT.nt have been previously defined. When I run the script, I
get this output
302984
316526
Non-numeric args to numeric operation
Error occurred on line 62
In file mixing_diagram.gs
Line 62 is underlined and in bold in the code above. Why is this error
occurring?
Jeff Duda
--
Jeff Duda
Post-doctoral research fellow
University of Oklahoma School of Meteorology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20161229/84ed9137/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5433 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20161229/84ed9137/attachment.bin
More information about the gradsusr
mailing list