<html><head><base href="x-msg://12/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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 class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 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; font-size: medium; "><div style="line-height: 1.5; font-family: ΢ÈíÑźÚ; color: rgb(0, 0, 128); font-size: 10.5pt; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; "><div>If you are working on a windows platform, you can download OpenGrADS which has the regrid function already.</div><div> </div><hr align="left" color="#b5c4df" size="1" style="width: 210px; height: 1px; "><div><span>Yan Libin</span></div><div> </div><div style="border-bottom-width: medium; border-bottom-style: none; border-bottom-color: initial; border-left-width: medium; border-left-style: none; border-left-color: initial; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; border-top-style: solid; border-right-width: medium; border-right-style: none; border-right-color: initial; padding-top: 3pt; "><div style="padding-bottom: 8px; padding-left: 8px; padding-right: 8px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(239, 239, 239); color: rgb(0, 0, 0); font-size: 12px; padding-top: 8px; background-position: initial initial; background-repeat: initial 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 class="FoxDiv20120211002446507674" style="word-wrap: break-word; color: rgb(0, 0, 0); -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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" style="margin-top: 0px; margin-bottom: 0px; margin-left: 2em; "><div style="line-height: 1.5; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; font-family: ΢ÈíÑźÚ; color: rgb(0, 0, 128); font-size: 10.5pt; "><div>define varnew=re2(varold,1,1)</div><div> </div><hr align="left" color="#b5c4df" size="1" style="width: 210px; height: 1px; "><div><span>Yan Libin</span></div><div> </div><div style="border-bottom-width: medium; border-bottom-style: none; border-bottom-color: initial; border-left-width: medium; border-left-style: none; border-left-color: initial; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; border-top-style: solid; border-right-width: medium; border-right-style: none; border-right-color: initial; 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></body></html>