Remove transitions between colors of a scale, pls
-
Hi! I use windy often and, recently, I started to modifying map color scales. I like the new colours!
But now, I would like to remove the transition between colors of the scale. Is it possible?
I'll be waiting! Thanks! :)
-
Hi,
This is possible if you design your color scale according to this diagram :Example with a small smoothed transition between colors on customized scale for Wind
Example with almost no transition between colors on customized color scale for Relative humidity
This scheme was applied recently in the new Icing severity layer.
Click on [View Code] to see the detail of its code
Note the color legend still remain smoothed. So you need to design your own legend.
-
@idefix37 Ok thank youu!👍
-
@AlexVídeos
Would be nice that you show some of your customized colours maps here. -
@idefix37 @AlexVídeos alex
you can get more creative with the color palette and add narrow bands of color as a proxy line to highlight a threshold value - in the above image 'gale force winds'.
-
@idefix37 Hi!! Here are some of my customized colours maps✅
⬆This is the Temperature map (the scale is based on Meteologix.com/weather.us)
CODE (TEMPERATURE MAP)
[[186,[148,81,168,255]], [188,[159,98,178,255]], [190,[159,98,178,255]], [192,[183,125,201,255]], [194,[183,125,201,255]], [196,[202,148,218,255]], [198,[202,148,218,255]], [200,[209,166,221,255]], [202,[209,166,221,255]], [204,[217,179,228,255]], [206,[217,179,228,255]], [208,[229,190,240,255]], [210,[229,190,240,255]], [212,[241,190,255,255]], [214,[241,190,255,255]], [216,[255,179,255,255]], [218,[255,179,255,255]], [220,[253,160,253,255]], [222,[253,160,253,255]], [224,[255,142,255,255]], [226,[255,142,255,255]], [228,[255,127,255,255]], [230,[255,127,255,255]], [232,[255,110,255,255]], [233,[255,110,255,255]], [234,[255,70,248,255]], [235,[255,70,248,255]], [236,[246,39,235,255]], [237,[246,39,235,255]], [238,[229,34,222,255]], [239,[229,34,222,255]], [240,[212,29,209,255]], [241,[212,29,209,255]], [242,[195,24,196,255]], [243,[195,24,196,255]], [244,[180,20,185,255]], [245,[165,16,174,255]], [246,[150,12,163,255]], [247,[135,8,152,255]], [248,[120,4,141,255]], [249,[100,0,127,255]], [250,[87,0,127,255]], [251,[75,0,127,255]], [252,[62,0,127,255]], [253,[50,0,127,255]], [254,[0,40,127,255]], [255,[0,50,127,255]], [256,[0,60,127,255]], [257,[0,70,127,255]], [258,[0,82,143,255]], [259,[0,98,175,255]], [260,[0,114,207,255]], [261,[0,130,239,255]], [262,[19,146,255,255]], [263,[37,154,255,255]], [264,[73,172,255,255]], [265,[91,180,255,255]], [266,[109,188,255,255]], [267,[127,196,255,255]], [268,[145,204,255,255]], [269,[154,208,255,255]], [270,[163,212,255,255]], [271,[181,220,255,255]], [272,[199,228,255,255]], [273,[255,255,255,256]], [274,[177,241,214,255]], [275,[149,223,188,255]], [276,[135,211,171,255]], [277,[98,175,136,255]], [278,[74,151,117,255]], [279,[7,161,39,255]], [280,[8,179,15,255]], [281,[33,187,14,255]], [282,[57,194,12,255]], [283,[82,202,11,255]], [284,[132,217,8,255]], [285,[156,225,6,255]], [286,[181,232,5,255]], [287,[206,240,3,255]], [288,[230,247,2,255]], [289,[243,251,1,255]], [290,[235,232,22,255]], [291,[244,217,11,255]], [292,[244,203,11,255]], [293,[244,189,11,255]], [294,[244,162,11,255]], [295,[244,136,11,255]], [296,[244,122,11,255]], [297,[244,109,11,255]], [298,[244,82,11,255]], [299,[232,55,9,255]], [300,[220,39,8,255]], [301,[196,26,10,255]], [302,[186,19,15,255]], [303,[175,15,20,255]], [304,[140,0,0,255]], [305,[120,0,0,255]], [306,[100,0,0,255]], [307,[140,50,50,255]], [308,[180,100,100,255]], [309,[200,120,120,255]], [310,[240,160,160,255]], [311,[255,180,180,255]], [312,[255,200,200,255]], [313,[255,220,220,255]], [314,[255,220,220,255]], [315,[255,240,240,255]], [316,[255,240,240,255]], [317,[226,226,226,255]], [318,[226,226,226,255]], [319,[197,197,197,255]], [320,[197,197,197,255]], [321,[168,168,168,255]], [322,[168,168,168,255]], [323,[109,109,109,255]], [324,[109,109,109,255]], [325,[128,128,128,255]], [326,[128,128,128,255]]]
⬆This is the Wind map (the scale is based on Meteociel.fr)
CODE (WIND MAP)
[[0,[255,255,255,256]], [1.3873532693178983,[151,230,255,255]], [2.7807486631016043,[51,204,255,255]], [4.171122994652406,[0,153,255,255]], [5.561497326203209,[0,255,153,255]], [6.951871657754011,[51,204,102,255]], [8.342245989304812,[102,204,51,255]], [9.732620320855615,[102,255,0,255]], [11.122994652406417,[164,242,47,255]], [12.51336898395722,[183,207,14,255]], [13.903743315508022,[214,240,23,255]], [15.294117647058824,[204,153,0,255]], [16.684491978609625,[255,153,0,255]], [18.020914471990135,[255,153,102,255]], [19.407138662143225,[204,153,153,255]], [20.793362852296312,[204,102,51,255]], [22.1795870424494,[204,51,51,255]], [23.627460225284352,[255,13,13,255]], [25.017310826771666,[198,0,0,255]], [27.7970120297463,[128,0,0,255]], [30.576713232720923,[128,0,80,255]], [33.356414435695555,[160,0,119,255]], [36.136115638670184,[204,0,204,255]], [38.91581684164482,[255,0,255,255]], [41.69551804461945,[255,64,255,255]], [44.47521924759407,[255,128,255,255]], [50.03462165354333,[255,160,255,255]], [55.5940240594926,[255,255,255,255]], [61.15342646544185,[227,227,227,255]], [66.59295692725912,[198,198,198,255]]]
⬆This is the Rain map (the scale is based on Meteologix.com/weather.us)
CODE (RAIN MAP)
[[0,[246,246,246,256]], [0.1,[180,215,255,256]], [0.2,[117,186,255,255]], [0.5,[53,154,255,255]], [1,[4,130,255,255]], [2,[0,105,210,255]], [3,[0,54,127,255]], [4,[20,143,27,255]], [5,[26,207,5,255]], [6,[99,237,7,255]], [7,[255,244,43,255]], [8,[232,220,0,255]], [9,[240,96,0,255]], [10,[255,127,39,255]], [12,[255,166,106,255]], [14,[248,78,120,255]], [16,[247,30,84,255]], [20,[191,0,0,255]], [24,[136,0,0,255]], [30,[100,0,127,255]], [40,[194,0,251,255]], [50,[221,102,255,255]], [60,[235,166,255,255]], [80,[249,230,255,255]], [100,[212,212,212,255]], [125,[150,150,150,255]]]
-
@AlexVídeos said in Remove transitions between colors of a scale, pls:
But now, I would like to remove the transition between colors of the scale. Is it possible?
Your question was to know how to remove transitions between the colors steps.
But all your customized scales are smoothed ! -
@idefix37 Hi! Yes, that was the question. I tried to apply this on my scales, but after many tries, I couldn't eliminate the transitions between colors. Could you help me please?
For example, this is the wind map code.
What could I modify to eliminate the transitions?
I'll be waiting! Thanks :)[[0,[30,93,189,255]], [1.3873532693178983,[35,134,214,255]], [2.7807486631016043,[51,204,255,255]], [4.171122994652406,[11,194,168,255]], [5.561497326203209,[0,255,153,255]], [6.951871657754011,[51,204,102,255]], [8.342245989304812,[102,204,51,255]], [9.732620320855615,[102,255,0,255]], [11.122994652406417,[164,242,47,255]], [12.51336898395722,[183,207,14,255]], [13.903743315508022,[214,240,23,255]], [15.294117647058824,[204,153,0,255]], [16.684491978609625,[255,153,0,255]], [18.020914471990135,[255,153,102,255]], [19.407138662143225,[204,153,153,255]], [20.793362852296312,[204,102,51,255]], [22.1795870424494,[204,51,51,255]], [23.627460225284352,[255,13,13,255]], [25.017310826771666,[198,0,0,255]], [27.7970120297463,[128,0,0,255]], [30.576713232720923,[128,0,80,255]], [33.356414435695555,[160,0,119,255]], [36.136115638670184,[204,0,204,255]], [38.91581684164482,[255,0,255,255]], [41.69551804461945,[255,64,255,255]], [44.47521924759407,[255,128,255,255]], [50.03462165354333,[255,160,255,255]], [55.5940240594926,[255,255,255,255]], [61.15342646544185,[227,227,227,255]], [66.59295692725912,[198,198,198,255]]]
-
@AlexVídeos
You did not understand my diagram in my first post here above ? -
@idefix37 No, sorry😅
-
Taking your code but simplified, you don’t need 16 digits after the decimal point
[1.38,[35,134,214,255]],
[2.78,[51,204,255,255]],
[4.17,[11,194,168,255]],You need to rewrite this code
[1.38,[35,134,214,255]],
[2.77,[35,134,214,255]],
[2.78,[51,204,255,255]],
[4.16,[51,204,255,255]],
[4.17,[11,194,168,255]],
And so on … -
@idefix37 Ohh thank you so much!!! I removed the transition! Later I'll sent you the map without transitions!😊😉
-
@idefix37 Hi! Here's the Wind map without transitions!😊
-
OK you got it !
Personally I prefer light colors for light winds.