[gradsusr] Moving from one grads version to another

Jennifer M Adams jadams21 at gmu.edu
Mon Feb 27 12:19:51 EST 2017


Hi, Martin —
This is an obscure memory overwrite bug that was just pointed out to me a couple of days ago. There is a mismatch in the assumed max length of the variable description in a few source code files. I have fixed it for the next release, but for now you must shorten your description — I suggest removing the ‘none ‘ since it appears that the final ’nent’ is what’s getting chopped off. If that doesn’t fix it, removing the list of pressure levels will definitely solve the problem.
—Jennifer

On Feb 27, 2017, at 11:56 AM, Martin Cuma <martin.cuma at utah.edu<mailto:martin.cuma at utah.edu>> wrote:

Hello,

We are trying to move from older grads (2.0.a1) to newer, and have some issues.
When plotting variables from the same .ctl files with grads 2.0.2.oga.2 that
plot successfully with grads 2.0.a1.  For example, we can successfully plot a
variable, ugrdprs with grads 2.0.a1, but get the following error with grads
2.0.2.oga.2:

ga-> d ugrdprs
Syntax Error:  Invalid Operand
    'ugrdprs' not a variable or function name
    Error ocurred at column 1
DISPLAY error:  Invalid expression
    Expression = ugrdprs

The variables affected have long strings in the .ctl file, for example:

UGRDprs   31,100  0,2,2 ** (1000 975 950 925 900 850 800 750 700 650 600 550
500 450 400 350 300 250 200 150 100 70 50 30 20 10 7 5 3 2 1) none U-Component
of Wind [m/s]

When we query the file in grads 2.0.a1, the first part of the string is
provided:

ugrdprs 31 0 ** (1000 975 950 925 900 850 800 750 700 650 600 550 500 450 400
350 300 250 200 150 100 70 50 30 20 10 7 5 3 2 1) none U-Compo

However, when we query the file in grads 2.0.2.oga.2, the latter part of the
string is provided:

ent of Wind  31  0,2,3  ** (1000 975 950 925 900 850 800 750 700 650 600 550
500 450 400 350 300 250 200 150 100 70 50 30 20 10 7 5 3 2 1) none V-Component
of Wind

It looks like the long string truncation happens from the left in 2.0.a1 and
from the right in 2.0.2.oga.2.

Any thoughts on why can this be?

Thanks,
Martin
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170227/4c0aa175/attachment.html 


More information about the gradsusr mailing list