<div class="gmail_quote">On Tue, Feb 10, 2009 at 11:59 PM, Antoy Chang <span dir="ltr"><<a href="mailto:antoyc@yahoo.com">antoyc@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><div>Hi all.,</div>
<div>I just wondering if anyone here know how to do the wind field interpolation to a finer grid. Sorry for my vague question. Thank You very much for your response.</div>
<div> </div></td></tr></tbody></table></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888"><br>
</font></blockquote></div><div><br></div>The question for you is how accurate do you want to be? For a quick plot linear interpolation is fine; poles are always tricky, depending on whether your the poles are in the center or edge of the gridbox. Look for the built in linterp() function in grads v2, and the UDFs re()/regrid2() in grads v1.x.<div>
<br></div><div> A proper wind interpolation should take as input both u and v components; currently grads functions can only return one argument, so you would need 2 functions: uinterp(u,v), and vinterp(u,v). I am not aware of any function implementing vector interpolation in grads, so you would need to write a user defined function for that. And as of this writing, only grads v1.x supports UDFs.</div>
<div><br></div><div> Arlindo</div><div><br></div><div><br></div><div><br></div><div><br><div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>
</div></div>