<DIV>Hi, Jim:</DIV>
<DIV> </DIV>
<DIV>Thank you very much for your quick response. I take your advice, the sad news is I got the similar error message. </DIV>
<DIV> </DIV>
<DIV>ga-> d regrid2(slp,3.5,3.5,ba)<BR>gxstart=0, gxstop=144, gystart=0, gystop=73.<BR>gzstart=0, gzstop=1, gtstart=0, gtstop=1.<BR> <BR> <BR> regrid requires 2 or more arguements:<BR> <BR>Error from regrid2: Error reading from transfer file<BR> File name: udf.regrid.gfi<BR>Operation Error: Error from regrid2 function<BR> Error ocurred at column 1<BR>DISPLAY error: Invalid expression <BR> Expression = regrid2(slp,3.5,3.5,ba)<BR>ga-> <BR></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Li Tao</DIV>
<DIV> </DIV>
<DIV> </DIV>在2007-05-25,"James T. Potemra" <jimp@hawaii.edu> 写道:<BR>
<BLOCKQUOTE style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><PRE style="WORD-WRAP: break-word">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
>
</PRE><!-- CoreMail Version 3.1_dev Copyright (c) 2002-2007 www.mailtech.cn --></BLOCKQUOTE><br><!-- footer --><br><hr>
<a style="font-size:14px;line-height:15px; color:#000; text-decoration:none" href="http://event.mail.163.com/chanel/xyq.htm?from=126_NO6" target="_blank"><span style="text-decoration:underline; color:blue">人山人海盛景,尽在梦幻西游 </span> </a>