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

    Schwarze Bereiche zwischen Temperaturbereichen in Karte

    Non English posts
    2
    8
    1.2k
    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.
    • R
      Rainer Lippert | Premium
      last edited by

      Hallo,

      ich habe die Temperaturfarben komplett neu angepasst. In 2-Grad-Schritten, jeweils mit einer eigens definierten Farbe. Damit keine Glättung der Farben geschieht, habe ich für jede Farben zwei Temperaturen, als Bereich, angegeben. Das klappt soweit auch wie gewünscht. Dennoch erscheint immer wieder ein schwarzer Streifen zwischen zwei Farben in der Karte. Diesem Bereich scheint keine Farbe zugeordnet zu sein. An was kann das liegen? Die Temperaturen habe ich wie folgt angegeben:

      10
      11.99
      12
      13.99
      14
      15.99
      16
      17.99

      Danke und viele Grüße,

      Rainer

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

        @Rainer-Lippert
        Have changed the temperature via the Temperature table itself or via the code on Import/Export line ?

        1 Reply Last reply Reply Quote 0
        • R
          Rainer Lippert | Premium
          last edited by

          Hallo,

          ich habe den Code in der Import / Export-Zeile geändert. Da schaut alles richtig aus.

          Viele Grüße,

          Rainer

          1 Reply Last reply Reply Quote 0
          • R
            Rainer Lippert | Premium
            last edited by

            Hallo,

            das Hauptproblem ist bei 0 Grad. Da habe ich sogar extra mehrmals die 9 und auch 0,1 gesetzt. Aber auch an anderen Stellen passen die Übergänge nicht. hier wäre der Code:

            [[202.99,[255,230,255,256]],
            [203,[255,215,255,256]],
            [207.99,[255,215,255,256]],
            [208,[255,200,255,256]],
            [212.99,[255,200,255,256]],
            [213,[255,185,255,256]],
            [217.99,[255,185,255,256]],
            [218,[255,170,255,256]],
            [222.99,[255,170,255,256]],
            [223,[255,155,255,256]],
            [227.99,[255,155,255,256]],
            [228,[255,140,255,256]],
            [232.99,[255,140,255,256]],
            [233,[255,125,255,256]],
            [234.99,[255,125,255,256]],
            [235,[255,100,255,256]],
            [236.99,[255,100,255,256]],
            [237,[255,75,255,256]],
            [238.99,[255,75,255,256]],
            [239,[255,50,255,256]],
            [240.99,[255,50,255,256]],
            [241,[255,25,255,256]],
            [242.99,[255,25,255,256]],
            [243,[255,0,255,256]],
            [244.99,[255,0,255,256]],
            [245,[210,0,210,256]],
            [246.99,[210,0,210,256]],
            [247,[165,0,165,256]],
            [248.99,[165,0,165,256]],
            [249,[120,0,120,256]],
            [250.99,[120,0,120,256]],
            [251,[75,0,75,256]],
            [252.99,[75,0,75,256]],
            [253,[0,0,70,256]],
            [254.99,[0,0,70,256]],
            [255,[0,0,105,256]],
            [256.99,[0,0,105,256]],
            [257,[0,0,140,256]],
            [258.99,[0,0,140,256]],
            [259,[0,0,175,256]],
            [260.99,[0,0,175,256]],
            [261,[0,0,210,256]],
            [262.99,[0,0,210,256]],
            [263,[0,0,255,256]],
            [264.99,[0,0,255,256]],
            [265,[0,64,255,256]],
            [266.99,[0,64,255,256]],
            [267,[0,127,255,256]],
            [268.99,[0,127,255,256]],
            [269,[0,192,255,256]],
            [270.99,[0,192,255,256]],
            [271.01,[0,255,255,256]],
            [272.999999,[0,255,255,256]],
            [273,[0,75,0,256]],
            [274.99,[0,75,0,256]],
            [275,[0,120,0,256]],
            [276.99,[0,120,0,256]],
            [277,[0,165,0,256]],
            [278.99,[0,165,0,256]],
            [279,[0,210,0,256]],
            [280.99,[0,210,0,256]],
            [281,[0,255,0,256]],
            [282.99,[0,255,0,256]],
            [283,[255,255,0,256]],
            [284.99,[255,255,0,256]],
            [285,[255,237,0,256]],
            [286.99,[255,237,0,256]],
            [287,[255,219,0,256]],
            [288.99,[255,219,0,256]],
            [289,[255,201,0,256]],
            [290.99,[255,201,0,256]],
            [291,[255,183,0,256]],
            [292.99,[255,183,0,256]],
            [293,[255,165,0,256]],
            [294.99,[255,165,0,256]],
            [295,[255,126,0,256]],
            [296.99,[255,126,0,256]],
            [297,[255,84,0,256]],
            [298.99,[255,84,0,256]],
            [299,[255,42,0,256]],
            [300.99,[255,42,0,256]],
            [301,[255,0,0,256]],
            [302.99,[255,0,0,256]],
            [303,[232,0,0,256]],
            [304.99,[232,0,0,256]],
            [305,[209,0,0,256]],
            [306.99,[209,0,0,256]],
            [307,[186,0,0,256]],
            [308.99,[186,0,0,256]],
            [309,[163,0,0,256]],
            [310.99,[163,0,0,256]],
            [311,[140,0,0,256]],
            [312.99,[140,0,0,256]],
            [313,[117,0,0,256]],
            [314.99,[117,0,0,256]],
            [315,[94,0,0,256]],
            [316.99,[94,0,0,256]],
            [317,[71,0,0,256]],
            [318.99,[71,0,0,256]],
            [319,[47,0,0,256]],
            [320.99,[47,0,0,256]],
            [321,[24,0,0,256]],
            [322.99,[24,0,0,256]],
            [323,[0,0,0,256]]]

            Viele Grüße,

            Rainer

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

              @Rainer-Lippert
              Hello Rainer
              Your code is excellent. To remove black outlines, I rounded xxx.99 to xxx.9. Of course this increases the transition fringe between 2 colors (mixture) but it seems more aesthetic. I think that black or mixed-color areas cannot be totally eliminated because the program was designed to mix the colors.

              B34D25E9-7FFD-4E98-99C5-40519B0310ED.jpeg

              2247D741-E304-4E43-AEE4-91D175E771B3.jpeg

              For your question about 0°C, I do not really understand what the problem is. The 0°C is in the color green because you have determined it like that.
              Personally I would prefer to see it in the light blue (it is the intuitive color of the ice).
              You may also choose to place the 0°C in a color with a range of -1 ° C and 1 ° C. And so to shift everything by 1°C. To consider the temperature of the middle of the color (0°C, 2°C, 4°C ....), with 0°C in light blue and 2°C in green.

              1 Reply Last reply Reply Quote 0
              • R
                Rainer Lippert | Premium
                last edited by

                Hallo idefix37, das reduzieren der 9er hat tatsächlich geholfen. Vielen Dank. So sieht es besser aus, ohne diesem schwarz. Das mit 0°C, der Übergang zu Minus, passt jetzt auch besser. Dort war das schwarz am meisten vertreten. 0°C soll noch grün sein. Und alles im Frostbereich, also ab -0,1°C, wenn Wasser friert, soll hellblau erscheinen. Der Übergang von hellblau zu grün soll bei genau 0°C erfolgen. Verschiebe ich das, also von -1°C bis 1°C, wäre es im Plusbereich von hellblau, oder im Minusbereich bereits grün.

                Viele Grüße,

                Rainer

                1 Reply Last reply Reply Quote 1
                • R
                  Rainer Lippert | Premium
                  last edited by

                  Hallo idefix37,

                  ich habe da noch eine Frage. Basiert der Code auf Kelvin? Denn der Nullpunkt ist ja bei 273. Und das wäre ja bei Kelvin genau der Nullpunkt. Exakt 0,0°C wären dann im Code nicht 273, sondern 273.15. Kommt daher die Verschiebungen in den Farben?

                  Viele Grüße,

                  Rainer

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

                    @Rainer-Lippert
                    Yes, the code is based on the degree Kelvin (°K) and it may be useful to use 273.15 instead of 273. Moreover, in Windy default code, the 0°C code is 273.15. I do not think it affects really the color distribution. The error is just 0.05 % .... but you can add 0.15 to all your lines of code.

                    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