Giter VIP home page Giter VIP logo

Comments (3)

aukedejong avatar aukedejong commented on June 1, 2024 1

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.

aukedejong avatar aukedejong commented on June 1, 2024

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.

srwareham avatar srwareham commented on June 1, 2024

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
image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.