<div class="gmail_quote">On Thu, May 14, 2009 at 12:39 AM, Sachin Ghude <span dir="ltr"><<a href="mailto:sachinghude@tropmet.res.in">sachinghude@tropmet.res.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff">
<p>Dear all,
<br>
<br>I am trying to calculate mean between product 1 (2.8X2.8 degree of resolution), product 2 (2.8X2.8 degree of resolution) and product 3 (1X1 degree resolution). I do not know how to increase the resolution of product 3 to 2.8X2.8 degree.</p>
</div></blockquote><div>You will need to use a regridding function. Your options depend on the version of grads you are working with (always give us the version of grads you are using). In older versions (v1.9b4 ad earlier) the classic regrid2() UDF used to be the norm. Version 2.0 comes with lterp() function built in:</div>
<div><br></div><div> <a href="http://grads.iges.org/grads/gadoc/gadocindex.html">http://grads.iges.org/grads/gadoc/gadocindex.html</a><br></div><div> </div><div>while the OpenGrADS builds (available from <a href="https://sourceforge.net/project/showfiles.php?group_id=161773">https://sourceforge.net/project/showfiles.php?group_id=161773</a>) comes with the re() function:</div>
<div><br></div><div> <a href="http://opengrads.org/doc/udxt/re/">http://opengrads.org/doc/udxt/re/</a><br></div><div><br></div><div>re() is a C implementation of the classic regrid2() UDF and is much faster. </div>
<div><br></div><div> Arlindo</div><div><br></div></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>