Calculating Average wind speed and direction

HAFEDH78

New Member
Joined
Nov 21, 2011
Messages
5
Hi Everyone,

I was wondering if someone could check if the following formulas make sense. I am trying to calculate the daily average wind speed and wind direction derived from values taken at 6hr intervals.
From wind speed and direction
</SPAN>
> (meteorological wind direction (wdir): eg E=90, S=180, W=270)
</SPAN>
> (1) calculate u and v </SPAN>
> u = -wspd*sin(wdir) </SPAN>
> v = -wspd*cos(wdir) </SPAN>
> </SPAN>
> (2) calculate the daily mean of each wind component: </SPAN>
> uave, vave </SPAN>
> </SPAN>
> (3) transform to wspd and wdir </SPAN>
> rad = 4.0*atan (1.0)/180.
</SPAN>
0.017453</SPAN>
> WSPD = sqrt(uAve^2+vAve^2)
</SPAN>
> WDIR = atan2(uAve,vAve)/rad +180. ; mean wind direction [0,360] </SPAN>
> </SPAN>
</SPAN>
</SPAN>

<TBODY>
</TBODY><COLGROUP><COL span=6></COLGROUP>
 
For those purists out there, I converted the user defined functions into cell formulas. Have fun with it.

Jeff


Excel 2010
ABCDE
3MagnitudeDirectionVel XVel Y
41.00341.00-0.330.95
51.00341.00-0.330.95
61.00301.00-0.860.52
71.99341.00-0.651.88
80.10341.00-0.030.09
90.50341.00-0.160.47
100.50341.00-0.160.47
110.50341.00-0.160.47
122.0012.000.421.96
131.00341.00-0.330.95
141.00342.00-0.310.95
151.00343.00-0.290.96
161.00344.00-0.280.96
171.00345.00-0.260.97
181.00346.00-0.240.97
191.00347.00-0.220.97
202.30348.00-0.482.25
211.10318.00-0.740.82
222.10352.00-0.292.08
231.50351.00-0.231.48
24
25Average:1.13323.85-0.301.06
26
27Weighted VelocityWeighted Direction
281.10344.31
Weighted_Dir
Cell Formulas
RangeFormula
D4=B4*COS(2*PI()*(90-C4)/360)
D25=AVERAGE(D4:D23)
E4=B4*SIN(2*PI()*(90-C4)/360)
E25=AVERAGE(E4:E23)
B25=AVERAGE(B4:B23)
B28=SQRT(D25^2+E25^2)
C25=AVERAGE(C4:C23)
C28=IF(OR(180/PI()*ATAN2(E25,D25)<0,180/PI()*ATAN2(E25,D25)>360)=TRUE,ABS(360-ABS(180/PI()*ATAN2(E25,D25))),180/PI()*ATAN2(E25,D25))
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi Jeffery Smith or anyone else.
Just a question are the formulas applicable to South and East?
Thanks
 
Upvote 0

Forum statistics

Threads
1,215,051
Messages
6,122,872
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top