Gabriel,<br>As long as your data contains wind direction oriented such that 0 deg in your data refers to a wind blowing to the north (or from the south), then your components can be broken down as:<br><br>u = wind_magnitude * sin(direction)<br>
v = wind_magnitude * cos(direction)<br><br>Of course, when actually putting these computations into Grads you will want to change "direction" from degrees to radians.<br><br>Jeff Duda<br><br><div class="gmail_quote">
On Mon, Sep 27, 2010 at 12:34 PM, Gabriel - ud Carvalho <span dir="ltr"><<a href="mailto:gabriel.ud@gmail.com">gabriel.ud@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello you all!<div>Here is the deal:</div><div>In my data, the wind direction is in degrees, with a geographic representation (wich means that 0 is at the north and goes clockwise),</div><div>the problem is that to display this data with 'gxout vector', I have to decompose it in 'u' and 'v'. In order to do this, I have to use the trigonometric functions 'sin' and 'cosin'. The problem is here, these functions assume that the input data is with a trigonometric representation (wich means that 0 degrees is eastside and goes anti-clockwise),butthey arenīt, so, it got all messed up.</div>
<div><br></div><div>I donīt know what to do,but I believe that this is a common problem,</div><div>I hope someone will know the answer...</div><div><br></div><div>Sorry about my poor english,</div><div><br></div><div>My best regards,</div>
<div>Gabriel Carvalho</div><font color="#888888"><div><br></div><div> </div><div><br></div>
</font><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/~jdduda">www.meteor.iastate.edu/~jdduda</a><br>