diff --git a/cmweather/__init__.py b/cmweather/__init__.py index 2c30d5a..0f28b88 100644 --- a/cmweather/__init__.py +++ b/cmweather/__init__.py @@ -36,6 +36,7 @@ * NWSRef * NWSVel * NWS_SPW + * NWS_CC * PD17 * RRate11 * RdYlBu11b diff --git a/cmweather/_cm.py b/cmweather/_cm.py index 0c85b6f..3ade8b2 100644 --- a/cmweather/_cm.py +++ b/cmweather/_cm.py @@ -147,6 +147,202 @@ ], } + +_NWS_CC_data = { + 'blue': [ + (0.00000000, 0.54901961, 0.54901961), + (0.42857143, 0.54901961, 0.54901961), + (0.43809524, 0.56209150, 0.56209150), + (0.44761905, 0.57516340, 0.57516340), + (0.45714286, 0.58823529, 0.58823529), + (0.46666667, 0.60130719, 0.60130719), + (0.47619048, 0.61437908, 0.61437908), + (0.48571429, 0.62745098, 0.62745098), + (0.49523810, 0.64052288, 0.64052288), + (0.50476190, 0.65359477, 0.65359477), + (0.51428571, 0.66666667, 0.66666667), + (0.52380952, 0.67973856, 0.67973856), + (0.53333333, 0.69281046, 0.69281046), + (0.54285714, 0.70588235, 0.70588235), + (0.55238095, 0.71895425, 0.71895425), + (0.56190476, 0.73202614, 0.73202614), + (0.57142857, 0.74509804, 0.74509804), + (0.58095238, 0.76209150, 0.76209150), + (0.59047619, 0.77908497, 0.77908497), + (0.60000000, 0.79607843, 0.79607843), + (0.60952381, 0.81307190, 0.81307190), + (0.61904762, 0.83006536, 0.83006536), + (0.62857143, 0.84705882, 0.84705882), + (0.63809524, 0.86405229, 0.86405229), + (0.64761905, 0.88104575, 0.88104575), + (0.65714286, 0.89803922, 0.89803922), + (0.66666667, 0.91503268, 0.91503268), + (0.67619048, 0.93202614, 0.93202614), + (0.68571429, 0.94901961, 0.94901961), + (0.69523810, 0.96601307, 0.96601307), + (0.70476190, 0.98300654, 0.98300654), + (0.71428571, 1.00000000, 1.00000000), + (0.72380952, 0.87843137, 0.87843137), + (0.73333333, 0.75686275, 0.75686275), + (0.74285714, 0.63529412, 0.63529412), + (0.75238095, 0.51372549, 0.51372549), + (0.76190476, 0.39215686, 0.39215686), + (0.77142857, 0.32156863, 0.32156863), + (0.78095238, 0.25098039, 0.25098039), + (0.79047619, 0.18039216, 0.18039216), + (0.80000000, 0.10980392, 0.10980392), + (0.80952381, 0.03921569, 0.03921569), + (0.81904762, 0.03137255, 0.03137255), + (0.82857143, 0.02352941, 0.02352941), + (0.83809524, 0.01568627, 0.01568627), + (0.84761905, 0.00784314, 0.00784314), + (0.85714286, 0.00000000, 0.00000000), + (0.86666667, 0.00000000, 0.00000000), + (0.87619048, 0.00000000, 0.00000000), + (0.88571429, 0.00000000, 0.00000000), + (0.89523810, 0.00000000, 0.00000000), + (0.90476190, 0.00000000, 0.00000000), + (0.91428571, 0.00000000, 0.00000000), + (0.92380952, 0.00000000, 0.00000000), + (0.93333333, 0.15686275, 0.15686275), + (0.94285714, 0.31372549, 0.31372549), + (0.95238095, 0.84313725, 0.84313725), + (0.96190476, 0.79215686, 0.79215686), + (0.97142857, 0.74117647, 0.74117647), + (0.98095238, 0.69019608, 0.69019608), + (0.99047619, 0.63921569, 0.63921569), + (1.00000000, 0.58823529, 0.58823529), + ], + 'green': [ + (0.00000000, 0.05882353, 0.05882353), + (0.42857143, 0.05882353, 0.05882353), + (0.43809524, 0.05751634, 0.05751634), + (0.44761905, 0.05620915, 0.05620915), + (0.45714286, 0.05490196, 0.05490196), + (0.46666667, 0.05359477, 0.05359477), + (0.47619048, 0.05228758, 0.05228758), + (0.48571429, 0.05098039, 0.05098039), + (0.49523810, 0.04967320, 0.04967320), + (0.50476190, 0.04836601, 0.04836601), + (0.51428571, 0.04705882, 0.04705882), + (0.52380952, 0.04575163, 0.04575163), + (0.53333333, 0.04444444, 0.04444444), + (0.54285714, 0.04313725, 0.04313725), + (0.55238095, 0.04183007, 0.04183007), + (0.56190476, 0.04052288, 0.04052288), + (0.57142857, 0.03921569, 0.03921569), + (0.58095238, 0.06797386, 0.06797386), + (0.59047619, 0.09673203, 0.09673203), + (0.60000000, 0.12549020, 0.12549020), + (0.60952381, 0.15424837, 0.15424837), + (0.61904762, 0.18300654, 0.18300654), + (0.62857143, 0.21176471, 0.21176471), + (0.63809524, 0.24052288, 0.24052288), + (0.64761905, 0.26928105, 0.26928105), + (0.65714286, 0.29803922, 0.29803922), + (0.66666667, 0.32679739, 0.32679739), + (0.67619048, 0.35555556, 0.35555556), + (0.68571429, 0.38431373, 0.38431373), + (0.69523810, 0.41307190, 0.41307190), + (0.70476190, 0.44183007, 0.44183007), + (0.71428571, 0.47058824, 0.47058824), + (0.72380952, 0.56862745, 0.56862745), + (0.73333333, 0.66666667, 0.66666667), + (0.74285714, 0.76470588, 0.76470588), + (0.75238095, 0.86274510, 0.86274510), + (0.76190476, 0.96078431, 0.96078431), + (0.77142857, 0.93725490, 0.93725490), + (0.78095238, 0.91372549, 0.91372549), + (0.79047619, 0.89019608, 0.89019608), + (0.80000000, 0.86666667, 0.86666667), + (0.80952381, 0.84313725, 0.84313725), + (0.81904762, 0.87450980, 0.87450980), + (0.82857143, 0.90588235, 0.90588235), + (0.83809524, 0.93725490, 0.93725490), + (0.84761905, 0.96862745, 0.96862745), + (0.85714286, 1.00000000, 1.00000000), + (0.86666667, 0.90980392, 0.90980392), + (0.87619048, 0.81960784, 0.81960784), + (0.88571429, 0.72941176, 0.72941176), + (0.89523810, 0.63921569, 0.63921569), + (0.90476190, 0.54901961, 0.54901961), + (0.91428571, 0.27450980, 0.27450980), + (0.92380952, 0.00000000, 0.00000000), + (0.93333333, 0.05882353, 0.05882353), + (0.94285714, 0.11764706, 0.11764706), + (0.95238095, 0.70588235, 0.70588235), + (0.96190476, 0.60784314, 0.60784314), + (0.97142857, 0.50980392, 0.50980392), + (0.98095238, 0.41176471, 0.41176471), + (0.99047619, 0.31372549, 0.31372549), + (1.00000000, 0.21568627, 0.21568627), + ], + 'red': [ + (0.00000000, 0.05882353, 0.05882353), + (0.42857143, 0.05882353, 0.05882353), + (0.43809524, 0.05751634, 0.05751634), + (0.44761905, 0.05620915, 0.05620915), + (0.45714286, 0.05490196, 0.05490196), + (0.46666667, 0.05359477, 0.05359477), + (0.47619048, 0.05228758, 0.05228758), + (0.48571429, 0.05098039, 0.05098039), + (0.49523810, 0.04967320, 0.04967320), + (0.50476190, 0.04836601, 0.04836601), + (0.51428571, 0.04705882, 0.04705882), + (0.52380952, 0.04575163, 0.04575163), + (0.53333333, 0.04444444, 0.04444444), + (0.54285714, 0.04313725, 0.04313725), + (0.55238095, 0.04183007, 0.04183007), + (0.56190476, 0.04052288, 0.04052288), + (0.57142857, 0.03921569, 0.03921569), + (0.58095238, 0.06797386, 0.06797386), + (0.59047619, 0.09673203, 0.09673203), + (0.60000000, 0.12549020, 0.12549020), + (0.60952381, 0.15424837, 0.15424837), + (0.61904762, 0.18300654, 0.18300654), + (0.62857143, 0.21176471, 0.21176471), + (0.63809524, 0.24052288, 0.24052288), + (0.64761905, 0.26928105, 0.26928105), + (0.65714286, 0.29803922, 0.29803922), + (0.66666667, 0.32679739, 0.32679739), + (0.67619048, 0.35555556, 0.35555556), + (0.68571429, 0.38431373, 0.38431373), + (0.69523810, 0.41307190, 0.41307190), + (0.70476190, 0.44183007, 0.44183007), + (0.71428571, 0.47058824, 0.47058824), + (0.72380952, 0.45098039, 0.45098039), + (0.73333333, 0.43137255, 0.43137255), + (0.74285714, 0.41176471, 0.41176471), + (0.75238095, 0.39215686, 0.39215686), + (0.76190476, 0.37254902, 0.37254902), + (0.77142857, 0.40392157, 0.40392157), + (0.78095238, 0.43529412, 0.43529412), + (0.79047619, 0.46666667, 0.46666667), + (0.80000000, 0.49803922, 0.49803922), + (0.80952381, 0.52941176, 0.52941176), + (0.81904762, 0.62352941, 0.62352941), + (0.82857143, 0.71764706, 0.71764706), + (0.83809524, 0.81176471, 0.81176471), + (0.84761905, 0.90588235, 0.90588235), + (0.85714286, 1.00000000, 1.00000000), + (0.86666667, 1.00000000, 1.00000000), + (0.87619048, 1.00000000, 1.00000000), + (0.88571429, 1.00000000, 1.00000000), + (0.89523810, 1.00000000, 1.00000000), + (0.90476190, 1.00000000, 1.00000000), + (0.91428571, 0.94117647, 0.94117647), + (0.92380952, 0.88235294, 0.88235294), + (0.93333333, 0.71568627, 0.71568627), + (0.94285714, 0.54901961, 0.54901961), + (0.95238095, 1.00000000, 1.00000000), + (0.96190476, 0.92941176, 0.92941176), + (0.97142857, 0.85882353, 0.85882353), + (0.98095238, 0.78823529, 0.78823529), + (0.99047619, 0.71764706, 0.71764706), + (1.00000000, 0.64705882, 0.64705882), + ], +} + # Colors maps from Patrick Marsh (http://www.pmarshwx.com/) _RefDiff_data = { 'blue': [ @@ -1880,6 +2076,7 @@ 'NWSRef': _NWSRef_data, 'NWSVel': _NWSVel_data, 'NWS_SPW': _NWS_SPW_data, + 'NWS_CC': _NWS_CC_data, 'RefDiff': _RefDiff_data, 'Carbone11': _Carbone11_data, 'Carbone17': _Carbone17_data, diff --git a/cmweather/_cm_colorblind.py b/cmweather/_cm_colorblind.py index d9144dc..326beb4 100644 --- a/cmweather/_cm_colorblind.py +++ b/cmweather/_cm_colorblind.py @@ -49,6 +49,10 @@ def yuv_rainbow_24(nc): chase_spectral_rgb_vals = np.genfromtxt(os.path.join(data_dir, 'chase-spectral-rgb.txt')) spectral_ext_rgb_vals = np.genfromtxt(os.path.join(data_dir, 'spectral-extended-rgb.txt')) +# Plasmidis colormap for radar correlation coefficient + +plasmidis_rgb_vals = np.genfromtxt(os.path.join(data_dir, 'plasmidis-rgb.txt')) + # HomeyerRainbow developed by Cameron Homeyer with assistance from Bobby Jackson @@ -65,6 +69,7 @@ def yuv_rainbow_24(nc): 'balance': bal_rgb_vals, 'ChaseSpectral': chase_spectral_rgb_vals, 'SpectralExtended': spectral_ext_rgb_vals, + 'plasmidis': plasmidis_rgb_vals, 'CM_depol': cm_oleron_depol_vals, 'CM_rhohv': cm_roma_rhohv_vals, } diff --git a/cmweather/cm.py b/cmweather/cm.py index 66ad2c9..08e3ef5 100644 --- a/cmweather/cm.py +++ b/cmweather/cm.py @@ -31,6 +31,7 @@ * NWSRef * NWSVel * NWS_SPW + * NWS_CC * PD17 * RRate11 * RdYlBu11b diff --git a/cmweather/plasmidis-rgb.txt b/cmweather/plasmidis-rgb.txt new file mode 100644 index 0000000..3b66c8d --- /dev/null +++ b/cmweather/plasmidis-rgb.txt @@ -0,0 +1,100 @@ +2.670040000000000191e-01 4.873999999999999860e-03 3.294150000000000134e-01 +2.697078117647058737e-01 1.379817647058823385e-02 3.403986705882352526e-01 +2.738090000000000246e-01 3.149699999999999722e-02 3.588529999999999776e-01 +2.760219999999999896e-01 4.416699999999999793e-02 3.701639999999999930e-01 +2.787910000000000110e-01 6.214499999999999885e-02 3.865919999999999912e-01 +2.802669999999999884e-01 7.341699999999999615e-02 3.971629999999999883e-01 +2.819240000000000079e-01 8.966599999999999571e-02 4.124149999999999761e-01 +2.830036941176470311e-01 1.080640588235294158e-01 4.293100941176470342e-01 +2.832290000000000085e-01 1.207769999999999955e-01 4.405839999999999756e-01 +2.828840000000000243e-01 1.359200000000000130e-01 4.534270000000000245e-01 +2.822899999999999854e-01 1.459119999999999862e-01 4.615099999999999758e-01 +2.808680000000000065e-01 1.607709999999999972e-01 4.728990000000000138e-01 +2.788260000000000183e-01 1.754900000000000071e-01 4.833970000000000211e-01 +2.768685882352941441e-01 1.865962823529409842e-01 4.907741411764705020e-01 +2.730060000000000264e-01 2.045200000000000073e-01 5.017209999999999726e-01 +2.707545647058823279e-01 2.134522235294117332e-01 5.067131999999999747e-01 +2.665799999999999836e-01 2.282619999999999927e-01 5.143489999999999451e-01 +2.636629999999999807e-01 2.376310000000000089e-01 5.187619999999999454e-01 +2.589650000000000007e-01 2.515370000000000106e-01 5.247359999999999802e-01 +2.539350000000000218e-01 2.652539999999999898e-01 5.299829999999999819e-01 +2.504250000000000087e-01 2.742899999999999783e-01 5.331029999999999935e-01 +2.439440823529411273e-01 2.901173411764707000e-01 5.379544941176470640e-01 +2.393460000000000032e-01 3.008549999999999836e-01 5.408439999999999914e-01 +2.336030000000000051e-01 3.138279999999999959e-01 5.439140000000000086e-01 +2.278020000000000045e-01 3.265939999999999954e-01 5.465320000000000178e-01 +2.239250000000000129e-01 3.349940000000000140e-01 5.480530000000000124e-01 +2.181299999999999906e-01 3.474320000000000186e-01 5.500380000000000269e-01 +2.136935176470587949e-01 3.569099176470588719e-01 5.513510823529411686e-01 +2.067559999999999953e-01 3.717579999999999774e-01 5.531169999999999698e-01 +2.032361764705883644e-01 3.793423529411761863e-01 5.538881058823529324e-01 +1.976360000000000061e-01 3.915279999999999871e-01 5.549690000000000456e-01 +1.923570000000000002e-01 4.031989999999999741e-01 5.558359999999999967e-01 +1.889230000000000076e-01 4.109099999999999975e-01 5.563259999999999872e-01 +1.838980000000000059e-01 4.223830000000000084e-01 5.569439999999999946e-01 +1.806290000000000118e-01 4.299749999999999961e-01 5.572820000000000551e-01 +1.749192352941177087e-01 4.434982352941175265e-01 5.577479411764705297e-01 +1.696459999999999912e-01 4.562620000000000009e-01 5.580300000000000260e-01 +1.666169999999999873e-01 4.637080000000000091e-01 5.581190000000000317e-01 +1.621420000000000083e-01 4.748379999999999823e-01 5.581399999999999695e-01 +1.591940000000000022e-01 4.822370000000000267e-01 5.580730000000000413e-01 +1.548150000000000082e-01 4.933130000000000015e-01 5.578400000000000025e-01 +1.500871647058824865e-01 5.053653058823526223e-01 5.573812941176470304e-01 +1.461800000000000044e-01 5.154130000000000100e-01 5.568229999999999569e-01 +1.419350000000000056e-01 5.264529999999999488e-01 5.559910000000000130e-01 +1.391469999999999929e-01 5.338119999999999532e-01 5.552979999999999583e-01 +1.350659999999999916e-01 5.448530000000000317e-01 5.540289999999999937e-01 +1.324440000000000062e-01 5.522160000000000402e-01 5.530180000000000096e-01 +1.286880235294117769e-01 5.633950235294117315e-01 5.512052470588234554e-01 +1.246065529411764655e-01 5.772218588235294989e-01 5.484561999999999493e-01 +1.229286352941176691e-01 5.839840823529410807e-01 5.468913058823529072e-01 +1.205650000000000055e-01 5.964220000000000077e-01 5.436109999999999554e-01 +1.197379999999999972e-01 6.037850000000000161e-01 5.413999999999999924e-01 +1.194830000000000059e-01 6.148169999999999469e-01 5.376919999999999478e-01 +1.206379999999999952e-01 6.258280000000000509e-01 5.334879999999999622e-01 +1.229379294117647070e-01 6.351745529411764180e-01 5.294939411764706394e-01 +1.268646588235294026e-01 6.452210235294116858e-01 5.247542941176470688e-01 +1.322679999999999967e-01 6.550139999999999851e-01 5.196610000000000396e-01 +1.402100000000000013e-01 6.658589999999999787e-01 5.134269999999999667e-01 +1.466159999999999963e-01 6.730500000000000371e-01 5.089360000000000550e-01 +1.578509999999999913e-01 6.837649999999999562e-01 5.016859999999999653e-01 +1.720677647058824478e-01 6.952112941176471494e-01 4.931512352941175847e-01 +1.810151176470587431e-01 7.016482823529410773e-01 4.879831647058823774e-01 +2.012222941176471380e-01 7.146640588235294578e-01 4.766375882352940629e-01 +2.139999999999999958e-01 7.221140000000000336e-01 4.695880000000000054e-01 +2.328149999999999942e-01 7.322469999999999812e-01 4.592769999999999908e-01 +2.528989999999999849e-01 7.422109999999999541e-01 4.482840000000000158e-01 +2.669409999999999838e-01 7.487510000000000554e-01 4.405729999999999924e-01 +2.889209999999999834e-01 7.583940000000000126e-01 4.284259999999999735e-01 +3.087227058823533987e-01 7.665381176470590363e-01 4.173800588235291875e-01 +3.358849999999999891e-01 7.770179999999999865e-01 4.020489999999999897e-01 +3.607409999999999783e-01 7.859639999999999960e-01 3.878139999999999921e-01 +3.777789999999999759e-01 7.917809999999999571e-01 3.779390000000000249e-01 +4.040009999999999990e-01 8.002749999999999586e-01 3.625519999999999854e-01 +4.219080000000000052e-01 8.057739999999999903e-01 3.519100000000000006e-01 +4.518860941176468526e-01 8.144701764705881697e-01 3.338532823529413163e-01 +4.690536941176462471e-01 8.191881411764704302e-01 3.233835647058828644e-01 +5.049077999999993516e-01 8.284457647058821594e-01 3.012111764705887040e-01 +5.356210000000000138e-01 8.357850000000000001e-01 2.819079999999999919e-01 +5.554839999999999778e-01 8.402539999999999454e-01 2.692809999999999926e-01 +5.856780000000000319e-01 8.466609999999999969e-01 2.498970000000000080e-01 +6.060449999999999449e-01 8.507329999999999615e-01 2.367120000000000057e-01 +6.369019999999999682e-01 8.565420000000000256e-01 2.166200000000000070e-01 +6.737011764705866934e-01 8.629422705882350275e-01 1.926184117647068983e-01 +6.994150000000000089e-01 8.671170000000000266e-01 1.759709999999999885e-01 +7.308890000000000109e-01 8.719160000000000244e-01 1.560290000000000010e-01 +7.518839999999999968e-01 8.749510000000000343e-01 1.432279999999999942e-01 +7.833149999999999835e-01 8.792849999999999833e-01 1.254049999999999887e-01 +8.041819999999999524e-01 8.820459999999999967e-01 1.149649999999999977e-01 +8.384178352941175083e-01 8.864245058823528867e-01 1.017454823529412022e-01 +8.761679999999999469e-01 8.911249999999999449e-01 9.525000000000000133e-02 +8.952559882352939535e-01 8.934844941176469657e-01 9.623324705882352337e-02 +9.261059999999999848e-01 8.973299999999999610e-01 1.040709999999999968e-01 +9.456360000000000321e-01 8.998150000000000315e-01 1.128379999999999939e-01 +9.744169999999999776e-01 9.035900000000000043e-01 1.302149999999999974e-01 +9.825778470588238944e-01 8.421202823529396753e-01 1.423153294117646683e-01 +9.903948823529411527e-01 6.678887058823526068e-01 2.026197647058825269e-01 +9.119153999999993765e-01 4.426045176470578268e-01 3.472773411764712992e-01 +8.243051764705882078e-01 3.128409411764704884e-01 4.435924705882353658e-01 +6.474965176470582895e-01 1.224085294117642081e-01 5.977038235294120927e-01 +4.890550000000000175e-01 1.012700000000000058e-02 6.585339999999999527e-01