@@ -31,6 +31,7 @@ export const colorScales = {
31
31
cape : {
32
32
min : 0 ,
33
33
max : 4000 ,
34
+ scalefactor : 1 ,
34
35
colors : [
35
36
...interpolateColorScaleHSL (
36
37
[ '#009392' , '#39b185' , '#9ccb86' , '#e9e29c' , '#eeb479' , '#e88471' , '#cf597e' ] ,
@@ -41,6 +42,7 @@ export const colorScales = {
41
42
cloud : {
42
43
min : 0 ,
43
44
max : 100 ,
45
+ scalefactor : 1 ,
44
46
colors : [
45
47
...interpolateColorScaleHSL ( [ '#FFF' , '#c3c2c2' ] , 100 ) // 0 to 100%
46
48
]
@@ -55,8 +57,9 @@ export const colorScales = {
55
57
]
56
58
} ,
57
59
pressure : {
58
- min : 0 ,
59
- max : 50 ,
60
+ min : 950 ,
61
+ max : 1050 ,
62
+ scalefactor : 2 ,
60
63
colors : [
61
64
...interpolateColorScaleHSL ( [ '#4444FF' , '#FFFFFF' ] , 25 ) , // 950 to 1000hPa
62
65
...interpolateColorScaleHSL ( [ '#FFFFFF' , '#FF4444' ] , 25 ) // 1000hPa to 1050hPa
@@ -65,6 +68,7 @@ export const colorScales = {
65
68
relative : {
66
69
min : 0 ,
67
70
max : 100 ,
71
+ scalefactor : 1 ,
68
72
colors : [
69
73
...interpolateColorScaleHSL (
70
74
[ '#009392' , '#39b185' , '#9ccb86' , '#e9e29c' , '#eeb479' , '#e88471' , '#cf597e' ] . reverse ( ) ,
@@ -75,6 +79,7 @@ export const colorScales = {
75
79
shortwave : {
76
80
min : 0 ,
77
81
max : 1000 ,
82
+ scalefactor : 1 ,
78
83
colors : [
79
84
...interpolateColorScaleHSL (
80
85
[ '#009392' , '#39b185' , '#9ccb86' , '#e9e29c' , '#eeb479' , '#e88471' , '#cf597e' ] ,
@@ -85,6 +90,7 @@ export const colorScales = {
85
90
temperature : {
86
91
min : - 40 ,
87
92
max : 60 ,
93
+ scalefactor : 1 ,
88
94
colors : [
89
95
...interpolateColorScaleHSL ( [ 'purple' , 'blue' ] , 40 ) , // -40° to 0°
90
96
...interpolateColorScaleHSL ( [ 'blue' , 'green' ] , 16 ) , // 0° to 16°
@@ -96,6 +102,7 @@ export const colorScales = {
96
102
thunderstorm : {
97
103
min : 0 ,
98
104
max : 100 ,
105
+ scalefactor : 1 ,
99
106
colors : [
100
107
...interpolateColorScaleHSL ( [ 'blue' , 'green' ] , 33 ) , //
101
108
...interpolateColorScaleHSL ( [ 'green' , 'orange' ] , 33 ) , //
@@ -105,6 +112,7 @@ export const colorScales = {
105
112
uv : {
106
113
min : 0 ,
107
114
max : 12 ,
115
+ scalefactor : 1 ,
108
116
colors : [
109
117
...interpolateColorScaleHSL (
110
118
[ '#009392' , '#39b185' , '#9ccb86' , '#e9e29c' , '#eeb479' , '#e88471' , '#cf597e' ] ,
@@ -115,6 +123,7 @@ export const colorScales = {
115
123
wind : {
116
124
min : 0 ,
117
125
max : 40 ,
126
+ scalefactor : 1 ,
118
127
colors : [
119
128
...interpolateColorScaleHSL ( [ 'blue' , 'green' ] , 10 ) , // 0 to 10kn
120
129
...interpolateColorScaleHSL ( [ 'green' , 'orange' ] , 10 ) , // 10 to 20kn
0 commit comments