<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV>Krishnamohan and other users,</DIV>
<DIV> </DIV>
<DIV>Here's what I got when I used "re". GrADS seems do not know what is "re"<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><EM>ga-> sdfopen /home2/h08hang/redata/uwnd10m.mon.mean.nc<BR>Scanning self-describing file: /home2/h08hang/redata/uwnd10m.mon.mean.nc<BR>SDF file /home2/h08hang/redata/uwnd10m.mon.mean.nc is open as file 1<BR>LON set to 0 360 <BR>LAT set to -88.542 88.542 <BR>LEV set to 0 0 <BR>Time values set: 1948:1:1:0 1948:1:1:0 <BR>E set to 1 1 <BR>ga-> q file<BR>File 1 : monthly mean u wind<BR> Descriptor: /home2/h08hang/redata/uwnd10m.mon.mean.nc<BR> Binary: /home2/h08hang/redata/uwnd10m.mon.mean.nc<BR> Type = Gridded<BR> Xsize = 192 Ysize = 94 Zsize = 1 Tsize = 756 Esize = 1<BR> Number of Variables = 1<BR> uwnd 0 -103 Monthly Mean of U-Wind<BR>ga-> set lat -90 90<BR>LAT set to -90 90 <BR>ga-> set lon 0 360<BR>LON set to 0 360 <BR>ga-> set t 1 753<BR>Time values set: 1948:1:1:0 2010:9:1:0 <BR>ga->
set z 1<BR>LEV set to 0 0 <BR><STRONG>ga-> define uwnd10m=re(uwnd,2.5,2.5)<BR>Syntax Error: Invalid Operand <BR> 're' not a variable or function name<BR> Error ocurred at column 1<BR>DEFINE error: Invalid expression. </STRONG></EM></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">Any further suggestions or I have made something wrong??</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">Thanks a lot</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">Henry</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> krishnamohan <krishmet@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> GrADS Users Forum <gradsusr@gradsusr.org><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Sat, January 29, 2011 2:52:02 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [gradsusr] How to regrid data using GrADS<BR></FONT><BR><BR>Hai Henry,<BR><BR>Define a new variable such that<BR><BR>define new=re(uwnd,2.5,2.5)<BR><BR>it will work<BR><BR><BR>-- <BR>Krishnamohan.K.S<BR>Junior Research Fellow<BR>Department Of Atmospheric Sciences<BR>Cochin University of Science and Technology<BR>Cochin,India<BR><BR>
<DIV class=gmail_quote>On Fri, Jan 28, 2011 at 8:02 PM, Hang <SPAN dir=ltr><<A href="mailto:hang_hang2004@yahoo.com.hk" target=_blank rel=nofollow ymailto="mailto:hang_hang2004@yahoo.com.hk">hang_hang2004@yahoo.com.hk</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><SPAN style="FONT-SIZE: medium">Hi,</SPAN>
<DIV><SPAN style="FONT-SIZE: medium"><BR></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: medium">I want to regrid my data and I am using GrADS Version 2.0.a3 (not opengrads in windows). I have tried</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: medium"><I> "regrid(uwnd,2.5,2.5)" , " regrid2(uwnd,2.5,2.5)" and "re(uwnd,2.5,2.5)" . </I></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: medium"><BR></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: medium">However error messages were displayed and said </SPAN></DIV>
<DIV><SPAN><I><SPAN style="FONT-SIZE: medium">'regrid' not a variable or function name , </SPAN></I></SPAN><SPAN><I><SPAN style="FONT-SIZE: medium">'regrid2' not a variable or function name and </SPAN></I></SPAN><SPAN><I><SPAN style="FONT-SIZE: medium">'re' not a variable or function name </SPAN></I></SPAN></DIV>
<DIV><SPAN><SPAN style="FONT-SIZE: medium">r</SPAN></SPAN><SPAN><SPAN style="FONT-SIZE: medium">espectively</SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: medium"><BR></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: medium">Does anyone have any ideas on how to regrid data using GrADS and give me some suggestions? Which command should I use? </SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: medium"><SPAN style="FONT-SIZE: 16px">Your suggestion is highly appreciated.</SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: medium"><BR></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: medium">Thanks</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: medium">Henry</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: medium"><BR></SPAN>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD style="FONT-SIZE: 10pt; FONT-FAMILY: arial; font-size-adjust: inherit; font-stretch: inherit">
<DIV> </DIV></TD></TR></TBODY></TABLE>
<DIV></DIV></DIV></DIV><BR></DIV><BR>_______________________________________________<BR>gradsusr mailing list<BR><A href="mailto:gradsusr@gradsusr.org" target=_blank rel=nofollow ymailto="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</A><BR><A href="http://gradsusr.org/mailman/listinfo/gradsusr" target=_blank rel=nofollow>http://gradsusr.org/mailman/listinfo/gradsusr</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR><BR></DIV></DIV></div><br></body></html>