regrid2 installation problem agai n

Matt Georgescu matt1 at CEP.RUTGERS.EDU
Fri May 25 07:17:17 EDT 2007


Li, the syntax that you are using seems correct.

Are you trying to average "to" a 3.5 degree lat/lon box. I've never even 
thought about averaging to a coarser grid spacing although, i think box 
averaging should do the job and is recommended for such a thing.

try setting the domain bounds before displaying:
set x 1 145
set y 1 73
d regrid2(slp,2.5,2.5,ba)

matt

On Fri, 25 May 2007, Li Tao wrote:

> 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
>
>>
>
>
>
>
> ÈËɽÈ˺£Ê¢¾°£¬¾¡ÔÚÃλÃÎ÷ÓÎ


More information about the gradsusr mailing list