<div dir="ltr"><div>I have no idea what <b>wrf_vector </b>is doing within the function. That function was written by WRF developers. <br></div><div>Maybe, you could look <br></div><div><br></div><div>%> less .../.../WRFUserARW.ncl search for <b>wrf_vector</b></div><div>-------------------------------------<br></div><div>NCL's <b>wind_direction </b>will return meteorological direction<br></div><div><b></b></div><div><b><br></b></div><div><span style="color:rgb(0,0,0)"><b><span style="white-space:pre-wrap">dir10_avg = <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/wind_direction.shtml"><b>wind_direction</b></a>(u10_avg, v10_avg, 1) ; meteorological wind direction</span></b></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 26, 2021 at 12:28 AM sangeeta maharjan via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I have been using <span style="white-space:pre-wrap"><font color="#ff0000"> " vector = wrf_vector(a,wks,u10,v10,opts)" </font><font color="#000000"> for plotting wind vector distribution from wrf output.</font></span></div><div><span style="white-space:pre-wrap"><font color="#000000"><br></font></span></div><div><font color="#000000"><span style="white-space:pre-wrap">Inorder to plot the monthly average spatial wind vector distribution , I computed the average of u10_avg and v10_avg . </span></font></div><div><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></div><div><font color="#000000"><span style="white-space:pre-wrap">On using the same function, </span></font><span style="color:rgb(255,0,0);white-space:pre-wrap"> " vector = wrf_vector(a,wks,u10_avg,v10_avg,opts)", </span><span style="white-space:pre-wrap"><font color="#000000">I got a very odd plot distribution.</font></span></div><div> </div><div>As mentioned in "Technical note of averaging wind speed and direction" by Stuart K. Grange , average wind direction is <font color="#0000ff">arctan(u10_avg/v10_avg)+flow</font></div><div><br></div><div>where<font color="#0000ff"> flow =+ 180
for arctan (u10_avg/v10_avg) < 180 </font></div><div><font color="#0000ff"> =- + 180 for arctan (u10_avg/v10_avg) >180 </font></div><div><font color="#0000ff"><br></font></div><div><font color="#000000">Could you kindly suggest how to plot wind vectors from averaged u and v components.</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Any help is appreciated.</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Kind regards,</font></div><div><font color="#000000">Sang</font></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>