Issue with wind layer color scale conversion from kt to km/h
-
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.
. 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!
-
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? -
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.
-
@michele7
Thank you for this information about iOS. So I will check again if I can modify the code directly on these devices. -
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
-
@michele7
What you call background, is it the 0mm value ? It seems to me you can modify it as you like. -
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
-
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.
-
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.
-
I idefix37 referenced this topic