<br><br><div class="gmail_quote">On Fri, Mar 5, 2010 at 12:13 PM, Hai-Ru Chang <span dir="ltr"><<a href="mailto:hrc@eas.gatech.edu">hrc@eas.gatech.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">Hello,<div> I have a time series data file. When I export a variable from opengrads to python, I saw the following error. The version of my opengrads is v2.0.a7.oga.3. Dose anyone has a fix? Thanks!<br>
<div><br></div><div><br></div><div><div>>>> temp = ga.exp('temp')</div><div>Traceback (most recent call last):</div><div> File "<stdin>", line 1, in <module></div><div> File "/home/hrc/install/lib64/python2.6/site-packages/grads/ganum.py", line 119, in exp</div>
<div> if nx==1: raise GrADSError, 'lon must be varying but got nx=1'</div><div>grads.gacore.GrADSError: 'lon must be varying but got nx=1'</div><div><br></div></div></div></div></blockquote><div><br></div>
<div>Try</div><div><br></div><div> temp = ga.expr('temp')</div><div><br></div><div>that is, method "expr" instead of "exp".</div><div> </div><div><br></div></div>-- <br>Arlindo da Silva<br>
<a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>