regrid2 installation problem agai n
Li Tao
tudousi_2000 at 126.COM
Thu May 24 22:38:03 EDT 2007
Hi, Jim:
Thank you very much for your quick response. I take your advice, the sad news is I got the similar error message.
ga-> d regrid2(slp,3.5,3.5,ba)
gxstart=0, gxstop=144, gystart=0, gystop=73.
gzstart=0, gzstop=1, gtstart=0, gtstop=1.
regrid requires 2 or more arguements:
Error from regrid2: Error reading from transfer file
File name: udf.regrid.gfi
Operation Error: Error from regrid2 function
Error ocurred at column 1
DISPLAY error: Invalid expression
Expression = regrid2(slp,3.5,3.5,ba)
ga->
Li Tao
在2007-05-25,"James T. Potemra" <jimp at hawaii.edu> 写道:
Hi Li:
In your example below, you have regrid2(slp,1,1,2,2). The syntax should
be regrid2(some grads variable, delta x, delta y, a string defining the
type of averaging, then two numbers that depend on the preceding
string). So, in your case, regrid2 is trying to regrid slp onto a 1x1
degree grid, but then encounters a "2" instead of a character string.
Do you want to do something special here? If all you want is a 1x1
degree regrid, I suggest trying "regrid2(slp,1,1)". Finally, you should
have a file in the UDF directory called regrid2.txt that explains this
in more detail.
Jim
Li Tao wrote:
> I followed the instructions in readme.regrid2 and installed regrid2. When
> I tried to use it with a data, here is what I got:
>
> ga-> sdfopen slp.mon.mean.nc
> Scanning self-describing file: slp.mon.mean.nc
> Found 1 data variables in SDF file.
> Found displayable variable slp with 0 levels in SDF file.
> SDF file slp.mon.mean.nc is open as file 1
> LON set to 0 360
> LAT set to -90 90
> LEV set to 0 0
> Time values set: 1948:1:1:0 1948:1:1:0
> ga-> d slp
> Contouring: 985 to 1035 interval 5
> ga-> q dims
> Default file number is: 1
> X is varying Lon = 0 to 360 X = 1 to 145
> Y is varying Lat = -90 to 90 Y = 0.999999 to 73
> Z is fixed Lev = 0 Z = 1
> T is fixed Time = 00Z01JAN1948 T = 1
> ga-> d regrid2(slp,1,1,2,2)
>
>
> regrid requires 2 or more arguements:
>
> Error from regrid2: Invalid transfer file format
> File name: udf.regrid.gfo
> Operation Error: Error from regrid2 function
> Error ocurred at column 1
> DISPLAY error: Invalid expression
> Expression = regrid2(slp,1,1,2,2)
> ga->
>
> the B-shell script is following:
>
> export GADDIR=/data/teacher/gaoqj/grads/data
> PATH=$PATH:/opt/intel/fc/9.0/bin:/opt/intel/cc/9.0/bin:/usr/lib:/usr/includ
> e:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/lib/gcc-lib/ia64-suse-
> linux/3.3.3:/data/teacher/gaoqj/ncl/bin:/data/teacher/gaoqj/grads/bin:/data
> /teacher/gaoqj/grads/data
> export DISPLAY='172.16.19.57:0.0'
> export GAUDFT=/data/teacher/gaoqj/grads/udf/udft.regrid2
>
>
> sublime$ uname -a
> Linux altix-1 2.6.5-7.244-sn2 #1 SMP Mon Dec 12 18:32:25 UTC 2005 ia64
> ia64 ia64 GNU/Linux
>
> Any clues?
>
> Thanks.
>
> -Li Tao
>
人山人海盛景,尽在梦幻西游
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20070525/e959debc/attachment.html
More information about the gradsusr
mailing list