[gradsusr] "Time" variable.
Ryglicki, Dr. David
david.ryglicki at nrlmry.navy.mil
Thu May 4 16:29:48 EDT 2017
Hi everyone.
Quick question about a reserved variable in GrADS. According to the
scripting doc page (http://cola.gmu.edu/grads/gadoc/script.html), there are
four predefined variables: lat, lon, lev, and time. However, I can't get
"time" to work.
After opening control file (which I know works!).
ga-> set x 1
LON set to 0 0
ga-> set y 1
LAT set to -90 -90
ga-> d lat
Result value = -90
ga-> d lon
Result value = 0
ga-> d time
Syntax Error: Invalid Operand
'time' not a variable or function name
Error ocurred at column 1
DISPLAY error: Invalid expression
Expression = time
ga-> d lev
Result value = 1
ga-> set t 1 last
Time values set: 2008:8:6:0 2008:8:9:23
ga-> d time
Syntax Error: Invalid Operand
'time' not a variable or function name
Error ocurred at column 1
DISPLAY error: Invalid expression
Expression = time
Did I mess this up? Is this a bug? Deprecated feature? The destination of
this information is a time series text file via fprintf.gs. I realize I
could do this the "long way" with an iterator and repeated 'q time' calls,
but I was wondering if there's a shortcut. Thanks.
~Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170504/f2b6c041/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5386 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20170504/f2b6c041/attachment.bin
More information about the gradsusr
mailing list