Here are three references that use the vector method for wind speed and direction. http://www.webmet.com/met_monitoring/622.html note the use of the atan2() function and, http://www.ndbc.noaa.gov/wndav.shtml and, https://en.wikipedia.org/wiki/Yamartino_method
The method of bins is used to estimate wind turbine power from a histogram of wind speeds. http://www.nrel.gov/wind/smallwind/pdfs/power_performance_testing.pdf
Finally a wind rose: https://en.wikipedia.org/wiki/Wind_rose
@ClearMemory041063 started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Here are three references that use the vector method for wind speed and direction.
http://www.webmet.com/met_monitoring/622.html
note the use of the atan2() function
and,
http://www.ndbc.noaa.gov/wndav.shtml
and,
https://en.wikipedia.org/wiki/Yamartino_method
The method of bins is used to estimate wind turbine power from a histogram of wind speeds.
http://www.nrel.gov/wind/smallwind/pdfs/power_performance_testing.pdf
Finally a wind rose:
https://en.wikipedia.org/wiki/Wind_rose