<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
DIV.FoxDiv20120211002446507674 {
        WORD-WRAP: break-word; COLOR: #000000; -WEBKIT-NBSP-MODE: SPACE; -WEBKIT-LINE-BREAK: AFTER-WHITE-SPACE
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: ΢ÈíÑźÚ; COLOR: #000080; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 9.00.8112.16440"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>If you are working on a windows platform, you can download OpenGrADS
which has the regrid function already.</DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>Yan Libin</SPAN></DIV>
<DIV> </DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:rseigel@atmos.colostate.edu">Robert
Seigel</A></DIV>
<DIV><B>Date:</B> 2012-02-11 00:22</DIV>
<DIV><B>To:</B> <A href="mailto:zjuyanlibin@163.com">zjuyanlibin</A>; <A
href="mailto:gradsusr@gradsusr.org">GrADS Users Forum</A></DIV>
<DIV><B>Subject:</B> Re: [gradsusr] regrid data</DIV></DIV></DIV>
<DIV>
<DIV class=FoxDiv20120211002446507674><BASE href="x-msg://6/">
<DIV>Thank you for the quick response, Yan. </DIV>
<DIV><BR></DIV>
<DIV>When I type that, I get the following response from grads: </DIV>
<DIV><BR></DIV>
<DIV>
<DIV>Syntax Error: Invalid Operand </DIV>
<DIV> 're2' not a variable or function name</DIV>
<DIV> Error ocurred at column 1</DIV>
<DIV>DEFINE error: Invalid expression. </DIV></DIV>
<DIV><BR></DIV>
<DIV>Do you have a copy of the re2() script? </DIV>
<DIV><BR></DIV>
<DIV>Thanks,</DIV>
<DIV>Rob</DIV><BR>
<DIV>
<DIV>On Feb 10, 2012, at 9:17 AM, Yan Libin wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV
style="LINE-HEIGHT: 1.5; MARGIN: 10px; FONT-FAMILY: ΢ÈíÑźÚ; COLOR: rgb(0,0,128); FONT-SIZE: 10.5pt">
<DIV>define varnew=re2(varold,1,1)</DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>Yan Libin</SPAN></DIV>
<DIV> </DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: rgb(181,196,223) 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV
style="PADDING-BOTTOM: 8px; BACKGROUND-COLOR: rgb(239,239,239); PADDING-LEFT: 8px; PADDING-RIGHT: 8px; COLOR: rgb(0,0,0); FONT-SIZE: 12px; PADDING-TOP: 8px; background-origin: initial; background-clip: initial">
<DIV><B>From:</B> <A href="mailto:rseigel@atmos.colostate.edu">Robert
Seigel</A></DIV>
<DIV><B>Date:</B> 2012-02-11 00:15</DIV>
<DIV><B>To:</B> <A href="mailto:gradsusr@gradsusr.org">gradsusr</A></DIV>
<DIV><B>Subject:</B> [gradsusr] regrid data</DIV></DIV></DIV>
<DIV>
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I am trying to regrid NAM data to match up with GFS resolution. I have seen numerous posts regarding regrid2() or re(), however I cannot seem to find any of these scripts. I have downloaded a bundle and found regrid2(), but could not get it to work. It gave me errors similar to previous posts ('regrid2' not a variable or function name). Does anyone have (or know where to find) a script that regrids data to a more coarse resolution? </DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV>Rob</DIV>
<DIV>_______________________________________________</DIV>
<DIV>gradsusr mailing list</DIV>
<DIV><A href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</A></DIV>
<DIV><A
href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</A></DIV></DIV>_______________________________________________<BR>gradsusr
mailing list<BR><A
href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</A><BR><A
href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</A><BR></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BODY></HTML>