[gradsusr] How to regrid data using GrADS
Hang
hang_hang2004 at yahoo.com.hk
Sat Jan 29 01:50:00 EST 2011
Krishnamohan and other users,
Here's what I got when I used "re". GrADS seems do not know what is "re"
ga-> sdfopen /home2/h08hang/redata/uwnd10m.mon.mean.nc
Scanning self-describing file: /home2/h08hang/redata/uwnd10m.mon.mean.nc
SDF file /home2/h08hang/redata/uwnd10m.mon.mean.nc is open as file 1
LON set to 0 360
LAT set to -88.542 88.542
LEV set to 0 0
Time values set: 1948:1:1:0 1948:1:1:0
E set to 1 1
ga-> q file
File 1 : monthly mean u wind
Descriptor: /home2/h08hang/redata/uwnd10m.mon.mean.nc
Binary: /home2/h08hang/redata/uwnd10m.mon.mean.nc
Type = Gridded
Xsize = 192 Ysize = 94 Zsize = 1 Tsize = 756 Esize = 1
Number of Variables = 1
uwnd 0 -103 Monthly Mean of U-Wind
ga-> set lat -90 90
LAT set to -90 90
ga-> set lon 0 360
LON set to 0 360
ga-> set t 1 753
Time values set: 1948:1:1:0 2010:9:1:0
ga-> set z 1
LEV set to 0 0
ga-> define uwnd10m=re(uwnd,2.5,2.5)
Syntax Error: Invalid Operand
're' not a variable or function name
Error ocurred at column 1
DEFINE error: Invalid expression.
Any further suggestions or I have made something wrong??
Thanks a lot
Henry
________________________________
From: krishnamohan <krishmet at gmail.com>
To: GrADS Users Forum <gradsusr at gradsusr.org>
Sent: Sat, January 29, 2011 2:52:02 AM
Subject: Re: [gradsusr] How to regrid data using GrADS
Hai Henry,
Define a new variable such that
define new=re(uwnd,2.5,2.5)
it will work
--
Krishnamohan.K.S
Junior Research Fellow
Department Of Atmospheric Sciences
Cochin University of Science and Technology
Cochin,India
On Fri, Jan 28, 2011 at 8:02 PM, Hang <hang_hang2004 at yahoo.com.hk> wrote:
Hi,
>
>
>I want to regrid my data and I am using GrADS Version 2.0.a3 (not opengrads in
>windows). I have tried
> "regrid(uwnd,2.5,2.5)" , " regrid2(uwnd,2.5,2.5)" and
> "re(uwnd,2.5,2.5)" .
>
>
>However error messages were displayed and said
>'regrid' not a variable or function name , 'regrid2' not a variable or function
>name and 're' not a variable or function name
>respectively
>
>
>Does anyone have any ideas on how to regrid data using GrADS and give me some
>suggestions? Which command should I use?
>Your suggestion is highly appreciated.
>
>
>Thanks
>Henry
>
>
>
>
>
>_______________________________________________
>gradsusr mailing list
>gradsusr at gradsusr.org
>http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110129/e6d915fc/attachment-0003.html
More information about the gradsusr
mailing list