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

    Weather radar (legend)

    Bug Reports
    3
    13
    1.0k
    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.
    • idefix37I
      idefix37 Sailor Moderator @MarcosBermejo
      last edited by idefix37

      @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.

      MarcosBermejoM 1 Reply Last reply Reply Quote 0
      • MarcosBermejoM
        MarcosBermejo @idefix37 | Premium
        last edited by

        @idefix37

        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]]]

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

          @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?_=1747741904668

          How did you create your color scale? By modifying the default color scale or by writing the code from scratch?

          MarcosBermejoM 1 Reply Last reply Reply Quote 0
          • MarcosBermejoM
            MarcosBermejo @idefix37 | Premium
            last edited by

            @idefix37

            By modifying the default color scale.

            idefix37I Filip_KF 2 Replies Last reply Reply Quote 0
            • idefix37I
              idefix37 Sailor Moderator @MarcosBermejo
              last edited by

              @MarcosBermejo
              So it should works.
              Do you have other layers (wind, temperature, rain…) with a modified palette by displaying your colors ?

              MarcosBermejoM 1 Reply Last reply Reply Quote 0
              • Filip_KF
                Filip_K Developers @MarcosBermejo
                last edited by

                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:
                Screenshot_20250520_151422.png

                MarcosBermejoM 1 Reply Last reply Reply Quote 1
                • idefix37I idefix37 referenced this topic on
                • MarcosBermejoM
                  MarcosBermejo @idefix37 | Premium
                  last edited by

                  @idefix37

                  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.

                  idefix37I 1 Reply Last reply Reply Quote 0
                  • MarcosBermejoM
                    MarcosBermejo @Filip_K | Premium
                    last edited by

                    @Filip_K

                    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?

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

                      @MarcosBermejo W
                      What browser are you using? I get my customised color
                      map with Chrome in 2D and 3D on Mac.

                      MarcosBermejoM 1 Reply Last reply Reply Quote 0
                      • MarcosBermejoM
                        MarcosBermejo @idefix37 | Premium
                        last edited by

                        @idefix37

                        Google Chrome. I will try again. Thanks

                        1 Reply Last reply Reply Quote 0
                        • 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