First off, it looks like the second link in your code was largely based on my code, but better documented, and my code aside from the wind direction was largely based on @mkuoppa’s code. He/She did the original calculation and I adapted it for mph (multiplying the m/s calc to mph). My sensor had 2 reed clicks per rotation, hence the dividing by 2. Yours is double my conversion as a result. Honestly I took the calculation at face value thinking someone smarter than me had already figured it out, and never verified it myself to be accurate (frankly due to lack of a way to measure wind in a calibrated way!). I do know from it being in a relatively limited exposure and low elevation that I do record accurate enough wind speed for my use case as compared to my nearest PWS (which is quite near being in a large city).
You can have a read through this thread here if you haven’t already for my journey, which includes link to my reddit post and gist on my station’s development.
If you have the same sensor array and a formula that leads to better accuracy, then that is why we are a community!
3 Likes