Dear Chris,<br>
<br>
Could you please check with the following formula:<br>
wdir=atan2(u,v)/0.01745329 +180<br>
The size of wind represents the wind speed. So, I don't think the dispariy among the vectors can be removed.<br>
<br>
Cheers,<br>
Amjad.<br>
<br><br><div><span class="gmail_quote">On 11/9/09, <b class="gmail_sendername">Chris Hayes</b> <<a href="mailto:c.hayes@weeronline.nl">c.hayes@weeronline.nl</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
<font face="Arial">dear group,<br>
<br>
I need to plot the wind directions for stations with equally sized
arrows.<br>
<br>
My dataset contains the direction in degrees (0-360).<br>
<br>
I use the gxout=vector map which requires a u and a v vector component
(i.e. the vertical and horizontal vector component).<br>
<br>
u<br>
| /winddir<br>
| /<br>
| /<br>
|/___ v<br>
<br>
<br>
I calculate u as -sin(winddir * pi/180)<br>
</font><font face="Arial">I calculate v as -cos(winddir * pi/180)<br>
</font><br>
<font face="Arial">resulting in the display-command '
-8*(sin(winddir * 0.0175)) ; -8*(cos(</font><font face="Arial">winddir</font><font face="Arial"> * 0.0175)) '<br>
(where 8 makes the size of the arrow, which usually represents
windspeed but here is desired to be constant)<br>
<br>
<br>
The direction of the arrows looks fine. <br>
But some maps have only tiny arrows and some maps have only longtailed
arrows. <br>
I cannot see a pattern. I have no mixed maps with tiny and large arrows.<br>
<br>
Should I change my formula, or the way I give the display command?<br>
<br>
thanks,<br>
Chris <br>
<br>
</font><br>
</div>
</blockquote></div><br>