My Math Forum Subtracting Wind Directions to calculate Bias

 Applied Math Applied Math Forum

 November 28th, 2016, 07:28 PM #1 Newbie   Joined: Nov 2016 From: Texas Posts: 1 Thanks: 0 Subtracting Wind Directions to calculate Bias How can I calculate the difference (WD_Bias) in two wind directions (in degrees) so that the results range from -180 to 180? Below is what I have so far? Does this seem to do what I want or am I missing something else? I seem to be getting sort of funny results. {wind direction: 0 degrees is coming from the North, 90 deg is coming from the East, 180 deg is coming from the south, 270 is coming from the West} WD_Bias = WD_model - WD_obs WD_Bias[WD_Bias>180.]=360.-WD_Bias[WD_Bias>180.] WD_Bias[WD_Bias<-180.]=WD_Bias[WD_Bias<-180.]+360.

 Tags bias, calculate, directions, subtracting, wind

 Thread Tools Display Modes Linear Mode

 Similar Threads Thread Thread Starter Forum Replies Last Post triplekite Algebra 7 October 8th, 2012 11:29 PM Alamos Algebra 12 September 5th, 2012 02:09 AM PerMortenIvar Advanced Statistics 1 March 8th, 2012 12:14 PM gtopcu Algebra 2 October 3rd, 2011 05:04 AM triplekite Linear Algebra 0 December 31st, 1969 04:00 PM

 Contact - Home - Forums - Cryptocurrency Forum - Top