Comments (3)
I think other people will run into this to.
And I also think it's an easy fix to use a Bft scale that depends on the input unit.
And then a conversion to mps is not needed anymore. Is a performance improvements for the larger data sets.
Thanks for this analysis.
from lovelace-windrose-card.
The Dutch wikipedia page states 0 - 0.2 m/s instead of 0.5 m/s. The Dutch meteo institute also uses 0.2 m/s. Strange, other sites use 0.5. Is it country specific?
About the other ranges. In code the second number is the same as the start of the next range.
The matching works like this:
- speed >= 0.5 and < 1.5
- speed >= 1.5 and < 3.4
This way there are no gaps.
I will change the 0.3 to 0.5, but I think the others are correct.
When the input unit is not meters per second, it is converted to m/s. Unless I made an error in the unit converting code (wrong factor maybe).
When the input speed unit is not defined, meters per second is used. If that's not the correct input unit, the ranges wil not be correct.
I can't think of an other way how the boundaries can be off by a multiplier.
Can you give more details?
from lovelace-windrose-card.
TL;DR I don't think you should change things to a convention other than whatever suits you best--thanks again for the great product!
Looking into it more, it seems like 0.2 m/s might actually be the canonical value. Although, confusingly enough, sources don't seem to be internally consistent. The Beaufort scale wasn't defined in reference to actual wind speeds, but the seemingly most accepted conversion from Beaufort value to m/s is
meters per second = 0.836 * B^(3/2)
Tabulating that, the bounds would be
Yet it seems each source somewhat arbitrarily decides which round numbers it likes more. So I guess maybe it's a moot point. My comment regarding the multiplier is also probably similarly moot. Basically, when Beaufort 4 is defined as 5.5 - 8 m/s, that translates to 12.303 - 17.895 mph. Whereas the (arbitrarily?) chosen round numbers typically used for mph are actually 13 - 18. So if someone is using the default Beaufort implementation, but also has some other reporting of their wind speeds, they'd be confused when the two don't reconcile. Or, in my case, when I tried to re-implement the Beaufort scale in MPH (so I could have mph labels), the two implementations produced surprisingly different results.
from lovelace-windrose-card.
Related Issues (20)
- Card blank wth DWD Gernan weather service. HOT 13
- Console Error - No matching speed found for direction. HOT 9
- Error after update 6/9/2023 HOT 4
- delete me
- Blank card. Error: Could not convert direction unknown to degrees HOT 5
- Blank card HOT 11
- [Feature request] card working with attribues HOT 2
- Card stopped working after update HOT 3
- empty panel after HA update to 2023.6.1 HOT 11
- [RQST] hours_to_show automatic since midnight HOT 2
- [Feature request] card using a background image HOT 13
- Make the units less strict? HOT 4
- 1 Hour chart not updating HOT 5
- i want fix the legend range in rose plot HOT 4
- wind rose legend HOT 2
- [Feature request] Hide bar option HOT 5
- [FR] Console warnings: Speed unavailable at timestamp ... is not a number - can we have a "debug_messages: false" option? [overlooked "log_level" option] HOT 2
- Card may not be displayed (observed in Edit mode) HOT 6
- Numbers in and next to the bar HOT 5
- [Feature request] add range selector buttons
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lovelace-windrose-card.