<!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
}
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>well done!</DIV>
<DIV>cong.</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-14 21:03</DIV>
<DIV><B>To:</B> <A href="mailto:gradsusr@gradsusr.org">GrADS Users
Forum</A></DIV>
<DIV><B>Subject:</B> Re: [gradsusr] regrid data</DIV></DIV></DIV>
<DIV>
<DIV>Aha. I finally have it. regrid2 works perfectly now.</DIV>
<DIV> </DIV>
<DIV>Thanks!</DIV>
<DIV>Rob</DIV>
<DIV> </DIV>
<DIV>On 2/13/12 7:38 PM, Arlindo da Silva wrote:</DIV>
<DIV>> Sent from my iPhone</DIV>
<DIV>></DIV>
<DIV>> On Feb 13, 2012, at 11:18 AM, Robert Seigel<rseigel@atmos.colostate.edu> wrote:</DIV>
<DIV>></DIV>
<DIV>>> Hi Liban, Sam, and Mike,</DIV>
<DIV>>></DIV>
<DIV>>> Thank you for the responses.</DIV>
<DIV>>></DIV>
<DIV>>> I am currently running opengrads 2.0.1 and still unable to access the regrid2 functions.</DIV>
<DIV>> I can help you with that but I'll need more information. For example,</DIV>
<DIV>> the output of</DIV>
<DIV>></DIV>
<DIV>> ga-> q config</DIV>
<DIV>> ga-> q udxt</DIV>
<DIV>></DIV>
<DIV>> Arlindo</DIV>
<DIV>></DIV>
<DIV>></DIV>
<DIV>>> However, I have figured out a workaround using wgrib2. With wgrib2, I am successfully able to interpolate the NAM grid to the more coarse GFS grid for more objective comparisons.</DIV>
<DIV>>></DIV>
<DIV>>> Thanks again,</DIV>
<DIV>>> Rob</DIV>
<DIV>>></DIV>
<DIV>>> On Feb 12, 2012, at 4:12 PM, Michael Fiorino wrote:</DIV>
<DIV>>></DIV>
<DIV>>>> Rob and Liban,</DIV>
<DIV>>>></DIV>
<DIV>>>> the key point is that re2 and re are not grads scripts but grads</DIV>
<DIV>>>> external functions, i.e., they are external code accessed from within</DIV>
<DIV>>>> grads is if they were built into grads itself. an example of an</DIV>
<DIV>>>> 'intrinsic' or built-in grads function is 'aave'.</DIV>
<DIV>>>></DIV>
<DIV>>>> /*only opengrads2.0 supports external functions like my regrid2 (original</DIV>
<DIV>>>> user defined function for grads 1.X) that is now called 're2' in the</DIV>
<DIV>>>> opengrads2.0*/.</DIV>
<DIV>>>></DIV>
<DIV>>>> let me know if you have problems Rob, but it should work if you use</DIV>
<DIV>>>> opengrads2.0.</DIV>
<DIV>>>></DIV>
<DIV>>>> also, re2 (using re defaults) does 'appropriate' regriding. the general</DIV>
<DIV>>>> practice is to use area-average regriding (perserves area averages, or</DIV>
<DIV>>>> what i call 'box averaging', the 'ba' option in re2/re) when regriding</DIV>
<DIV>>>> from fine to coarse grids (e.g., 0.5 deg -> 2.5 deg). but for coarse -></DIV>
<DIV>>>> fine Nth order interp is better (re2/re this is 3rd order bessel</DIV>
<DIV>>>> interpolation) re2/re selects the appropriate method that can be</DIV>
<DIV>>>> overridden as needed see:</DIV>
<DIV>>>></DIV>
<DIV>>>> re: http://opengrads.org/doc/udxt/re/</DIV>
<DIV>>>> re2: http://ruc.noaa.gov/fiorino/grads/re2.txt</DIV>
<DIV>>>></DIV>
<DIV>>>> ciao ciao 4 now, Mike</DIV>
<DIV>>>></DIV>
<DIV>>>> On 2012-02-10 09:36, Yan Libin wrote:</DIV>
<DIV>>>>> Rob,</DIV>
<DIV>>>>></DIV>
<DIV>>>>> You can download OpenGrADS from this link</DIV>
<DIV>>>>> http://sourceforge.net/projects/opengrads/files/grads2/2.0.1.oga.1/Linux/</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>
<DIV>>>>> Yan Libin</DIV>
<DIV>>>>></DIV>
<DIV>>>>> From: Robert Seigel</DIV>
<DIV>>>>> Date: 2012-02-11 00:28</DIV>
<DIV>>>>> To: zjuyanlibin; GrADS Users Forum</DIV>
<DIV>>>>> Subject: Re: [gradsusr] regrid data</DIV>
<DIV>>>>> I am using a Linux platform with grads-2.0.a9. Is there a linux script?</DIV>
<DIV>>>>></DIV>
<DIV>>>>> Rob</DIV>
<DIV>>>>></DIV>
<DIV>>>>> On Feb 10, 2012, at 9:26 AM, Yan Libin wrote:</DIV>
<DIV>>>>></DIV>
<DIV>>>>>> If you are working on a windows platform, you can download OpenGrADS which has the regrid</DIV>
<DIV>>>> function already.</DIV>
<DIV>>>>>> Yan Libin</DIV>
<DIV>>>>>></DIV>
<DIV>>>>>> From: Robert Seigel</DIV>
<DIV>>>>>> Date: 2012-02-11 00:22</DIV>
<DIV>>>>>> To: zjuyanlibin; GrADS Users Forum</DIV>
<DIV>>>>>> Subject: Re: [gradsusr] regrid data</DIV>
<DIV>>>>>> Thank you for the quick response, Yan.</DIV>
<DIV>>>>>></DIV>
<DIV>>>>>> When I type that, I get the following response from grads:</DIV>
<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>
<DIV>>>>>> Do you have a copy of the re2() script?</DIV>
<DIV>>>>>></DIV>
<DIV>>>>>> Thanks,</DIV>
<DIV>>>>>> Rob</DIV>
<DIV>>>>>></DIV>
<DIV>>>>>> On Feb 10, 2012, at 9:17 AM, Yan Libin wrote:</DIV>
<DIV>>>>>></DIV>
<DIV>>>>>>> define varnew=re2(varold,1,1)</DIV>
<DIV>>>>>>></DIV>
<DIV>>>>>>> Yan Libin</DIV>
<DIV>>>>>>></DIV>
<DIV>>>>>>> From: Robert Seigel</DIV>
<DIV>>>>>>> Date: 2012-02-11 00:15</DIV>
<DIV>>>>>>> To: gradsusr</DIV>
<DIV>>>>>>> Subject: [gradsusr] regrid data</DIV>
<DIV>>>>>>> Hi,</DIV>
<DIV>>>>>>></DIV>
<DIV>>>>>>> I am trying to regrid NAM data to match up with GFS resolution. I have seen numerous</DIV>
<DIV>>>> posts regarding regrid2() or re(), however I cannot seem to find any of these scripts. I</DIV>
<DIV>>>> have downloaded a bundle and found regrid2(), but could not get it to work. It gave me</DIV>
<DIV>>>> errors similar to previous posts ('regrid2' not a variable or function name). Does anyone</DIV>
<DIV>>>> have (or know where to find) a script that regrids data to a more coarse resolution?</DIV>
<DIV>>>>>>> Thanks,</DIV>
<DIV>>>>>>> Rob</DIV>
<DIV>>>>>>> _______________________________________________</DIV>
<DIV>>>>>>> gradsusr mailing list</DIV>
<DIV>>>>>>> gradsusr@gradsusr.org</DIV>
<DIV>>>>>>> http://gradsusr.org/mailman/listinfo/gradsusr</DIV>
<DIV>>>>>>> _______________________________________________</DIV>
<DIV>>>>>>> gradsusr mailing list</DIV>
<DIV>>>>>>> gradsusr@gradsusr.org</DIV>
<DIV>>>>>>> http://gradsusr.org/mailman/listinfo/gradsusr</DIV>
<DIV>>>>>> _______________________________________________</DIV>
<DIV>>>>>> gradsusr mailing list</DIV>
<DIV>>>>>> gradsusr@gradsusr.org</DIV>
<DIV>>>>>> http://gradsusr.org/mailman/listinfo/gradsusr</DIV>
<DIV>>>>></DIV>
<DIV>>>>></DIV>
<DIV>>>>> _______________________________________________</DIV>
<DIV>>>>> gradsusr mailing list</DIV>
<DIV>>>>> gradsusr@gradsusr.org</DIV>
<DIV>>>>> http://gradsusr.org/mailman/listinfo/gradsusr</DIV>
<DIV>>>> _______________________________________________</DIV>
<DIV>>>> gradsusr mailing list</DIV>
<DIV>>>> gradsusr@gradsusr.org</DIV>
<DIV>>>> http://gradsusr.org/mailman/listinfo/gradsusr</DIV>
<DIV>>></DIV>
<DIV>>> _______________________________________________</DIV>
<DIV>>> gradsusr mailing list</DIV>
<DIV>>> gradsusr@gradsusr.org</DIV>
<DIV>>> http://gradsusr.org/mailman/listinfo/gradsusr</DIV>
<DIV>> _______________________________________________</DIV>
<DIV>> gradsusr mailing list</DIV>
<DIV>> gradsusr@gradsusr.org</DIV>
<DIV>> http://gradsusr.org/mailman/listinfo/gradsusr</DIV>
<DIV> </DIV>
<DIV>-- </DIV>
<DIV>**********************************</DIV>
<DIV>Robert Seigel</DIV>
<DIV>Ph.D. Candidate</DIV>
<DIV>Department of Atmospheric Science</DIV>
<DIV>1371 Campus Delivery</DIV>
<DIV>Room 418</DIV>
<DIV>Fort Collins, CO 80523</DIV>
<DIV>rseigel@atmos.colostate.edu</DIV>
<DIV>(970)491-8331</DIV>
<DIV> </DIV>
<DIV>_______________________________________________</DIV>
<DIV>gradsusr mailing list</DIV>
<DIV>gradsusr@gradsusr.org</DIV>
<DIV>http://gradsusr.org/mailman/listinfo/gradsusr</DIV></DIV></BODY></HTML>