Weather radar (legend)
-
Hi,
I am particularizing my radar color palette. When I save the configuration, it doesn't load properly. You can see it in the attached image.
Can you help me please?
Thanks!
-
@MarcosBermejo
Hi, do you mean it is the radar layer on the map or the legend in the bottom right corner that isn't loading according to your color scale?
I guess it is your radar layer that don’t load properly, but why are you talking about the legend. -
Hi,
The legend in the lower right corner does not load according to my color scale. If it loads the default one, it works without problem.
Is there a maximum limit of lines to add to the color palette?
Thank you very much.
-
@MarcosBermejo
So you mean that when the legend load correctly the layer don’t ? But how can you change the behaviour of the legend.
In my own case the legend is always the default one. -
Yes, the radar legend is always the same, from 0 to 60 dZB. However, by making my own color palette (I refine the palette more to be able to see different phenomena more easily), it does not show up on the map.
[[0,[40,16,158,0]],
[7,[34,14,130,255]],
[12,[27,47,133,255]],
[15,[49,62,181,255]],
[20,[0,141,179,255]],
[24,[90,195,209,255]],
[28,[138,226,237,255]],
[30,[137,232,110,255]],
[32,[69,240,66,255]],
[34,[23,224,12,255]],
[36,[23,166,10,255]],
[38,[9,99,8,255]],
[40,[231,240,131,255]],
[42,[247,240,31,255]],
[44,[214,188,19,255]],
[46,[232,162,56,255]],
[48,[247,132,16,255]],
[50,[194,73,13,255]],
[52,[232,90,90,255]],
[54,[235,69,69,255]],
[56,[242,34,34,255]],
[58,[230,22,22,255]],
[60,[189,13,13,255]],
[62,[148,13,13,255]],
[64,[219,105,187,255]],
[66,[217,61,196,255]],
[68,[192,31,207,255]],
[70,[115,10,122,255]],
[72,[33,2,33,255]]] -
@MarcosBermejo
I don't think the number of lines is the cause of your problem.
It's a bit strange, but this user is experiencing the same issue with a similar radar palette.
https://community.windy.com/topic/39994/palette-policy-bug?_=1747741904668How did you create your color scale? By modifying the default color scale or by writing the code from scratch?
-
By modifying the default color scale.
-
@MarcosBermejo
So it should works.
Do you have other layers (wind, temperature, rain…) with a modified palette by displaying your colors ? -
Hi @MarcosBermejo, for some reason, the colorscale doesn't work without value 255. Here is your color scale with 255 added to the end:
[[0,[40,16,158,0]], [7,[34,14,130,255]], [12,[27,47,133,255]], [15,[49,62,181,255]], [20,[0,141,179,255]], [24,[90,195,209,255]], [28,[138,226,237,255]], [30,[137,232,110,255]], [32,[69,240,66,255]], [34,[23,224,12,255]], [36,[23,166,10,255]], [38,[9,99,8,255]], [40,[231,240,131,255]], [42,[247,240,31,255]], [44,[214,188,19,255]], [46,[232,162,56,255]], [48,[247,132,16,255]], [50,[194,73,13,255]], [52,[232,90,90,255]], [54,[235,69,69,255]], [56,[242,34,34,255]], [58,[230,22,22,255]], [60,[189,13,13,255]], [62,[148,13,13,255]], [64,[219,105,187,255]], [66,[217,61,196,255]], [68,[192,31,207,255]], [70,[115,10,122,255]], [72,[33,2,33,255]], [255,[0,0,0,0]]]
This is what it looks like:
-
I idefix37 referenced this topic
-
It's strange because with the temperature and wind layers, my colorscale loads fine with 3D mode, but with 2D mode it loads the default one.
-
I have tried it this way and it works already. Thank you!
As for the temperature and wind layers, my colorscale only works with 3D mode, do you know why it could be?
-
@MarcosBermejo W
What browser are you using? I get my customised color
map with Chrome in 2D and 3D on Mac. -
Google Chrome. I will try again. Thanks