export a time series from GRADS
Arlindo da Silva
arlindo.dasilva at GMAIL.COM
Sat Mar 13 15:48:23 EST 2010
On Fri, Mar 5, 2010 at 12:13 PM, Hai-Ru Chang <hrc at eas.gatech.edu> wrote:
> Hello,
> 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!
>
>
> >>> temp = ga.exp('temp')
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/home/hrc/install/lib64/python2.6/site-packages/grads/ganum.py",
> line 119, in exp
> if nx==1: raise GrADSError, 'lon must be varying but got nx=1'
> grads.gacore.GrADSError: 'lon must be varying but got nx=1'
>
>
Try
temp = ga.expr('temp')
that is, method "expr" instead of "exp".
--
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100313/f016a252/attachment.html
More information about the gradsusr
mailing list