<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font face="Times New Roman, Times, serif">Hi all,</font></p>
<p><font face="Times New Roman, Times, serif">What I'm trying to do:</font></p>
<ul>
<li><font face="Times New Roman, Times, serif">I want to display wind arrows using 2 files: wind direction and wind speed. I am using the "CONNECTIONTYPE uvraster" feature to display our arrows. Because we don't have U and V wind vectors in the North-South
 direction for some models, we use the WIND and WDIR files which are respectively wind speed and wind direction (in the North-South direction, or Earth relative). So as input for my layer in MapServer I have a VRT where band 1 is the wind direction (from 0
 to 360 degres) and band 2 is the wind speed. Instead of letting MapServer calculates the resulting arrows speed and direction I'm using the raw value of u ([u]) as wind direction and the raw value of v ([v]) as my wind speed. So far so good.
<br>
</font></li></ul>
<p><font face="Times New Roman, Times, serif">My problem is:</font></p>
<ul>
<li><font face="Times New Roman, Times, serif">The arrow rotation is done using the ANGLE keyword and [u] (wind direction). But the ANGLE rotates the arrows in the counter clockwise direction while the wind direction files increase in a clockwise direction...
 Because we are using wind direction and wind speed files (raw values of [u] and [v]) we can't use the [uv_minus_angle] and I know that MapServer docs says that no processing can be done on the ANGLE feature. I know that I would have to do some pre-processing
 (like 360-[u]) and that would solve the problem. But I would have to do this for hundreds of file per day and I'm trying to avoid as much as possible pre-processing.</font>
</li></ul>
<p><font face="Times New Roman, Times, serif">Can you guys think of a solution that would not require pre-processing? I tried playing with the arrow position and other little things but I could not make it work correctly and I'm pretty much out of ideas...
<br>
</font></p>
<p><font face="Times New Roman, Times, serif">Thanks</font></p>
<p><font face="Times New Roman, Times, serif">LP</font><br>
</p>
</body>
</html>