<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=888023715-06062007><FONT face=Arial
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=888023715-06062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=888023715-06062007><FONT face=Arial size=2>I was looking for
some help in calculating wind directions from a model on the Lambert Conformal
grid. The formula I use with other models (on polar stereographic grids)
doesn't work properly.</FONT></SPAN></DIV>
<DIV><SPAN class=888023715-06062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=888023715-06062007><FONT face=Arial color=#0000ff
size=2>function uv2dir(u,v)<BR>if (u = 0 & v > 0)<BR>phi =
360<BR>endif<BR>if (u = 0 & v < 0)<BR>phi = 180<BR>endif<BR>if (v = 0
& u > 0)<BR>phi = 90<BR>endif<BR>if (v = 0 & u < 0)<BR>phi =
270<BR>endif<BR>if (v = 0 & u = 0)<BR>phi =
180<BR>endif<BR><BR>theta=0<BR>if (u > 0. & v > 0.)<BR>theta =
180/3.1415*math_atan(v/u)<BR>phi = 90. - theta<BR>endif<BR>if (u < 0. & v
> 0.)<BR>theta = 180/3.1415*math_atan(v/(-u))<BR>phi = 270. +
theta<BR>endif<BR>if (u < 0. & v < 0.0001)<BR>theta =
180/3.1415*math_atan((-v)/(-u))<BR>phi = 270. - theta<BR>endif<BR>if (u > 0.
& v < 0.0001)<BR>theta = 180/3.1415*math_atan((-v)/u)<BR>phi = 90. +
theta<BR>endif<BR>phi = phi - 180<BR>if (phi <=
0.)<BR>phi=phi+360.<BR>endif<BR>return (phi)</FONT></SPAN></DIV>
<DIV><SPAN class=888023715-06062007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=888023715-06062007><FONT face=Arial color=#0000ff size=2><FONT
color=#000000>Any help would be appreciated.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=888023715-06062007><FONT face=Arial color=#0000ff size=2><FONT
color=#000000></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=888023715-06062007><FONT face=Arial color=#0000ff size=2><FONT
color=#000000>Brian Walsh</FONT></DIV>
<DIV><BR></DIV></FONT></SPAN></BODY></HTML>