[gradsusr] multiplication in Grads script
Love, Mr. Gary, Contractor, Code 7542
gary.love.ctr at nrlmry.navy.mil
Wed Jul 6 14:19:37 EDT 2016
These three lines work fine with every version of grads I am using. However, I
use a simple text editor like view to write a script.
I suspect your text editor is adding hidden characters that grads cannot
interpret. This is why a value is not being assigned as indicated by the
error.
Try a linux editor such as vi, emacs, or nedit to write your script.
Gary Love
Naval Research Laboratory
From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On
Behalf Of Kathryn Sellwood - NOAA Affiliate
Sent: Wednesday, July 06, 2016 9:20 AM
To: gradsusr at gradsusr.org
Subject: [gradsusr] multiplication in Grads script
I have defined 2 variables in a grads script which I would then like to
multiply
to obtain a 3rd variable
xdif=1.12
xplot=0.047
xdist=xplot*xdif
I get the following error "Non-numeric args to numeric operation"
I have tried multiple ways to get this to work with no success ... guessing
that it is commenting out "xdif" but I also tried putting * in quotes and that
produced a similar error.
Any Ideas?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160706/59ca0794/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/20160706/59ca0794/attachment.bin
More information about the gradsusr
mailing list