<div dir="ltr"><div><div>Dave,<br></div>Since "time" is a string, I don't think you would want to display it as a field anyway. Bill's suggestion is the correct way to go.<br><br></div>Jeff Duda<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 4, 2017 at 3:29 PM, Ryglicki, Dr. David <span dir="ltr"><<a href="mailto:david.ryglicki@nrlmry.navy.mil" target="_blank">david.ryglicki@nrlmry.navy.mil</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div class="m_4313999720113235248WordSection1"><p class="MsoNormal">Hi everyone.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Quick question about a reserved variable in GrADS. According to the scripting doc page (<a href="http://cola.gmu.edu/grads/gadoc/script.html" target="_blank">http://cola.gmu.edu/grads/<wbr>gadoc/script.html</a>), there are four predefined variables: lat, lon, lev, and time. However, I can’t get “time” to work.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">After opening control file (which I know works!)…<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-family:"Courier New"">ga-> set x 1<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">LON set to 0 0<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">ga-> set y 1<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">LAT set to -90 -90<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">ga-> d lat<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">Result value = -90<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">ga-> d lon<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">Result value = 0<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">ga-> d time<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">Syntax Error: Invalid Operand<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> 'time' not a variable or function name<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> Error ocurred at column 1<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">DISPLAY error: Invalid expression<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> Expression = time<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">ga-> d lev<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">Result value = 1<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">ga-> set t 1 last<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">Time values set: 2008:8:6:0 2008:8:9:23<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">ga-> d time<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">Syntax Error: Invalid Operand<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> 'time' not a variable or function name<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> Error ocurred at column 1<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New"">DISPLAY error: Invalid expression<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Courier New""> Expression = time<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Did I mess this up? Is this a bug? Deprecated feature? The destination of this information is a time series text file via <a href="http://fprintf.gs" target="_blank">fprintf.gs</a>. 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.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">~Dave<u></u><u></u></p></div></div><br>______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Jeff Duda<br>Post-doctoral research fellow<br>University of Oklahoma School of Meteorology<br></div></div></div></div></div>
</div>