[Fwd: EOFGRADS problems]

Matthias Munnich munnich at ATMOS.UCLA.EDU
Wed Nov 1 21:21:03 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Can anyone using Grads under Windows XP help Cleo Yip setting GAUDFT.
- -- Thanks!

Cleo,
once you set GAUDFT please check that
ga-> q udft
return an eofudf entry and then try again.

... Matt


- -------- Original Message --------

Dear Mr. Munnich,



I have problems in using the "EOFGRADS" to compute the EOFs within
GrADS in Window XP. The GrADS version I used is Win32e and I
downloaded the Window (32 bit) version from EOFGRADS homepage. Before
the usage of EOF function, I unzipped the software and moved the
"eof.gs" into the directory "C:\Program Files\PCGrADS\lib" and moved
the file "eofudf.exe" to the directory "C:\Program Files\PCGrADS\win32e".



When I run the GrADS, I type the following commands:

e.g.

ga-> sdfopen slp.mon.mean.nc <http://slp.mon.mean.nc>

ga-> set lat 0 50

ga-> set lon 100 160

ga-> eof slp



Then, error occurred like this:

*Fatal error: Only one time step. *

*EOF: Compute Empirical Orthogonal Functions (EOFs) *

*Eof.gs <http://Eof.gs> Version 0.14*

*Usage: eof [options] fld *

*……………*

* *

When I tried again by adding commands:

ga-> set t 1 100

ga-> eof slp

The output was different from before,

*Writing data to transfer file… *

*gxstart=0, gxstop=21, gystart=0, gystop=21. *

*gzstart=0, gzstop=1, gtsart=0, gtstop=1. *

*….*

*….*

*Executing eof binary *

*Syntax Error: Invalid Operand *

*'eofudf' not a variable or function name *

*Error occurred at column 1 *

*Display error: Invalid expression *

*Expression=epfudf(slp,100,12,-1,70,slp_) *

*eof.gs <http://eof.gs> : First call of eofudf returned Error. STOP*

* *

I noted that it is necessary to edit a User Defined Function (UDF)
based on the instruction, so I tried to create a folder called UDF and
it is in the path "C:\Program Files\PCGrADS\UDF". Inside this folder,
a text file "UDFT.txt" (C:\Program Files\PCGrADS\UDF\UDFT.txt) was
created with the following content:



eofudf 2 6 expr value value value value char

sequential

/win32e/eofudf

eofudf.in <http://eofudf.in>

eofudf.out



When I did the above procedure again in GRADS, the same error
occurred. What is the correct procedure and how to make the User
Defined Function?



Would you advise if there are any mistakes I made or what're the
missing procedures when I used this software?



I am looking forward to hearing from you. Thank you for your help in
advance.



Yours sincerely,

Cleo Yip


- --
- --------------------------------
Matthias Munnich
Univ. of California, Los Angeles
Inst. of Geophysics and Planetary Physics
3845 Slichter Hall
Los Angeles, CA 90095-1567
Phone: +1-310-794 5899
Fax: +1-310-206 3051
Email: munnich at atmos.ucla.edu
- --------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFSVYPidaDTh/cfhYRAggvAKDcrvnebYXIx6gEmz/YIfUxbR0dhQCeIlXi
DV6Uyms18zzLd3kg9m7HcaY=
=NCNC
-----END PGP SIGNATURE-----



More information about the gradsusr mailing list