Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    Issue with wind layer color scale conversion from kt to km/h

    Bug Reports
    2
    9
    252
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • michele7M
      michele7 | Premium
      last edited by michele7

      Hello Windy! Team,

      I am experiencing a problem with the wind layer color scale when using values defined in knots (kt). Although we provide the color scale values in knots, when Windy converts these values to kilometers per hour (km/h) for display, the conversion appears to be incorrect. This results in poor and inaccurate wind color visualizations.

      For example, the default color scale uses a maximum value of 104 (knots), which should correspond to approximately 192.6 km/h. However, in the Windy preview, this maximum value is shown as 374 km/h, which is nearly double the expected value. alt text. This discrepancy causes the wind colors to be poorly distributed and visually misleading. App iOS 46.0.4

      Could you please advise on the correct way to define and apply wind layer color scales to ensure accurate speed representation and color mapping, especially when converting between units?

      Thank you very much for your support!

      idefix37I 1 Reply Last reply Reply Quote 0
      • idefix37I
        idefix37 Sailor Moderator @michele7
        last edited by idefix37

        @michele7

        Although we provide the color scale values in knots

        Hi,
        If you are talking about the code and you want to use it to set colors and wind scale, in the code the wind speed is not in knots but in m/s.
        By the way, I can no longer enter or modify the code on iOS. Can you?

        michele7M 1 Reply Last reply Reply Quote 0
        • michele7M
          michele7 @idefix37 | Premium
          last edited by

          @idefix37

          Thanks, I’ve solved the issue, the problem was that I needed to use m/s in the code, not knots. Once I switched to m/s, the color scale worked correctly.

          Also, yes. I can edit the color scale by modifying the JSON code directly on my iPhone running iOS 18.5, so that part is working fine for me.

          idefix37I 1 Reply Last reply Reply Quote 0
          • idefix37I
            idefix37 Sailor Moderator @michele7
            last edited by idefix37

            @michele7
            Thank you for this information about iOS. So I will check again if I can modify the code directly on these devices.

            michele7M 1 Reply Last reply Reply Quote 1
            • michele7M
              michele7 @idefix37 | Premium
              last edited by

              @idefix37

              I noticed that when I customize the color scale for a layer like “Rain, thunder”, the map background changes from dark to white.
              Is there a way to keep the dark background when using a custom color scale?
              Or is there an option to force Windy to keep the original map style regardless of the custom layer?

              Thanks

              idefix37I 1 Reply Last reply Reply Quote 0
              • idefix37I
                idefix37 Sailor Moderator @michele7
                last edited by idefix37

                @michele7
                What you call background, is it the 0mm value ? It seems to me you can modify it as you like.

                903B2326-FAAF-4691-9029-9262F3532D9E.jpeg

                michele7M 1 Reply Last reply Reply Quote 0
                • michele7M
                  michele7 @idefix37 | Premium
                  last edited by

                  @idefix37

                  I mean the map, not the colors of the mm. just the colors of the various states. in your photo it is gray/black. in my case it became white after I changed the color scale

                  idefix37I 1 Reply Last reply Reply Quote 0
                  • idefix37I
                    idefix37 Sailor Moderator @michele7
                    last edited by idefix37

                    @michele7

                    I don’t know why the map contours are changed from black to white for you.

                    Back to the question of changing the code in iOS. I made a test. Now for me it is possible to copy, cut or paste the whole code, but not to modify it line by line as it was possible 2 or 3 years ago directly in the window.

                    michele7M 1 Reply Last reply Reply Quote 0
                    • michele7M
                      michele7 @idefix37 | Premium
                      last edited by

                      @idefix37

                      Yes, I can actually modify and delete individual values directly within the code without any problem, not just copy and paste the entire block to replace the default.

                      I’m sorry, but I’m not sure what could be causing the issue on your side.

                      1 Reply Last reply Reply Quote 1
                      • idefix37I idefix37 referenced this topic
                      • First post
                        Last post
                      Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
                      NodeBB & contributors, OSM & contributors, HERE maps
                      Terms of Use     Privacy Policy