My Math Forum  

Go Back   My Math Forum > College Math Forum > Applied Math

Applied Math Applied Math Forum


Reply
 
LinkBack Thread Tools Display Modes
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.
mapple is offline  
 
Reply

  My Math Forum > College Math Forum > Applied Math

Tags
bias, calculate, directions, subtracting, wind



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
plane + wind bearing problem triplekite Algebra 7 October 8th, 2012 11:29 PM
Question about a curve - 1 or 2 directions? Alamos Algebra 12 September 5th, 2012 02:09 AM
bias estimator PerMortenIvar Advanced Statistics 1 March 8th, 2012 12:14 PM
2 Vectors clockwise directions gtopcu Algebra 2 October 3rd, 2011 05:04 AM
plane + wind bearing problem triplekite Linear Algebra 0 December 31st, 1969 04:00 PM





Copyright © 2017 My Math Forum. All rights reserved.