<!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.FoxDiv20120211003254079135 {
        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>Rob,</DIV>
<DIV> </DIV>
<DIV>You can download OpenGrADS from this link</DIV>
<DIV><A
href="http://sourceforge.net/projects/opengrads/files/grads2/2.0.1.oga.1/Linux/">http://sourceforge.net/projects/opengrads/files/grads2/2.0.1.oga.1/Linux/</A>
</DIV>
<DIV>I guess this bundle has regrid function (re2) after you install it.</DIV>
<DIV>It is not a script under windows platform, so maybe the same under linux
platform.</DIV>
<DIV>After installation, you can do like this:</DIV>
<DIV> </DIV>
<DIV>define var1=re2(var,1,1)</DIV>
<DIV>d var1</DIV>
<DIV> </DIV>
<DIV>You can have a try.</DIV>
<DIV>Good luck.</DIV>
<DIV> </DIV>
<DIV>Libin</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:28</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=FoxDiv20120211003254079135><BASE href="x-msg://12/">
<DIV>I am using a Linux platform with grads-2.0.a9. Is there a linux
script?</DIV>
<DIV><BR></DIV>
<DIV>Rob</DIV><BR>
<DIV>
<DIV>On Feb 10, 2012, at 9:26 AM, Yan Libin wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite"><SPAN
style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; ORPHANS: 2; WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"
class=Apple-style-span>
<DIV
style="LINE-HEIGHT: 1.5; MARGIN: 10px; FONT-FAMILY: ΢ÈíÑźÚ; COLOR: rgb(0,0,128); FONT-SIZE: 10.5pt">
<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: 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:22</DIV>
<DIV><B>To:</B> <A
href="mailto:zjuyanlibin@163.com">zjuyanlibin</A>;<SPAN
class=Apple-converted-space> </SPAN><A
href="mailto:gradsusr@gradsusr.org">GrADS Users Forum</A></DIV>
<DIV><B>Subject:</B> Re: [gradsusr] regrid data</DIV></DIV></DIV>
<DIV>
<DIV
style="WORD-WRAP: break-word; COLOR: rgb(0,0,0); -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"
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 style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em"
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>_______________________________________________<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></SPAN></BLOCKQUOTE></DIV><BR></DIV></DIV></BODY></HTML>