colour.temperature.cct Module

Correlated Colour Temperature \(T_{cp}\)

Defines correlated colour temperature \(T_{cp}\) computations objects:

  • uv_to_CCT_Ohno2013(): Correlated colour temperature \(T_{cp}\) and \(\Delta_{uv}\) computation of given CIE UCS colourspace uv chromaticity coordinates using Ohno (2013) method.
  • CCT_to_uv_Ohno2013(): CIE UCS colourspace uv chromaticity coordinates computation of given correlated colour temperature \(T_{cp}\), \(\Delta_{uv}\) using Ohno (2013) method.
  • uv_to_CCT_Robertson1968(): Correlated colour temperature \(T_{cp}\) and \(\Delta_{uv}\) computation of given CIE UCS colourspace uv chromaticity coordinates using Robertson (1968) method.
  • CCT_to_uv_Robertson1968(): CIE UCS colourspace uv chromaticity coordinates computation of given correlated colour temperature \(T_{cp}\) and \(\Delta_{uv}\) using Robertson (1968) method.
  • CCT_to_uv_Krystek1985(): CIE UCS colourspace uv chromaticity coordinates computation of given correlated colour temperature \(T_{cp}\) using Krystek (1985) method.
  • xy_to_CCT_McCamy1992(): Correlated colour temperature \(T_{cp}\) computation of given CIE XYZ tristimulus values xy chromaticity coordinates using McCamy (1992) method.
  • xy_to_CCT_Hernandez1999(): Correlated colour temperature \(T_{cp}\) computation of given CIE XYZ tristimulus values xy chromaticity coordinates using Hernandez-Andres, Lee and Romero (1999) method.
  • CCT_to_xy_Kang2002(): CIE XYZ tristimulus values xy chromaticity coordinates computation of given correlated colour temperature \(T_{cp}\) using Kang, Moon, Hong, Lee, Cho and Kim (2002) method.
  • CCT_to_xy_CIE_D(): CIE XYZ tristimulus values xy chromaticity coordinates computation of CIE Illuminant D Series from given correlated colour temperature \(T_{cp}\) of that CIE Illuminant D Series.

References

[1]Wikipedia. (n.d.). Color temperature. Retrieved June 28, 2014, from http://en.wikipedia.org/wiki/Color_temperature
colour.temperature.cct.PLANCKIAN_TABLE_TUVD

alias of PlanckianTable_Tuvdi

colour.temperature.cct.ROBERTSON_ISOTEMPERATURE_LINES_DATA = ((0, 0.18006, 0.26352, -0.24341), (10, 0.18066, 0.26589, -0.25479), (20, 0.18133, 0.26846, -0.26876), (30, 0.18208, 0.27119, -0.28539), (40, 0.18293, 0.27407, -0.3047), (50, 0.18388, 0.27709, -0.32675), (60, 0.18494, 0.28021, -0.35156), (70, 0.18611, 0.28342, -0.37915), (80, 0.1874, 0.28668, -0.40955), (90, 0.1888, 0.28997, -0.44278), (100, 0.19032, 0.29326, -0.47888), (125, 0.19462, 0.30141, -0.58204), (150, 0.19962, 0.30921, -0.70471), (175, 0.20525, 0.31647, -0.84901), (200, 0.21142, 0.32312, -1.0182), (225, 0.21807, 0.32909, -1.2168), (250, 0.22511, 0.33439, -1.4512), (275, 0.23247, 0.33904, -1.7298), (300, 0.2401, 0.34308, -2.0637), (325, 0.24792, 0.34655, -2.4681), (350, 0.25591, 0.34951, -2.9641), (375, 0.264, 0.352, -3.5814), (400, 0.27218, 0.35407, -4.3633), (425, 0.28039, 0.35577, -5.3762), (450, 0.28863, 0.35714, -6.7262), (475, 0.29685, 0.35823, -8.5955), (500, 0.30505, 0.35907, -11.324), (525, 0.3132, 0.35968, -15.628), (550, 0.32129, 0.36011, -23.325), (575, 0.32931, 0.36038, -40.77), (600, 0.33724, 0.36051, -116.45))

Robertson (1968) iso-temperature lines.

ROBERTSON_ISOTEMPERATURE_LINES_DATA : tuple
(Reciprocal Megakelvin, CIE 1960 Chromaticity Coordinate u, CIE 1960 Chromaticity Coordinate v, Slope)

Notes

  • A correction has been done by Lindbloom for 325 Megakelvin temperature: 0.24702 —> 0.24792

References

[2]Wyszecki, G., & Stiles, W. S. (2000). Table 1(3.11) Isotemperature Lines. In Color Science: Concepts and Methods, Quantitative Data and Formulae (p. 228). Wiley. ISBN:978-0471399186
colour.temperature.cct.ROBERTSON_ISOTEMPERATURE_LINES_RUVT

alias of WyszeckiRobertson_ruvt

colour.temperature.cct.planckian_table(uv, cmfs, start, end, count)[source]

Returns a planckian table from given CIE UCS colourspace uv chromaticity coordinates, colour matching functions and temperature range using Ohno (2013) method.

Parameters:
  • uv (array_like) – uv chromaticity coordinates.
  • cmfs (XYZ_ColourMatchingFunctions) – Standard observer colour matching functions.
  • start (numeric) – Temperature range start in kelvins.
  • end (numeric) – Temperature range end in kelvins.
  • count (int) – Temperatures count in the planckian table.
Returns:

Planckian table.

Return type:

list

Examples

>>> from colour import STANDARD_OBSERVERS_CMFS
>>> from pprint import pprint
>>> cmfs = STANDARD_OBSERVERS_CMFS['CIE 1931 2 Degree Standard Observer']
>>> uv = np.array([0.1978, 0.3122])
>>> pprint(planckian_table(  
...     uv, cmfs, 1000, 1010, 10))
[PlanckianTable_Tuvdi(Ti=1000.0, ui=0.4479628..., vi=0.3546296..., di=0.2537355...),
 PlanckianTable_Tuvdi(Ti=1001.1111111..., ui=0.4477030..., vi=0.3546521..., di=0.2534831...),
 PlanckianTable_Tuvdi(Ti=1002.2222222..., ui=0.4474434..., vi=0.3546746..., di=0.2532310...),
 PlanckianTable_Tuvdi(Ti=1003.3333333..., ui=0.4471842..., vi=0.3546970..., di=0.2529792...),
 PlanckianTable_Tuvdi(Ti=1004.4444444..., ui=0.4469252..., vi=0.3547194..., di=0.2527277...),
 PlanckianTable_Tuvdi(Ti=1005.5555555..., ui=0.4466666..., vi=0.3547417..., di=0.2524765...),
 PlanckianTable_Tuvdi(Ti=1006.6666666..., ui=0.4464083..., vi=0.3547640..., di=0.2522256...),
 PlanckianTable_Tuvdi(Ti=1007.7777777..., ui=0.4461502..., vi=0.3547862..., di=0.2519751...),
 PlanckianTable_Tuvdi(Ti=1008.8888888..., ui=0.4458925..., vi=0.3548084..., di=0.2517248...),
 PlanckianTable_Tuvdi(Ti=1010.0, ui=0.4456351..., vi=0.3548306..., di=0.2514749...)]
colour.temperature.cct.planckian_table_minimal_distance_index(planckian_table_)[source]

Returns the shortest distance index in given planckian table using Ohno (2013) method.

Parameters:planckian_table (list) – Planckian table.
Returns:Shortest distance index.
Return type:int

Examples

>>> from colour import STANDARD_OBSERVERS_CMFS
>>> cmfs = STANDARD_OBSERVERS_CMFS['CIE 1931 2 Degree Standard Observer']
>>> uv = np.array([0.1978, 0.3122])
>>> table = planckian_table(uv, cmfs, 1000, 1010, 10)
>>> planckian_table_minimal_distance_index(table)
9
colour.temperature.cct.uv_to_CCT_Ohno2013(uv, cmfs=XYZ_ColourMatchingFunctions( 'CIE 1931 2 Degree Standard Observer', {u'x_bar': {360.0: 0.0001299, 361.0: 0.000145847, 362.0: 0.0001638021, 363.0: 0.0001840037, 364.0: 0.0002066902, 365.0: 0.0002321, 366.0: 0.000260728, 367.0: 0.000293075, 368.0: 0.000329388, 369.0: 0.000369914, 370.0: 0.0004149, 371.0: 0.0004641587, 372.0: 0.000518986, 373.0: 0.000581854, 374.0: 0.0006552347, 375.0: 0.0007416, 376.0: 0.0008450296, 377.0: 0.0009645268, 378.0: 0.001094949, 379.0: 0.001231154, 380.0: 0.001368, 381.0: 0.00150205, 382.0: 0.001642328, 383.0: 0.001802382, 384.0: 0.001995757, 385.0: 0.002236, 386.0: 0.002535385, 387.0: 0.002892603, 388.0: 0.003300829, 389.0: 0.003753236, 390.0: 0.004243, 391.0: 0.004762389, 392.0: 0.005330048, 393.0: 0.005978712, 394.0: 0.006741117, 395.0: 0.00765, 396.0: 0.008751373, 397.0: 0.01002888, 398.0: 0.0114217, 399.0: 0.01286901, 400.0: 0.01431, 401.0: 0.01570443, 402.0: 0.01714744, 403.0: 0.01878122, 404.0: 0.02074801, 405.0: 0.02319, 406.0: 0.02620736, 407.0: 0.02978248, 408.0: 0.03388092, 409.0: 0.03846824, 410.0: 0.04351, 411.0: 0.0489956, 412.0: 0.0550226, 413.0: 0.0617188, 414.0: 0.069212, 415.0: 0.07763, 416.0: 0.08695811, 417.0: 0.09717672, 418.0: 0.1084063, 419.0: 0.1207672, 420.0: 0.13438, 421.0: 0.1493582, 422.0: 0.1653957, 423.0: 0.1819831, 424.0: 0.198611, 425.0: 0.21477, 426.0: 0.2301868, 427.0: 0.2448797, 428.0: 0.2587773, 429.0: 0.2718079, 430.0: 0.2839, 431.0: 0.2949438, 432.0: 0.3048965, 433.0: 0.3137873, 434.0: 0.3216454, 435.0: 0.3285, 436.0: 0.3343513, 437.0: 0.3392101, 438.0: 0.3431213, 439.0: 0.3461296, 440.0: 0.34828, 441.0: 0.3495999, 442.0: 0.3501474, 443.0: 0.350013, 444.0: 0.349287, 445.0: 0.34806, 446.0: 0.3463733, 447.0: 0.3442624, 448.0: 0.3418088, 449.0: 0.3390941, 450.0: 0.3362, 451.0: 0.3331977, 452.0: 0.3300411, 453.0: 0.3266357, 454.0: 0.3228868, 455.0: 0.3187, 456.0: 0.3140251, 457.0: 0.308884, 458.0: 0.3032904, 459.0: 0.2972579, 460.0: 0.2908, 461.0: 0.2839701, 462.0: 0.2767214, 463.0: 0.2689178, 464.0: 0.2604227, 465.0: 0.2511, 466.0: 0.2408475, 467.0: 0.2298512, 468.0: 0.2184072, 469.0: 0.2068115, 470.0: 0.19536, 471.0: 0.1842136, 472.0: 0.1733273, 473.0: 0.1626881, 474.0: 0.1522833, 475.0: 0.1421, 476.0: 0.1321786, 477.0: 0.1225696, 478.0: 0.1132752, 479.0: 0.1042979, 480.0: 0.09564, 481.0: 0.08729955, 482.0: 0.07930804, 483.0: 0.07171776, 484.0: 0.06458099, 485.0: 0.05795001, 486.0: 0.05186211, 487.0: 0.04628152, 488.0: 0.04115088, 489.0: 0.03641283, 490.0: 0.03201, 491.0: 0.0279172, 492.0: 0.0241444, 493.0: 0.020687, 494.0: 0.0175404, 495.0: 0.0147, 496.0: 0.01216179, 497.0: 0.00991996, 498.0: 0.00796724, 499.0: 0.006296346, 500.0: 0.0049, 501.0: 0.003777173, 502.0: 0.00294532, 503.0: 0.00242488, 504.0: 0.002236293, 505.0: 0.0024, 506.0: 0.00292552, 507.0: 0.00383656, 508.0: 0.00517484, 509.0: 0.00698208, 510.0: 0.0093, 511.0: 0.01214949, 512.0: 0.01553588, 513.0: 0.01947752, 514.0: 0.02399277, 515.0: 0.0291, 516.0: 0.03481485, 517.0: 0.04112016, 518.0: 0.04798504, 519.0: 0.05537861, 520.0: 0.06327, 521.0: 0.07163501, 522.0: 0.08046224, 523.0: 0.08973996, 524.0: 0.09945645, 525.0: 0.1096, 526.0: 0.1201674, 527.0: 0.1311145, 528.0: 0.1423679, 529.0: 0.1538542, 530.0: 0.1655, 531.0: 0.1772571, 532.0: 0.18914, 533.0: 0.2011694, 534.0: 0.2133658, 535.0: 0.2257499, 536.0: 0.2383209, 537.0: 0.2510668, 538.0: 0.2639922, 539.0: 0.2771017, 540.0: 0.2904, 541.0: 0.3038912, 542.0: 0.3175726, 543.0: 0.3314384, 544.0: 0.3454828, 545.0: 0.3597, 546.0: 0.3740839, 547.0: 0.3886396, 548.0: 0.4033784, 549.0: 0.4183115, 550.0: 0.4334499, 551.0: 0.4487953, 552.0: 0.464336, 553.0: 0.480064, 554.0: 0.4959713, 555.0: 0.5120501, 556.0: 0.5282959, 557.0: 0.5446916, 558.0: 0.5612094, 559.0: 0.5778215, 560.0: 0.5945, 561.0: 0.6112209, 562.0: 0.6279758, 563.0: 0.6447602, 564.0: 0.6615697, 565.0: 0.6784, 566.0: 0.6952392, 567.0: 0.7120586, 568.0: 0.7288284, 569.0: 0.7455188, 570.0: 0.7621, 571.0: 0.7785432, 572.0: 0.7948256, 573.0: 0.8109264, 574.0: 0.8268248, 575.0: 0.8425, 576.0: 0.8579325, 577.0: 0.8730816, 578.0: 0.8878944, 579.0: 0.9023181, 580.0: 0.9163, 581.0: 0.9297995, 582.0: 0.9427984, 583.0: 0.9552776, 584.0: 0.9672179, 585.0: 0.9786, 586.0: 0.9893856, 587.0: 0.9995488, 588.0: 1.0090892, 589.0: 1.0180064, 590.0: 1.0263, 591.0: 1.0339827, 592.0: 1.040986, 593.0: 1.047188, 594.0: 1.0524667, 595.0: 1.0567, 596.0: 1.0597944, 597.0: 1.0617992, 598.0: 1.0628068, 599.0: 1.0629096, 600.0: 1.0622, 601.0: 1.0607352, 602.0: 1.0584436, 603.0: 1.0552244, 604.0: 1.0509768, 605.0: 1.0456, 606.0: 1.0390369, 607.0: 1.0313608, 608.0: 1.0226662, 609.0: 1.0130477, 610.0: 1.0026, 611.0: 0.9913675, 612.0: 0.9793314, 613.0: 0.9664916, 614.0: 0.9528479, 615.0: 0.9384, 616.0: 0.923194, 617.0: 0.907244, 618.0: 0.890502, 619.0: 0.87292, 620.0: 0.8544499, 621.0: 0.835084, 622.0: 0.814946, 623.0: 0.794186, 624.0: 0.772954, 625.0: 0.7514, 626.0: 0.7295836, 627.0: 0.7075888, 628.0: 0.6856022, 629.0: 0.6638104, 630.0: 0.6424, 631.0: 0.6215149, 632.0: 0.6011138, 633.0: 0.5811052, 634.0: 0.5613977, 635.0: 0.5419, 636.0: 0.5225995, 637.0: 0.5035464, 638.0: 0.4847436, 639.0: 0.4661939, 640.0: 0.4479, 641.0: 0.4298613, 642.0: 0.412098, 643.0: 0.394644, 644.0: 0.3775333, 645.0: 0.3608, 646.0: 0.3444563, 647.0: 0.3285168, 648.0: 0.3130192, 649.0: 0.2980011, 650.0: 0.2835, 651.0: 0.2695448, 652.0: 0.2561184, 653.0: 0.2431896, 654.0: 0.2307272, 655.0: 0.2187, 656.0: 0.2070971, 657.0: 0.1959232, 658.0: 0.1851708, 659.0: 0.1748323, 660.0: 0.1649, 661.0: 0.1553667, 662.0: 0.14623, 663.0: 0.13749, 664.0: 0.1291467, 665.0: 0.1212, 666.0: 0.1136397, 667.0: 0.106465, 668.0: 0.09969044, 669.0: 0.09333061, 670.0: 0.0874, 671.0: 0.08190096, 672.0: 0.07680428, 673.0: 0.07207712, 674.0: 0.06768664, 675.0: 0.0636, 676.0: 0.05980685, 677.0: 0.05628216, 678.0: 0.05297104, 679.0: 0.04981861, 680.0: 0.04677, 681.0: 0.04378405, 682.0: 0.04087536, 683.0: 0.03807264, 684.0: 0.03540461, 685.0: 0.0329, 686.0: 0.03056419, 687.0: 0.02838056, 688.0: 0.02634484, 689.0: 0.02445275, 690.0: 0.0227, 691.0: 0.02108429, 692.0: 0.01959988, 693.0: 0.01823732, 694.0: 0.01698717, 695.0: 0.01584, 696.0: 0.01479064, 697.0: 0.01383132, 698.0: 0.01294868, 699.0: 0.0121292, 700.0: 0.01135916, 701.0: 0.01062935, 702.0: 0.009938846, 703.0: 0.009288422, 704.0: 0.008678854, 705.0: 0.008110916, 706.0: 0.007582388, 707.0: 0.007088746, 708.0: 0.006627313, 709.0: 0.006195408, 710.0: 0.005790346, 711.0: 0.005409826, 712.0: 0.005052583, 713.0: 0.004717512, 714.0: 0.004403507, 715.0: 0.004109457, 716.0: 0.003833913, 717.0: 0.003575748, 718.0: 0.003334342, 719.0: 0.003109075, 720.0: 0.002899327, 721.0: 0.002704348, 722.0: 0.00252302, 723.0: 0.002354168, 724.0: 0.002196616, 725.0: 0.00204919, 726.0: 0.00191096, 727.0: 0.001781438, 728.0: 0.00166011, 729.0: 0.001546459, 730.0: 0.001439971, 731.0: 0.001340042, 732.0: 0.001246275, 733.0: 0.001158471, 734.0: 0.00107643, 735.0: 0.0009999493, 736.0: 0.0009287358, 737.0: 0.0008624332, 738.0: 0.0008007503, 739.0: 0.000743396, 740.0: 0.0006900786, 741.0: 0.0006405156, 742.0: 0.0005945021, 743.0: 0.0005518646, 744.0: 0.000512429, 745.0: 0.0004760213, 746.0: 0.0004424536, 747.0: 0.0004115117, 748.0: 0.0003829814, 749.0: 0.0003566491, 750.0: 0.0003323011, 751.0: 0.0003097586, 752.0: 0.0002888871, 753.0: 0.0002695394, 754.0: 0.0002515682, 755.0: 0.0002348261, 756.0: 0.000219171, 757.0: 0.0002045258, 758.0: 0.0001908405, 759.0: 0.0001780654, 760.0: 0.0001661505, 761.0: 0.0001550236, 762.0: 0.0001446219, 763.0: 0.0001349098, 764.0: 0.000125852, 765.0: 0.000117413, 766.0: 0.0001095515, 767.0: 0.0001022245, 768.0: 9.539445e-05, 769.0: 8.90239e-05, 770.0: 8.307527e-05, 771.0: 7.751269e-05, 772.0: 7.231304e-05, 773.0: 6.745778e-05, 774.0: 6.292844e-05, 775.0: 5.870652e-05, 776.0: 5.477028e-05, 777.0: 5.109918e-05, 778.0: 4.767654e-05, 779.0: 4.448567e-05, 780.0: 4.150994e-05, 781.0: 3.873324e-05, 782.0: 3.614203e-05, 783.0: 3.372352e-05, 784.0: 3.146487e-05, 785.0: 2.935326e-05, 786.0: 2.737573e-05, 787.0: 2.552433e-05, 788.0: 2.379376e-05, 789.0: 2.21787e-05, 790.0: 2.067383e-05, 791.0: 1.927226e-05, 792.0: 1.79664e-05, 793.0: 1.674991e-05, 794.0: 1.561648e-05, 795.0: 1.455977e-05, 796.0: 1.357387e-05, 797.0: 1.265436e-05, 798.0: 1.179723e-05, 799.0: 1.099844e-05, 800.0: 1.025398e-05, 801.0: 9.559646e-06, 802.0: 8.912044e-06, 803.0: 8.308358e-06, 804.0: 7.745769e-06, 805.0: 7.221456e-06, 806.0: 6.732475e-06, 807.0: 6.276423e-06, 808.0: 5.851304e-06, 809.0: 5.455118e-06, 810.0: 5.085868e-06, 811.0: 4.741466e-06, 812.0: 4.420236e-06, 813.0: 4.120783e-06, 814.0: 3.841716e-06, 815.0: 3.581652e-06, 816.0: 3.339127e-06, 817.0: 3.112949e-06, 818.0: 2.902121e-06, 819.0: 2.705645e-06, 820.0: 2.522525e-06, 821.0: 2.351726e-06, 822.0: 2.192415e-06, 823.0: 2.043902e-06, 824.0: 1.905497e-06, 825.0: 1.776509e-06, 826.0: 1.656215e-06, 827.0: 1.544022e-06, 828.0: 1.43944e-06, 829.0: 1.341977e-06, 830.0: 1.251141e-06}, u'y_bar': {360.0: 3.917e-06, 361.0: 4.393581e-06, 362.0: 4.929604e-06, 363.0: 5.532136e-06, 364.0: 6.208245e-06, 365.0: 6.965e-06, 366.0: 7.813219e-06, 367.0: 8.767336e-06, 368.0: 9.839844e-06, 369.0: 1.104323e-05, 370.0: 1.239e-05, 371.0: 1.388641e-05, 372.0: 1.555728e-05, 373.0: 1.744296e-05, 374.0: 1.958375e-05, 375.0: 2.202e-05, 376.0: 2.483965e-05, 377.0: 2.804126e-05, 378.0: 3.153104e-05, 379.0: 3.521521e-05, 380.0: 3.9e-05, 381.0: 4.28264e-05, 382.0: 4.69146e-05, 383.0: 5.15896e-05, 384.0: 5.71764e-05, 385.0: 6.4e-05, 386.0: 7.234421e-05, 387.0: 8.221224e-05, 388.0: 9.350816e-05, 389.0: 0.0001061361, 390.0: 0.00012, 391.0: 0.000134984, 392.0: 0.000151492, 393.0: 0.000170208, 394.0: 0.000191816, 395.0: 0.000217, 396.0: 0.0002469067, 397.0: 0.00028124, 398.0: 0.00031852, 399.0: 0.0003572667, 400.0: 0.000396, 401.0: 0.0004337147, 402.0: 0.000473024, 403.0: 0.000517876, 404.0: 0.0005722187, 405.0: 0.00064, 406.0: 0.00072456, 407.0: 0.0008255, 408.0: 0.00094116, 409.0: 0.00106988, 410.0: 0.00121, 411.0: 0.001362091, 412.0: 0.001530752, 413.0: 0.001720368, 414.0: 0.001935323, 415.0: 0.00218, 416.0: 0.0024548, 417.0: 0.002764, 418.0: 0.0031178, 419.0: 0.0035264, 420.0: 0.004, 421.0: 0.00454624, 422.0: 0.00515932, 423.0: 0.00582928, 424.0: 0.00654616, 425.0: 0.0073, 426.0: 0.008086507, 427.0: 0.00890872, 428.0: 0.00976768, 429.0: 0.01066443, 430.0: 0.0116, 431.0: 0.01257317, 432.0: 0.01358272, 433.0: 0.01462968, 434.0: 0.01571509, 435.0: 0.01684, 436.0: 0.01800736, 437.0: 0.01921448, 438.0: 0.02045392, 439.0: 0.02171824, 440.0: 0.023, 441.0: 0.02429461, 442.0: 0.02561024, 443.0: 0.02695857, 444.0: 0.02835125, 445.0: 0.0298, 446.0: 0.03131083, 447.0: 0.03288368, 448.0: 0.03452112, 449.0: 0.03622571, 450.0: 0.038, 451.0: 0.03984667, 452.0: 0.041768, 453.0: 0.043766, 454.0: 0.04584267, 455.0: 0.048, 456.0: 0.05024368, 457.0: 0.05257304, 458.0: 0.05498056, 459.0: 0.05745872, 460.0: 0.06, 461.0: 0.06260197, 462.0: 0.06527752, 463.0: 0.06804208, 464.0: 0.07091109, 465.0: 0.0739, 466.0: 0.077016, 467.0: 0.0802664, 468.0: 0.0836668, 469.0: 0.0872328, 470.0: 0.09098, 471.0: 0.09491755, 472.0: 0.09904584, 473.0: 0.1033674, 474.0: 0.1078846, 475.0: 0.1126, 476.0: 0.117532, 477.0: 0.1226744, 478.0: 0.1279928, 479.0: 0.1334528, 480.0: 0.13902, 481.0: 0.1446764, 482.0: 0.1504693, 483.0: 0.1564619, 484.0: 0.1627177, 485.0: 0.1693, 486.0: 0.1762431, 487.0: 0.1835581, 488.0: 0.1912735, 489.0: 0.199418, 490.0: 0.20802, 491.0: 0.2171199, 492.0: 0.2267345, 493.0: 0.2368571, 494.0: 0.2474812, 495.0: 0.2586, 496.0: 0.2701849, 497.0: 0.2822939, 498.0: 0.2950505, 499.0: 0.308578, 500.0: 0.323, 501.0: 0.3384021, 502.0: 0.3546858, 503.0: 0.3716986, 504.0: 0.3892875, 505.0: 0.4073, 506.0: 0.4256299, 507.0: 0.4443096, 508.0: 0.4633944, 509.0: 0.4829395, 510.0: 0.503, 511.0: 0.5235693, 512.0: 0.544512, 513.0: 0.56569, 514.0: 0.5869653, 515.0: 0.6082, 516.0: 0.6293456, 517.0: 0.6503068, 518.0: 0.6708752, 519.0: 0.6908424, 520.0: 0.71, 521.0: 0.7281852, 522.0: 0.7454636, 523.0: 0.7619694, 524.0: 0.7778368, 525.0: 0.7932, 526.0: 0.8081104, 527.0: 0.8224962, 528.0: 0.8363068, 529.0: 0.8494916, 530.0: 0.862, 531.0: 0.8738108, 532.0: 0.8849624, 533.0: 0.8954936, 534.0: 0.9054432, 535.0: 0.9148501, 536.0: 0.9237348, 537.0: 0.9320924, 538.0: 0.9399226, 539.0: 0.9472252, 540.0: 0.954, 541.0: 0.9602561, 542.0: 0.9660074, 543.0: 0.9712606, 544.0: 0.9760225, 545.0: 0.9803, 546.0: 0.9840924, 547.0: 0.9874182, 548.0: 0.9903128, 549.0: 0.9928116, 550.0: 0.9949501, 551.0: 0.9967108, 552.0: 0.9980983, 553.0: 0.999112, 554.0: 0.9997482, 555.0: 1.0, 556.0: 0.9998567, 557.0: 0.9993046, 558.0: 0.9983255, 559.0: 0.9968987, 560.0: 0.995, 561.0: 0.9926005, 562.0: 0.9897426, 563.0: 0.9864444, 564.0: 0.9827241, 565.0: 0.9786, 566.0: 0.9740837, 567.0: 0.9691712, 568.0: 0.9638568, 569.0: 0.9581349, 570.0: 0.952, 571.0: 0.9454504, 572.0: 0.9384992, 573.0: 0.9311628, 574.0: 0.9234576, 575.0: 0.9154, 576.0: 0.9070064, 577.0: 0.8982772, 578.0: 0.8892048, 579.0: 0.8797816, 580.0: 0.87, 581.0: 0.8598613, 582.0: 0.849392, 583.0: 0.838622, 584.0: 0.8275813, 585.0: 0.8163, 586.0: 0.8047947, 587.0: 0.793082, 588.0: 0.781192, 589.0: 0.7691547, 590.0: 0.757, 591.0: 0.7447541, 592.0: 0.7324224, 593.0: 0.7200036, 594.0: 0.7074965, 595.0: 0.6949, 596.0: 0.6822192, 597.0: 0.6694716, 598.0: 0.6566744, 599.0: 0.6438448, 600.0: 0.631, 601.0: 0.6181555, 602.0: 0.6053144, 603.0: 0.5924756, 604.0: 0.5796379, 605.0: 0.5668, 606.0: 0.5539611, 607.0: 0.5411372, 608.0: 0.5283528, 609.0: 0.5156323, 610.0: 0.503, 611.0: 0.4904688, 612.0: 0.4780304, 613.0: 0.4656776, 614.0: 0.4534032, 615.0: 0.4412, 616.0: 0.42908, 617.0: 0.417036, 618.0: 0.405032, 619.0: 0.393032, 620.0: 0.381, 621.0: 0.3689184, 622.0: 0.3568272, 623.0: 0.3447768, 624.0: 0.3328176, 625.0: 0.321, 626.0: 0.3093381, 627.0: 0.2978504, 628.0: 0.2865936, 629.0: 0.2756245, 630.0: 0.265, 631.0: 0.2547632, 632.0: 0.2448896, 633.0: 0.2353344, 634.0: 0.2260528, 635.0: 0.217, 636.0: 0.2081616, 637.0: 0.1995488, 638.0: 0.1911552, 639.0: 0.1829744, 640.0: 0.175, 641.0: 0.1672235, 642.0: 0.1596464, 643.0: 0.1522776, 644.0: 0.1451259, 645.0: 0.1382, 646.0: 0.1315003, 647.0: 0.1250248, 648.0: 0.1187792, 649.0: 0.1127691, 650.0: 0.107, 651.0: 0.1014762, 652.0: 0.09618864, 653.0: 0.09112296, 654.0: 0.08626485, 655.0: 0.0816, 656.0: 0.07712064, 657.0: 0.07282552, 658.0: 0.06871008, 659.0: 0.06476976, 660.0: 0.061, 661.0: 0.05739621, 662.0: 0.05395504, 663.0: 0.05067376, 664.0: 0.04754965, 665.0: 0.04458, 666.0: 0.04175872, 667.0: 0.03908496, 668.0: 0.03656384, 669.0: 0.03420048, 670.0: 0.032, 671.0: 0.02996261, 672.0: 0.02807664, 673.0: 0.02632936, 674.0: 0.02470805, 675.0: 0.0232, 676.0: 0.02180077, 677.0: 0.02050112, 678.0: 0.01928108, 679.0: 0.01812069, 680.0: 0.017, 681.0: 0.01590379, 682.0: 0.01483718, 683.0: 0.01381068, 684.0: 0.01283478, 685.0: 0.01192, 686.0: 0.01106831, 687.0: 0.01027339, 688.0: 0.009533311, 689.0: 0.008846157, 690.0: 0.00821, 691.0: 0.007623781, 692.0: 0.007085424, 693.0: 0.006591476, 694.0: 0.006138485, 695.0: 0.005723, 696.0: 0.005343059, 697.0: 0.004995796, 698.0: 0.004676404, 699.0: 0.004380075, 700.0: 0.004102, 701.0: 0.003838453, 702.0: 0.003589099, 703.0: 0.003354219, 704.0: 0.003134093, 705.0: 0.002929, 706.0: 0.002738139, 707.0: 0.002559876, 708.0: 0.002393244, 709.0: 0.002237275, 710.0: 0.002091, 711.0: 0.001953587, 712.0: 0.00182458, 713.0: 0.00170358, 714.0: 0.001590187, 715.0: 0.001484, 716.0: 0.001384496, 717.0: 0.001291268, 718.0: 0.001204092, 719.0: 0.001122744, 720.0: 0.001047, 721.0: 0.0009765896, 722.0: 0.0009111088, 723.0: 0.0008501332, 724.0: 0.0007932384, 725.0: 0.00074, 726.0: 0.0006900827, 727.0: 0.00064331, 728.0: 0.000599496, 729.0: 0.0005584547, 730.0: 0.00052, 731.0: 0.0004839136, 732.0: 0.0004500528, 733.0: 0.0004183452, 734.0: 0.0003887184, 735.0: 0.0003611, 736.0: 0.0003353835, 737.0: 0.0003114404, 738.0: 0.0002891656, 739.0: 0.0002684539, 740.0: 0.0002492, 741.0: 0.0002313019, 742.0: 0.0002146856, 743.0: 0.0001992884, 744.0: 0.0001850475, 745.0: 0.0001719, 746.0: 0.0001597781, 747.0: 0.0001486044, 748.0: 0.0001383016, 749.0: 0.0001287925, 750.0: 0.00012, 751.0: 0.0001118595, 752.0: 0.0001043224, 753.0: 9.73356e-05, 754.0: 9.084587e-05, 755.0: 8.48e-05, 756.0: 7.914667e-05, 757.0: 7.3858e-05, 758.0: 6.8916e-05, 759.0: 6.430267e-05, 760.0: 6e-05, 761.0: 5.598187e-05, 762.0: 5.22256e-05, 763.0: 4.87184e-05, 764.0: 4.544747e-05, 765.0: 4.24e-05, 766.0: 3.956104e-05, 767.0: 3.691512e-05, 768.0: 3.444868e-05, 769.0: 3.214816e-05, 770.0: 3e-05, 771.0: 2.799125e-05, 772.0: 2.611356e-05, 773.0: 2.436024e-05, 774.0: 2.272461e-05, 775.0: 2.12e-05, 776.0: 1.977855e-05, 777.0: 1.845285e-05, 778.0: 1.721687e-05, 779.0: 1.606459e-05, 780.0: 1.499e-05, 781.0: 1.398728e-05, 782.0: 1.305155e-05, 783.0: 1.217818e-05, 784.0: 1.136254e-05, 785.0: 1.06e-05, 786.0: 9.885877e-06, 787.0: 9.217304e-06, 788.0: 8.592362e-06, 789.0: 8.009133e-06, 790.0: 7.4657e-06, 791.0: 6.959567e-06, 792.0: 6.487995e-06, 793.0: 6.048699e-06, 794.0: 5.639396e-06, 795.0: 5.2578e-06, 796.0: 4.901771e-06, 797.0: 4.56972e-06, 798.0: 4.260194e-06, 799.0: 3.971739e-06, 800.0: 3.7029e-06, 801.0: 3.452163e-06, 802.0: 3.218302e-06, 803.0: 3.0003e-06, 804.0: 2.797139e-06, 805.0: 2.6078e-06, 806.0: 2.43122e-06, 807.0: 2.266531e-06, 808.0: 2.113013e-06, 809.0: 1.969943e-06, 810.0: 1.8366e-06, 811.0: 1.71223e-06, 812.0: 1.596228e-06, 813.0: 1.48809e-06, 814.0: 1.387314e-06, 815.0: 1.2934e-06, 816.0: 1.20582e-06, 817.0: 1.124143e-06, 818.0: 1.048009e-06, 819.0: 9.77058e-07, 820.0: 9.1093e-07, 821.0: 8.49251e-07, 822.0: 7.91721e-07, 823.0: 7.3809e-07, 824.0: 6.8811e-07, 825.0: 6.4153e-07, 826.0: 5.9809e-07, 827.0: 5.57575e-07, 828.0: 5.19808e-07, 829.0: 4.84612e-07, 830.0: 4.5181e-07}, u'z_bar': {360.0: 0.0006061, 361.0: 0.0006808792, 362.0: 0.0007651456, 363.0: 0.0008600124, 364.0: 0.0009665928, 365.0: 0.001086, 366.0: 0.001220586, 367.0: 0.001372729, 368.0: 0.001543579, 369.0: 0.001734286, 370.0: 0.001946, 371.0: 0.002177777, 372.0: 0.002435809, 373.0: 0.002731953, 374.0: 0.003078064, 375.0: 0.003486, 376.0: 0.003975227, 377.0: 0.00454088, 378.0: 0.00515832, 379.0: 0.005802907, 380.0: 0.006450001, 381.0: 0.007083216, 382.0: 0.007745488, 383.0: 0.008501152, 384.0: 0.009414544, 385.0: 0.01054999, 386.0: 0.0119658, 387.0: 0.01365587, 388.0: 0.01558805, 389.0: 0.01773015, 390.0: 0.02005001, 391.0: 0.02251136, 392.0: 0.02520288, 393.0: 0.02827972, 394.0: 0.03189704, 395.0: 0.03621, 396.0: 0.04143771, 397.0: 0.04750372, 398.0: 0.05411988, 399.0: 0.06099803, 400.0: 0.06785001, 401.0: 0.07448632, 402.0: 0.08136156, 403.0: 0.08915364, 404.0: 0.09854048, 405.0: 0.1102, 406.0: 0.1246133, 407.0: 0.1417017, 408.0: 0.1613035, 409.0: 0.1832568, 410.0: 0.2074, 411.0: 0.2336921, 412.0: 0.2626114, 413.0: 0.2947746, 414.0: 0.3307985, 415.0: 0.3713, 416.0: 0.4162091, 417.0: 0.4654642, 418.0: 0.5196948, 419.0: 0.5795303, 420.0: 0.6456, 421.0: 0.7184838, 422.0: 0.7967133, 423.0: 0.8778459, 424.0: 0.959439, 425.0: 1.0390501, 426.0: 1.1153673, 427.0: 1.1884971, 428.0: 1.2581233, 429.0: 1.3239296, 430.0: 1.3856, 431.0: 1.4426352, 432.0: 1.4948035, 433.0: 1.5421903, 434.0: 1.5848807, 435.0: 1.62296, 436.0: 1.6564048, 437.0: 1.6852959, 438.0: 1.7098745, 439.0: 1.7303821, 440.0: 1.74706, 441.0: 1.7600446, 442.0: 1.7696233, 443.0: 1.7762637, 444.0: 1.7804334, 445.0: 1.7826, 446.0: 1.7829682, 447.0: 1.7816998, 448.0: 1.7791982, 449.0: 1.7758671, 450.0: 1.77211, 451.0: 1.7682589, 452.0: 1.764039, 453.0: 1.7589438, 454.0: 1.7524663, 455.0: 1.7441, 456.0: 1.7335595, 457.0: 1.7208581, 458.0: 1.7059369, 459.0: 1.6887372, 460.0: 1.6692, 461.0: 1.6475287, 462.0: 1.6234127, 463.0: 1.5960223, 464.0: 1.564528, 465.0: 1.5281, 466.0: 1.4861114, 467.0: 1.4395215, 468.0: 1.3898799, 469.0: 1.3387362, 470.0: 1.28764, 471.0: 1.2374223, 472.0: 1.1878243, 473.0: 1.1387611, 474.0: 1.090148, 475.0: 1.0419, 476.0: 0.9941976, 477.0: 0.9473473, 478.0: 0.9014531, 479.0: 0.8566193, 480.0: 0.8129501, 481.0: 0.7705173, 482.0: 0.7294448, 483.0: 0.6899136, 484.0: 0.6521049, 485.0: 0.6162, 486.0: 0.5823286, 487.0: 0.5504162, 488.0: 0.5203376, 489.0: 0.4919673, 490.0: 0.46518, 491.0: 0.4399246, 492.0: 0.4161836, 493.0: 0.3938822, 494.0: 0.3729459, 495.0: 0.3533, 496.0: 0.3348578, 497.0: 0.3175521, 498.0: 0.3013375, 499.0: 0.2861686, 500.0: 0.272, 501.0: 0.2588171, 502.0: 0.2464838, 503.0: 0.2347718, 504.0: 0.2234533, 505.0: 0.2123, 506.0: 0.2011692, 507.0: 0.1901196, 508.0: 0.1792254, 509.0: 0.1685608, 510.0: 0.1582, 511.0: 0.1481383, 512.0: 0.1383758, 513.0: 0.1289942, 514.0: 0.1200751, 515.0: 0.1117, 516.0: 0.1039048, 517.0: 0.09666748, 518.0: 0.08998272, 519.0: 0.08384531, 520.0: 0.07824999, 521.0: 0.07320899, 522.0: 0.06867816, 523.0: 0.06456784, 524.0: 0.06078835, 525.0: 0.05725001, 526.0: 0.05390435, 527.0: 0.05074664, 528.0: 0.04775276, 529.0: 0.04489859, 530.0: 0.04216, 531.0: 0.03950728, 532.0: 0.03693564, 533.0: 0.03445836, 534.0: 0.03208872, 535.0: 0.02984, 536.0: 0.02771181, 537.0: 0.02569444, 538.0: 0.02378716, 539.0: 0.02198925, 540.0: 0.0203, 541.0: 0.01871805, 542.0: 0.01724036, 543.0: 0.01586364, 544.0: 0.01458461, 545.0: 0.0134, 546.0: 0.01230723, 547.0: 0.01130188, 548.0: 0.01037792, 549.0: 0.009529306, 550.0: 0.008749999, 551.0: 0.0080352, 552.0: 0.0073816, 553.0: 0.0067854, 554.0: 0.0062428, 555.0: 0.005749999, 556.0: 0.0053036, 557.0: 0.0048998, 558.0: 0.0045342, 559.0: 0.0042024, 560.0: 0.0039, 561.0: 0.0036232, 562.0: 0.0033706, 563.0: 0.0031414, 564.0: 0.0029348, 565.0: 0.002749999, 566.0: 0.0025852, 567.0: 0.0024386, 568.0: 0.0023094, 569.0: 0.0021968, 570.0: 0.0021, 571.0: 0.002017733, 572.0: 0.0019482, 573.0: 0.0018898, 574.0: 0.001840933, 575.0: 0.0018, 576.0: 0.001766267, 577.0: 0.0017378, 578.0: 0.0017112, 579.0: 0.001683067, 580.0: 0.001650001, 581.0: 0.001610133, 582.0: 0.0015644, 583.0: 0.0015136, 584.0: 0.001458533, 585.0: 0.0014, 586.0: 0.001336667, 587.0: 0.00127, 588.0: 0.001205, 589.0: 0.001146667, 590.0: 0.0011, 591.0: 0.0010688, 592.0: 0.0010494, 593.0: 0.0010356, 594.0: 0.0010212, 595.0: 0.001, 596.0: 0.00096864, 597.0: 0.00092992, 598.0: 0.00088688, 599.0: 0.00084256, 600.0: 0.0008, 601.0: 0.00076096, 602.0: 0.00072368, 603.0: 0.00068592, 604.0: 0.00064544, 605.0: 0.0006, 606.0: 0.0005478667, 607.0: 0.0004916, 608.0: 0.0004354, 609.0: 0.0003834667, 610.0: 0.00034, 611.0: 0.0003072533, 612.0: 0.00028316, 613.0: 0.00026544, 614.0: 0.0002518133, 615.0: 0.00024, 616.0: 0.0002295467, 617.0: 0.00022064, 618.0: 0.00021196, 619.0: 0.0002021867, 620.0: 0.00019, 621.0: 0.0001742133, 622.0: 0.00015564, 623.0: 0.00013596, 624.0: 0.0001168533, 625.0: 0.0001, 626.0: 8.613333e-05, 627.0: 7.46e-05, 628.0: 6.5e-05, 629.0: 5.693333e-05, 630.0: 4.999999e-05, 631.0: 4.416e-05, 632.0: 3.948e-05, 633.0: 3.572e-05, 634.0: 3.264e-05, 635.0: 3e-05, 636.0: 2.765333e-05, 637.0: 2.556e-05, 638.0: 2.364e-05, 639.0: 2.181333e-05, 640.0: 2e-05, 641.0: 1.813333e-05, 642.0: 1.62e-05, 643.0: 1.42e-05, 644.0: 1.213333e-05, 645.0: 1e-05, 646.0: 7.733333e-06, 647.0: 5.4e-06, 648.0: 3.2e-06, 649.0: 1.333333e-06, 650.0: 0.0, 651.0: 0.0, 652.0: 0.0, 653.0: 0.0, 654.0: 0.0, 655.0: 0.0, 656.0: 0.0, 657.0: 0.0, 658.0: 0.0, 659.0: 0.0, 660.0: 0.0, 661.0: 0.0, 662.0: 0.0, 663.0: 0.0, 664.0: 0.0, 665.0: 0.0, 666.0: 0.0, 667.0: 0.0, 668.0: 0.0, 669.0: 0.0, 670.0: 0.0, 671.0: 0.0, 672.0: 0.0, 673.0: 0.0, 674.0: 0.0, 675.0: 0.0, 676.0: 0.0, 677.0: 0.0, 678.0: 0.0, 679.0: 0.0, 680.0: 0.0, 681.0: 0.0, 682.0: 0.0, 683.0: 0.0, 684.0: 0.0, 685.0: 0.0, 686.0: 0.0, 687.0: 0.0, 688.0: 0.0, 689.0: 0.0, 690.0: 0.0, 691.0: 0.0, 692.0: 0.0, 693.0: 0.0, 694.0: 0.0, 695.0: 0.0, 696.0: 0.0, 697.0: 0.0, 698.0: 0.0, 699.0: 0.0, 700.0: 0.0, 701.0: 0.0, 702.0: 0.0, 703.0: 0.0, 704.0: 0.0, 705.0: 0.0, 706.0: 0.0, 707.0: 0.0, 708.0: 0.0, 709.0: 0.0, 710.0: 0.0, 711.0: 0.0, 712.0: 0.0, 713.0: 0.0, 714.0: 0.0, 715.0: 0.0, 716.0: 0.0, 717.0: 0.0, 718.0: 0.0, 719.0: 0.0, 720.0: 0.0, 721.0: 0.0, 722.0: 0.0, 723.0: 0.0, 724.0: 0.0, 725.0: 0.0, 726.0: 0.0, 727.0: 0.0, 728.0: 0.0, 729.0: 0.0, 730.0: 0.0, 731.0: 0.0, 732.0: 0.0, 733.0: 0.0, 734.0: 0.0, 735.0: 0.0, 736.0: 0.0, 737.0: 0.0, 738.0: 0.0, 739.0: 0.0, 740.0: 0.0, 741.0: 0.0, 742.0: 0.0, 743.0: 0.0, 744.0: 0.0, 745.0: 0.0, 746.0: 0.0, 747.0: 0.0, 748.0: 0.0, 749.0: 0.0, 750.0: 0.0, 751.0: 0.0, 752.0: 0.0, 753.0: 0.0, 754.0: 0.0, 755.0: 0.0, 756.0: 0.0, 757.0: 0.0, 758.0: 0.0, 759.0: 0.0, 760.0: 0.0, 761.0: 0.0, 762.0: 0.0, 763.0: 0.0, 764.0: 0.0, 765.0: 0.0, 766.0: 0.0, 767.0: 0.0, 768.0: 0.0, 769.0: 0.0, 770.0: 0.0, 771.0: 0.0, 772.0: 0.0, 773.0: 0.0, 774.0: 0.0, 775.0: 0.0, 776.0: 0.0, 777.0: 0.0, 778.0: 0.0, 779.0: 0.0, 780.0: 0.0, 781.0: 0.0, 782.0: 0.0, 783.0: 0.0, 784.0: 0.0, 785.0: 0.0, 786.0: 0.0, 787.0: 0.0, 788.0: 0.0, 789.0: 0.0, 790.0: 0.0, 791.0: 0.0, 792.0: 0.0, 793.0: 0.0, 794.0: 0.0, 795.0: 0.0, 796.0: 0.0, 797.0: 0.0, 798.0: 0.0, 799.0: 0.0, 800.0: 0.0, 801.0: 0.0, 802.0: 0.0, 803.0: 0.0, 804.0: 0.0, 805.0: 0.0, 806.0: 0.0, 807.0: 0.0, 808.0: 0.0, 809.0: 0.0, 810.0: 0.0, 811.0: 0.0, 812.0: 0.0, 813.0: 0.0, 814.0: 0.0, 815.0: 0.0, 816.0: 0.0, 817.0: 0.0, 818.0: 0.0, 819.0: 0.0, 820.0: 0.0, 821.0: 0.0, 822.0: 0.0, 823.0: 0.0, 824.0: 0.0, 825.0: 0.0, 826.0: 0.0, 827.0: 0.0, 828.0: 0.0, 829.0: 0.0, 830.0: 0.0}}, 'CIE 1931 2$^\circ$ Standard Observer'), start=1000, end=100000, count=10, iterations=6)[source]

Returns the correlated colour temperature \(T_{cp}\) and \(\Delta_{uv}\) from given CIE UCS colourspace uv chromaticity coordinates, colour matching functions and temperature range using Ohno (2013) method.

The iterations parameter defines the calculations precision: The higher its value, the more planckian tables will be generated through cascade expansion in order to converge to the exact solution.

Parameters:
  • uv (array_like) – CIE UCS colourspace uv chromaticity coordinates.
  • cmfs (XYZ_ColourMatchingFunctions, optional) – Standard observer colour matching functions.
  • start (numeric, optional) – Temperature range start in kelvins.
  • end (numeric, optional) – Temperature range end in kelvins.
  • count (int, optional) – Temperatures count in the planckian tables.
  • iterations (int, optional) – Number of planckian tables to generate.
Returns:

Correlated colour temperature \(T_{cp}\), \(\Delta_{uv}\).

Return type:

ndarray

References

[3]Ohno, Y. (2014). Practical Use and Calculation of CCT and Duv. LEUKOS, 10(1), 47–55. doi:10.1080/15502724.2014.839020

Examples

>>> from colour import STANDARD_OBSERVERS_CMFS
>>> cmfs = STANDARD_OBSERVERS_CMFS['CIE 1931 2 Degree Standard Observer']
>>> uv = np.array([0.1978, 0.3122])
>>> uv_to_CCT_Ohno2013(uv, cmfs)  
array([  6.5075128...e+03,   3.2233587...e-03])
colour.temperature.cct.CCT_to_uv_Ohno2013(CCT, D_uv=0, cmfs=XYZ_ColourMatchingFunctions( 'CIE 1931 2 Degree Standard Observer', {u'x_bar': {360.0: 0.0001299, 361.0: 0.000145847, 362.0: 0.0001638021, 363.0: 0.0001840037, 364.0: 0.0002066902, 365.0: 0.0002321, 366.0: 0.000260728, 367.0: 0.000293075, 368.0: 0.000329388, 369.0: 0.000369914, 370.0: 0.0004149, 371.0: 0.0004641587, 372.0: 0.000518986, 373.0: 0.000581854, 374.0: 0.0006552347, 375.0: 0.0007416, 376.0: 0.0008450296, 377.0: 0.0009645268, 378.0: 0.001094949, 379.0: 0.001231154, 380.0: 0.001368, 381.0: 0.00150205, 382.0: 0.001642328, 383.0: 0.001802382, 384.0: 0.001995757, 385.0: 0.002236, 386.0: 0.002535385, 387.0: 0.002892603, 388.0: 0.003300829, 389.0: 0.003753236, 390.0: 0.004243, 391.0: 0.004762389, 392.0: 0.005330048, 393.0: 0.005978712, 394.0: 0.006741117, 395.0: 0.00765, 396.0: 0.008751373, 397.0: 0.01002888, 398.0: 0.0114217, 399.0: 0.01286901, 400.0: 0.01431, 401.0: 0.01570443, 402.0: 0.01714744, 403.0: 0.01878122, 404.0: 0.02074801, 405.0: 0.02319, 406.0: 0.02620736, 407.0: 0.02978248, 408.0: 0.03388092, 409.0: 0.03846824, 410.0: 0.04351, 411.0: 0.0489956, 412.0: 0.0550226, 413.0: 0.0617188, 414.0: 0.069212, 415.0: 0.07763, 416.0: 0.08695811, 417.0: 0.09717672, 418.0: 0.1084063, 419.0: 0.1207672, 420.0: 0.13438, 421.0: 0.1493582, 422.0: 0.1653957, 423.0: 0.1819831, 424.0: 0.198611, 425.0: 0.21477, 426.0: 0.2301868, 427.0: 0.2448797, 428.0: 0.2587773, 429.0: 0.2718079, 430.0: 0.2839, 431.0: 0.2949438, 432.0: 0.3048965, 433.0: 0.3137873, 434.0: 0.3216454, 435.0: 0.3285, 436.0: 0.3343513, 437.0: 0.3392101, 438.0: 0.3431213, 439.0: 0.3461296, 440.0: 0.34828, 441.0: 0.3495999, 442.0: 0.3501474, 443.0: 0.350013, 444.0: 0.349287, 445.0: 0.34806, 446.0: 0.3463733, 447.0: 0.3442624, 448.0: 0.3418088, 449.0: 0.3390941, 450.0: 0.3362, 451.0: 0.3331977, 452.0: 0.3300411, 453.0: 0.3266357, 454.0: 0.3228868, 455.0: 0.3187, 456.0: 0.3140251, 457.0: 0.308884, 458.0: 0.3032904, 459.0: 0.2972579, 460.0: 0.2908, 461.0: 0.2839701, 462.0: 0.2767214, 463.0: 0.2689178, 464.0: 0.2604227, 465.0: 0.2511, 466.0: 0.2408475, 467.0: 0.2298512, 468.0: 0.2184072, 469.0: 0.2068115, 470.0: 0.19536, 471.0: 0.1842136, 472.0: 0.1733273, 473.0: 0.1626881, 474.0: 0.1522833, 475.0: 0.1421, 476.0: 0.1321786, 477.0: 0.1225696, 478.0: 0.1132752, 479.0: 0.1042979, 480.0: 0.09564, 481.0: 0.08729955, 482.0: 0.07930804, 483.0: 0.07171776, 484.0: 0.06458099, 485.0: 0.05795001, 486.0: 0.05186211, 487.0: 0.04628152, 488.0: 0.04115088, 489.0: 0.03641283, 490.0: 0.03201, 491.0: 0.0279172, 492.0: 0.0241444, 493.0: 0.020687, 494.0: 0.0175404, 495.0: 0.0147, 496.0: 0.01216179, 497.0: 0.00991996, 498.0: 0.00796724, 499.0: 0.006296346, 500.0: 0.0049, 501.0: 0.003777173, 502.0: 0.00294532, 503.0: 0.00242488, 504.0: 0.002236293, 505.0: 0.0024, 506.0: 0.00292552, 507.0: 0.00383656, 508.0: 0.00517484, 509.0: 0.00698208, 510.0: 0.0093, 511.0: 0.01214949, 512.0: 0.01553588, 513.0: 0.01947752, 514.0: 0.02399277, 515.0: 0.0291, 516.0: 0.03481485, 517.0: 0.04112016, 518.0: 0.04798504, 519.0: 0.05537861, 520.0: 0.06327, 521.0: 0.07163501, 522.0: 0.08046224, 523.0: 0.08973996, 524.0: 0.09945645, 525.0: 0.1096, 526.0: 0.1201674, 527.0: 0.1311145, 528.0: 0.1423679, 529.0: 0.1538542, 530.0: 0.1655, 531.0: 0.1772571, 532.0: 0.18914, 533.0: 0.2011694, 534.0: 0.2133658, 535.0: 0.2257499, 536.0: 0.2383209, 537.0: 0.2510668, 538.0: 0.2639922, 539.0: 0.2771017, 540.0: 0.2904, 541.0: 0.3038912, 542.0: 0.3175726, 543.0: 0.3314384, 544.0: 0.3454828, 545.0: 0.3597, 546.0: 0.3740839, 547.0: 0.3886396, 548.0: 0.4033784, 549.0: 0.4183115, 550.0: 0.4334499, 551.0: 0.4487953, 552.0: 0.464336, 553.0: 0.480064, 554.0: 0.4959713, 555.0: 0.5120501, 556.0: 0.5282959, 557.0: 0.5446916, 558.0: 0.5612094, 559.0: 0.5778215, 560.0: 0.5945, 561.0: 0.6112209, 562.0: 0.6279758, 563.0: 0.6447602, 564.0: 0.6615697, 565.0: 0.6784, 566.0: 0.6952392, 567.0: 0.7120586, 568.0: 0.7288284, 569.0: 0.7455188, 570.0: 0.7621, 571.0: 0.7785432, 572.0: 0.7948256, 573.0: 0.8109264, 574.0: 0.8268248, 575.0: 0.8425, 576.0: 0.8579325, 577.0: 0.8730816, 578.0: 0.8878944, 579.0: 0.9023181, 580.0: 0.9163, 581.0: 0.9297995, 582.0: 0.9427984, 583.0: 0.9552776, 584.0: 0.9672179, 585.0: 0.9786, 586.0: 0.9893856, 587.0: 0.9995488, 588.0: 1.0090892, 589.0: 1.0180064, 590.0: 1.0263, 591.0: 1.0339827, 592.0: 1.040986, 593.0: 1.047188, 594.0: 1.0524667, 595.0: 1.0567, 596.0: 1.0597944, 597.0: 1.0617992, 598.0: 1.0628068, 599.0: 1.0629096, 600.0: 1.0622, 601.0: 1.0607352, 602.0: 1.0584436, 603.0: 1.0552244, 604.0: 1.0509768, 605.0: 1.0456, 606.0: 1.0390369, 607.0: 1.0313608, 608.0: 1.0226662, 609.0: 1.0130477, 610.0: 1.0026, 611.0: 0.9913675, 612.0: 0.9793314, 613.0: 0.9664916, 614.0: 0.9528479, 615.0: 0.9384, 616.0: 0.923194, 617.0: 0.907244, 618.0: 0.890502, 619.0: 0.87292, 620.0: 0.8544499, 621.0: 0.835084, 622.0: 0.814946, 623.0: 0.794186, 624.0: 0.772954, 625.0: 0.7514, 626.0: 0.7295836, 627.0: 0.7075888, 628.0: 0.6856022, 629.0: 0.6638104, 630.0: 0.6424, 631.0: 0.6215149, 632.0: 0.6011138, 633.0: 0.5811052, 634.0: 0.5613977, 635.0: 0.5419, 636.0: 0.5225995, 637.0: 0.5035464, 638.0: 0.4847436, 639.0: 0.4661939, 640.0: 0.4479, 641.0: 0.4298613, 642.0: 0.412098, 643.0: 0.394644, 644.0: 0.3775333, 645.0: 0.3608, 646.0: 0.3444563, 647.0: 0.3285168, 648.0: 0.3130192, 649.0: 0.2980011, 650.0: 0.2835, 651.0: 0.2695448, 652.0: 0.2561184, 653.0: 0.2431896, 654.0: 0.2307272, 655.0: 0.2187, 656.0: 0.2070971, 657.0: 0.1959232, 658.0: 0.1851708, 659.0: 0.1748323, 660.0: 0.1649, 661.0: 0.1553667, 662.0: 0.14623, 663.0: 0.13749, 664.0: 0.1291467, 665.0: 0.1212, 666.0: 0.1136397, 667.0: 0.106465, 668.0: 0.09969044, 669.0: 0.09333061, 670.0: 0.0874, 671.0: 0.08190096, 672.0: 0.07680428, 673.0: 0.07207712, 674.0: 0.06768664, 675.0: 0.0636, 676.0: 0.05980685, 677.0: 0.05628216, 678.0: 0.05297104, 679.0: 0.04981861, 680.0: 0.04677, 681.0: 0.04378405, 682.0: 0.04087536, 683.0: 0.03807264, 684.0: 0.03540461, 685.0: 0.0329, 686.0: 0.03056419, 687.0: 0.02838056, 688.0: 0.02634484, 689.0: 0.02445275, 690.0: 0.0227, 691.0: 0.02108429, 692.0: 0.01959988, 693.0: 0.01823732, 694.0: 0.01698717, 695.0: 0.01584, 696.0: 0.01479064, 697.0: 0.01383132, 698.0: 0.01294868, 699.0: 0.0121292, 700.0: 0.01135916, 701.0: 0.01062935, 702.0: 0.009938846, 703.0: 0.009288422, 704.0: 0.008678854, 705.0: 0.008110916, 706.0: 0.007582388, 707.0: 0.007088746, 708.0: 0.006627313, 709.0: 0.006195408, 710.0: 0.005790346, 711.0: 0.005409826, 712.0: 0.005052583, 713.0: 0.004717512, 714.0: 0.004403507, 715.0: 0.004109457, 716.0: 0.003833913, 717.0: 0.003575748, 718.0: 0.003334342, 719.0: 0.003109075, 720.0: 0.002899327, 721.0: 0.002704348, 722.0: 0.00252302, 723.0: 0.002354168, 724.0: 0.002196616, 725.0: 0.00204919, 726.0: 0.00191096, 727.0: 0.001781438, 728.0: 0.00166011, 729.0: 0.001546459, 730.0: 0.001439971, 731.0: 0.001340042, 732.0: 0.001246275, 733.0: 0.001158471, 734.0: 0.00107643, 735.0: 0.0009999493, 736.0: 0.0009287358, 737.0: 0.0008624332, 738.0: 0.0008007503, 739.0: 0.000743396, 740.0: 0.0006900786, 741.0: 0.0006405156, 742.0: 0.0005945021, 743.0: 0.0005518646, 744.0: 0.000512429, 745.0: 0.0004760213, 746.0: 0.0004424536, 747.0: 0.0004115117, 748.0: 0.0003829814, 749.0: 0.0003566491, 750.0: 0.0003323011, 751.0: 0.0003097586, 752.0: 0.0002888871, 753.0: 0.0002695394, 754.0: 0.0002515682, 755.0: 0.0002348261, 756.0: 0.000219171, 757.0: 0.0002045258, 758.0: 0.0001908405, 759.0: 0.0001780654, 760.0: 0.0001661505, 761.0: 0.0001550236, 762.0: 0.0001446219, 763.0: 0.0001349098, 764.0: 0.000125852, 765.0: 0.000117413, 766.0: 0.0001095515, 767.0: 0.0001022245, 768.0: 9.539445e-05, 769.0: 8.90239e-05, 770.0: 8.307527e-05, 771.0: 7.751269e-05, 772.0: 7.231304e-05, 773.0: 6.745778e-05, 774.0: 6.292844e-05, 775.0: 5.870652e-05, 776.0: 5.477028e-05, 777.0: 5.109918e-05, 778.0: 4.767654e-05, 779.0: 4.448567e-05, 780.0: 4.150994e-05, 781.0: 3.873324e-05, 782.0: 3.614203e-05, 783.0: 3.372352e-05, 784.0: 3.146487e-05, 785.0: 2.935326e-05, 786.0: 2.737573e-05, 787.0: 2.552433e-05, 788.0: 2.379376e-05, 789.0: 2.21787e-05, 790.0: 2.067383e-05, 791.0: 1.927226e-05, 792.0: 1.79664e-05, 793.0: 1.674991e-05, 794.0: 1.561648e-05, 795.0: 1.455977e-05, 796.0: 1.357387e-05, 797.0: 1.265436e-05, 798.0: 1.179723e-05, 799.0: 1.099844e-05, 800.0: 1.025398e-05, 801.0: 9.559646e-06, 802.0: 8.912044e-06, 803.0: 8.308358e-06, 804.0: 7.745769e-06, 805.0: 7.221456e-06, 806.0: 6.732475e-06, 807.0: 6.276423e-06, 808.0: 5.851304e-06, 809.0: 5.455118e-06, 810.0: 5.085868e-06, 811.0: 4.741466e-06, 812.0: 4.420236e-06, 813.0: 4.120783e-06, 814.0: 3.841716e-06, 815.0: 3.581652e-06, 816.0: 3.339127e-06, 817.0: 3.112949e-06, 818.0: 2.902121e-06, 819.0: 2.705645e-06, 820.0: 2.522525e-06, 821.0: 2.351726e-06, 822.0: 2.192415e-06, 823.0: 2.043902e-06, 824.0: 1.905497e-06, 825.0: 1.776509e-06, 826.0: 1.656215e-06, 827.0: 1.544022e-06, 828.0: 1.43944e-06, 829.0: 1.341977e-06, 830.0: 1.251141e-06}, u'y_bar': {360.0: 3.917e-06, 361.0: 4.393581e-06, 362.0: 4.929604e-06, 363.0: 5.532136e-06, 364.0: 6.208245e-06, 365.0: 6.965e-06, 366.0: 7.813219e-06, 367.0: 8.767336e-06, 368.0: 9.839844e-06, 369.0: 1.104323e-05, 370.0: 1.239e-05, 371.0: 1.388641e-05, 372.0: 1.555728e-05, 373.0: 1.744296e-05, 374.0: 1.958375e-05, 375.0: 2.202e-05, 376.0: 2.483965e-05, 377.0: 2.804126e-05, 378.0: 3.153104e-05, 379.0: 3.521521e-05, 380.0: 3.9e-05, 381.0: 4.28264e-05, 382.0: 4.69146e-05, 383.0: 5.15896e-05, 384.0: 5.71764e-05, 385.0: 6.4e-05, 386.0: 7.234421e-05, 387.0: 8.221224e-05, 388.0: 9.350816e-05, 389.0: 0.0001061361, 390.0: 0.00012, 391.0: 0.000134984, 392.0: 0.000151492, 393.0: 0.000170208, 394.0: 0.000191816, 395.0: 0.000217, 396.0: 0.0002469067, 397.0: 0.00028124, 398.0: 0.00031852, 399.0: 0.0003572667, 400.0: 0.000396, 401.0: 0.0004337147, 402.0: 0.000473024, 403.0: 0.000517876, 404.0: 0.0005722187, 405.0: 0.00064, 406.0: 0.00072456, 407.0: 0.0008255, 408.0: 0.00094116, 409.0: 0.00106988, 410.0: 0.00121, 411.0: 0.001362091, 412.0: 0.001530752, 413.0: 0.001720368, 414.0: 0.001935323, 415.0: 0.00218, 416.0: 0.0024548, 417.0: 0.002764, 418.0: 0.0031178, 419.0: 0.0035264, 420.0: 0.004, 421.0: 0.00454624, 422.0: 0.00515932, 423.0: 0.00582928, 424.0: 0.00654616, 425.0: 0.0073, 426.0: 0.008086507, 427.0: 0.00890872, 428.0: 0.00976768, 429.0: 0.01066443, 430.0: 0.0116, 431.0: 0.01257317, 432.0: 0.01358272, 433.0: 0.01462968, 434.0: 0.01571509, 435.0: 0.01684, 436.0: 0.01800736, 437.0: 0.01921448, 438.0: 0.02045392, 439.0: 0.02171824, 440.0: 0.023, 441.0: 0.02429461, 442.0: 0.02561024, 443.0: 0.02695857, 444.0: 0.02835125, 445.0: 0.0298, 446.0: 0.03131083, 447.0: 0.03288368, 448.0: 0.03452112, 449.0: 0.03622571, 450.0: 0.038, 451.0: 0.03984667, 452.0: 0.041768, 453.0: 0.043766, 454.0: 0.04584267, 455.0: 0.048, 456.0: 0.05024368, 457.0: 0.05257304, 458.0: 0.05498056, 459.0: 0.05745872, 460.0: 0.06, 461.0: 0.06260197, 462.0: 0.06527752, 463.0: 0.06804208, 464.0: 0.07091109, 465.0: 0.0739, 466.0: 0.077016, 467.0: 0.0802664, 468.0: 0.0836668, 469.0: 0.0872328, 470.0: 0.09098, 471.0: 0.09491755, 472.0: 0.09904584, 473.0: 0.1033674, 474.0: 0.1078846, 475.0: 0.1126, 476.0: 0.117532, 477.0: 0.1226744, 478.0: 0.1279928, 479.0: 0.1334528, 480.0: 0.13902, 481.0: 0.1446764, 482.0: 0.1504693, 483.0: 0.1564619, 484.0: 0.1627177, 485.0: 0.1693, 486.0: 0.1762431, 487.0: 0.1835581, 488.0: 0.1912735, 489.0: 0.199418, 490.0: 0.20802, 491.0: 0.2171199, 492.0: 0.2267345, 493.0: 0.2368571, 494.0: 0.2474812, 495.0: 0.2586, 496.0: 0.2701849, 497.0: 0.2822939, 498.0: 0.2950505, 499.0: 0.308578, 500.0: 0.323, 501.0: 0.3384021, 502.0: 0.3546858, 503.0: 0.3716986, 504.0: 0.3892875, 505.0: 0.4073, 506.0: 0.4256299, 507.0: 0.4443096, 508.0: 0.4633944, 509.0: 0.4829395, 510.0: 0.503, 511.0: 0.5235693, 512.0: 0.544512, 513.0: 0.56569, 514.0: 0.5869653, 515.0: 0.6082, 516.0: 0.6293456, 517.0: 0.6503068, 518.0: 0.6708752, 519.0: 0.6908424, 520.0: 0.71, 521.0: 0.7281852, 522.0: 0.7454636, 523.0: 0.7619694, 524.0: 0.7778368, 525.0: 0.7932, 526.0: 0.8081104, 527.0: 0.8224962, 528.0: 0.8363068, 529.0: 0.8494916, 530.0: 0.862, 531.0: 0.8738108, 532.0: 0.8849624, 533.0: 0.8954936, 534.0: 0.9054432, 535.0: 0.9148501, 536.0: 0.9237348, 537.0: 0.9320924, 538.0: 0.9399226, 539.0: 0.9472252, 540.0: 0.954, 541.0: 0.9602561, 542.0: 0.9660074, 543.0: 0.9712606, 544.0: 0.9760225, 545.0: 0.9803, 546.0: 0.9840924, 547.0: 0.9874182, 548.0: 0.9903128, 549.0: 0.9928116, 550.0: 0.9949501, 551.0: 0.9967108, 552.0: 0.9980983, 553.0: 0.999112, 554.0: 0.9997482, 555.0: 1.0, 556.0: 0.9998567, 557.0: 0.9993046, 558.0: 0.9983255, 559.0: 0.9968987, 560.0: 0.995, 561.0: 0.9926005, 562.0: 0.9897426, 563.0: 0.9864444, 564.0: 0.9827241, 565.0: 0.9786, 566.0: 0.9740837, 567.0: 0.9691712, 568.0: 0.9638568, 569.0: 0.9581349, 570.0: 0.952, 571.0: 0.9454504, 572.0: 0.9384992, 573.0: 0.9311628, 574.0: 0.9234576, 575.0: 0.9154, 576.0: 0.9070064, 577.0: 0.8982772, 578.0: 0.8892048, 579.0: 0.8797816, 580.0: 0.87, 581.0: 0.8598613, 582.0: 0.849392, 583.0: 0.838622, 584.0: 0.8275813, 585.0: 0.8163, 586.0: 0.8047947, 587.0: 0.793082, 588.0: 0.781192, 589.0: 0.7691547, 590.0: 0.757, 591.0: 0.7447541, 592.0: 0.7324224, 593.0: 0.7200036, 594.0: 0.7074965, 595.0: 0.6949, 596.0: 0.6822192, 597.0: 0.6694716, 598.0: 0.6566744, 599.0: 0.6438448, 600.0: 0.631, 601.0: 0.6181555, 602.0: 0.6053144, 603.0: 0.5924756, 604.0: 0.5796379, 605.0: 0.5668, 606.0: 0.5539611, 607.0: 0.5411372, 608.0: 0.5283528, 609.0: 0.5156323, 610.0: 0.503, 611.0: 0.4904688, 612.0: 0.4780304, 613.0: 0.4656776, 614.0: 0.4534032, 615.0: 0.4412, 616.0: 0.42908, 617.0: 0.417036, 618.0: 0.405032, 619.0: 0.393032, 620.0: 0.381, 621.0: 0.3689184, 622.0: 0.3568272, 623.0: 0.3447768, 624.0: 0.3328176, 625.0: 0.321, 626.0: 0.3093381, 627.0: 0.2978504, 628.0: 0.2865936, 629.0: 0.2756245, 630.0: 0.265, 631.0: 0.2547632, 632.0: 0.2448896, 633.0: 0.2353344, 634.0: 0.2260528, 635.0: 0.217, 636.0: 0.2081616, 637.0: 0.1995488, 638.0: 0.1911552, 639.0: 0.1829744, 640.0: 0.175, 641.0: 0.1672235, 642.0: 0.1596464, 643.0: 0.1522776, 644.0: 0.1451259, 645.0: 0.1382, 646.0: 0.1315003, 647.0: 0.1250248, 648.0: 0.1187792, 649.0: 0.1127691, 650.0: 0.107, 651.0: 0.1014762, 652.0: 0.09618864, 653.0: 0.09112296, 654.0: 0.08626485, 655.0: 0.0816, 656.0: 0.07712064, 657.0: 0.07282552, 658.0: 0.06871008, 659.0: 0.06476976, 660.0: 0.061, 661.0: 0.05739621, 662.0: 0.05395504, 663.0: 0.05067376, 664.0: 0.04754965, 665.0: 0.04458, 666.0: 0.04175872, 667.0: 0.03908496, 668.0: 0.03656384, 669.0: 0.03420048, 670.0: 0.032, 671.0: 0.02996261, 672.0: 0.02807664, 673.0: 0.02632936, 674.0: 0.02470805, 675.0: 0.0232, 676.0: 0.02180077, 677.0: 0.02050112, 678.0: 0.01928108, 679.0: 0.01812069, 680.0: 0.017, 681.0: 0.01590379, 682.0: 0.01483718, 683.0: 0.01381068, 684.0: 0.01283478, 685.0: 0.01192, 686.0: 0.01106831, 687.0: 0.01027339, 688.0: 0.009533311, 689.0: 0.008846157, 690.0: 0.00821, 691.0: 0.007623781, 692.0: 0.007085424, 693.0: 0.006591476, 694.0: 0.006138485, 695.0: 0.005723, 696.0: 0.005343059, 697.0: 0.004995796, 698.0: 0.004676404, 699.0: 0.004380075, 700.0: 0.004102, 701.0: 0.003838453, 702.0: 0.003589099, 703.0: 0.003354219, 704.0: 0.003134093, 705.0: 0.002929, 706.0: 0.002738139, 707.0: 0.002559876, 708.0: 0.002393244, 709.0: 0.002237275, 710.0: 0.002091, 711.0: 0.001953587, 712.0: 0.00182458, 713.0: 0.00170358, 714.0: 0.001590187, 715.0: 0.001484, 716.0: 0.001384496, 717.0: 0.001291268, 718.0: 0.001204092, 719.0: 0.001122744, 720.0: 0.001047, 721.0: 0.0009765896, 722.0: 0.0009111088, 723.0: 0.0008501332, 724.0: 0.0007932384, 725.0: 0.00074, 726.0: 0.0006900827, 727.0: 0.00064331, 728.0: 0.000599496, 729.0: 0.0005584547, 730.0: 0.00052, 731.0: 0.0004839136, 732.0: 0.0004500528, 733.0: 0.0004183452, 734.0: 0.0003887184, 735.0: 0.0003611, 736.0: 0.0003353835, 737.0: 0.0003114404, 738.0: 0.0002891656, 739.0: 0.0002684539, 740.0: 0.0002492, 741.0: 0.0002313019, 742.0: 0.0002146856, 743.0: 0.0001992884, 744.0: 0.0001850475, 745.0: 0.0001719, 746.0: 0.0001597781, 747.0: 0.0001486044, 748.0: 0.0001383016, 749.0: 0.0001287925, 750.0: 0.00012, 751.0: 0.0001118595, 752.0: 0.0001043224, 753.0: 9.73356e-05, 754.0: 9.084587e-05, 755.0: 8.48e-05, 756.0: 7.914667e-05, 757.0: 7.3858e-05, 758.0: 6.8916e-05, 759.0: 6.430267e-05, 760.0: 6e-05, 761.0: 5.598187e-05, 762.0: 5.22256e-05, 763.0: 4.87184e-05, 764.0: 4.544747e-05, 765.0: 4.24e-05, 766.0: 3.956104e-05, 767.0: 3.691512e-05, 768.0: 3.444868e-05, 769.0: 3.214816e-05, 770.0: 3e-05, 771.0: 2.799125e-05, 772.0: 2.611356e-05, 773.0: 2.436024e-05, 774.0: 2.272461e-05, 775.0: 2.12e-05, 776.0: 1.977855e-05, 777.0: 1.845285e-05, 778.0: 1.721687e-05, 779.0: 1.606459e-05, 780.0: 1.499e-05, 781.0: 1.398728e-05, 782.0: 1.305155e-05, 783.0: 1.217818e-05, 784.0: 1.136254e-05, 785.0: 1.06e-05, 786.0: 9.885877e-06, 787.0: 9.217304e-06, 788.0: 8.592362e-06, 789.0: 8.009133e-06, 790.0: 7.4657e-06, 791.0: 6.959567e-06, 792.0: 6.487995e-06, 793.0: 6.048699e-06, 794.0: 5.639396e-06, 795.0: 5.2578e-06, 796.0: 4.901771e-06, 797.0: 4.56972e-06, 798.0: 4.260194e-06, 799.0: 3.971739e-06, 800.0: 3.7029e-06, 801.0: 3.452163e-06, 802.0: 3.218302e-06, 803.0: 3.0003e-06, 804.0: 2.797139e-06, 805.0: 2.6078e-06, 806.0: 2.43122e-06, 807.0: 2.266531e-06, 808.0: 2.113013e-06, 809.0: 1.969943e-06, 810.0: 1.8366e-06, 811.0: 1.71223e-06, 812.0: 1.596228e-06, 813.0: 1.48809e-06, 814.0: 1.387314e-06, 815.0: 1.2934e-06, 816.0: 1.20582e-06, 817.0: 1.124143e-06, 818.0: 1.048009e-06, 819.0: 9.77058e-07, 820.0: 9.1093e-07, 821.0: 8.49251e-07, 822.0: 7.91721e-07, 823.0: 7.3809e-07, 824.0: 6.8811e-07, 825.0: 6.4153e-07, 826.0: 5.9809e-07, 827.0: 5.57575e-07, 828.0: 5.19808e-07, 829.0: 4.84612e-07, 830.0: 4.5181e-07}, u'z_bar': {360.0: 0.0006061, 361.0: 0.0006808792, 362.0: 0.0007651456, 363.0: 0.0008600124, 364.0: 0.0009665928, 365.0: 0.001086, 366.0: 0.001220586, 367.0: 0.001372729, 368.0: 0.001543579, 369.0: 0.001734286, 370.0: 0.001946, 371.0: 0.002177777, 372.0: 0.002435809, 373.0: 0.002731953, 374.0: 0.003078064, 375.0: 0.003486, 376.0: 0.003975227, 377.0: 0.00454088, 378.0: 0.00515832, 379.0: 0.005802907, 380.0: 0.006450001, 381.0: 0.007083216, 382.0: 0.007745488, 383.0: 0.008501152, 384.0: 0.009414544, 385.0: 0.01054999, 386.0: 0.0119658, 387.0: 0.01365587, 388.0: 0.01558805, 389.0: 0.01773015, 390.0: 0.02005001, 391.0: 0.02251136, 392.0: 0.02520288, 393.0: 0.02827972, 394.0: 0.03189704, 395.0: 0.03621, 396.0: 0.04143771, 397.0: 0.04750372, 398.0: 0.05411988, 399.0: 0.06099803, 400.0: 0.06785001, 401.0: 0.07448632, 402.0: 0.08136156, 403.0: 0.08915364, 404.0: 0.09854048, 405.0: 0.1102, 406.0: 0.1246133, 407.0: 0.1417017, 408.0: 0.1613035, 409.0: 0.1832568, 410.0: 0.2074, 411.0: 0.2336921, 412.0: 0.2626114, 413.0: 0.2947746, 414.0: 0.3307985, 415.0: 0.3713, 416.0: 0.4162091, 417.0: 0.4654642, 418.0: 0.5196948, 419.0: 0.5795303, 420.0: 0.6456, 421.0: 0.7184838, 422.0: 0.7967133, 423.0: 0.8778459, 424.0: 0.959439, 425.0: 1.0390501, 426.0: 1.1153673, 427.0: 1.1884971, 428.0: 1.2581233, 429.0: 1.3239296, 430.0: 1.3856, 431.0: 1.4426352, 432.0: 1.4948035, 433.0: 1.5421903, 434.0: 1.5848807, 435.0: 1.62296, 436.0: 1.6564048, 437.0: 1.6852959, 438.0: 1.7098745, 439.0: 1.7303821, 440.0: 1.74706, 441.0: 1.7600446, 442.0: 1.7696233, 443.0: 1.7762637, 444.0: 1.7804334, 445.0: 1.7826, 446.0: 1.7829682, 447.0: 1.7816998, 448.0: 1.7791982, 449.0: 1.7758671, 450.0: 1.77211, 451.0: 1.7682589, 452.0: 1.764039, 453.0: 1.7589438, 454.0: 1.7524663, 455.0: 1.7441, 456.0: 1.7335595, 457.0: 1.7208581, 458.0: 1.7059369, 459.0: 1.6887372, 460.0: 1.6692, 461.0: 1.6475287, 462.0: 1.6234127, 463.0: 1.5960223, 464.0: 1.564528, 465.0: 1.5281, 466.0: 1.4861114, 467.0: 1.4395215, 468.0: 1.3898799, 469.0: 1.3387362, 470.0: 1.28764, 471.0: 1.2374223, 472.0: 1.1878243, 473.0: 1.1387611, 474.0: 1.090148, 475.0: 1.0419, 476.0: 0.9941976, 477.0: 0.9473473, 478.0: 0.9014531, 479.0: 0.8566193, 480.0: 0.8129501, 481.0: 0.7705173, 482.0: 0.7294448, 483.0: 0.6899136, 484.0: 0.6521049, 485.0: 0.6162, 486.0: 0.5823286, 487.0: 0.5504162, 488.0: 0.5203376, 489.0: 0.4919673, 490.0: 0.46518, 491.0: 0.4399246, 492.0: 0.4161836, 493.0: 0.3938822, 494.0: 0.3729459, 495.0: 0.3533, 496.0: 0.3348578, 497.0: 0.3175521, 498.0: 0.3013375, 499.0: 0.2861686, 500.0: 0.272, 501.0: 0.2588171, 502.0: 0.2464838, 503.0: 0.2347718, 504.0: 0.2234533, 505.0: 0.2123, 506.0: 0.2011692, 507.0: 0.1901196, 508.0: 0.1792254, 509.0: 0.1685608, 510.0: 0.1582, 511.0: 0.1481383, 512.0: 0.1383758, 513.0: 0.1289942, 514.0: 0.1200751, 515.0: 0.1117, 516.0: 0.1039048, 517.0: 0.09666748, 518.0: 0.08998272, 519.0: 0.08384531, 520.0: 0.07824999, 521.0: 0.07320899, 522.0: 0.06867816, 523.0: 0.06456784, 524.0: 0.06078835, 525.0: 0.05725001, 526.0: 0.05390435, 527.0: 0.05074664, 528.0: 0.04775276, 529.0: 0.04489859, 530.0: 0.04216, 531.0: 0.03950728, 532.0: 0.03693564, 533.0: 0.03445836, 534.0: 0.03208872, 535.0: 0.02984, 536.0: 0.02771181, 537.0: 0.02569444, 538.0: 0.02378716, 539.0: 0.02198925, 540.0: 0.0203, 541.0: 0.01871805, 542.0: 0.01724036, 543.0: 0.01586364, 544.0: 0.01458461, 545.0: 0.0134, 546.0: 0.01230723, 547.0: 0.01130188, 548.0: 0.01037792, 549.0: 0.009529306, 550.0: 0.008749999, 551.0: 0.0080352, 552.0: 0.0073816, 553.0: 0.0067854, 554.0: 0.0062428, 555.0: 0.005749999, 556.0: 0.0053036, 557.0: 0.0048998, 558.0: 0.0045342, 559.0: 0.0042024, 560.0: 0.0039, 561.0: 0.0036232, 562.0: 0.0033706, 563.0: 0.0031414, 564.0: 0.0029348, 565.0: 0.002749999, 566.0: 0.0025852, 567.0: 0.0024386, 568.0: 0.0023094, 569.0: 0.0021968, 570.0: 0.0021, 571.0: 0.002017733, 572.0: 0.0019482, 573.0: 0.0018898, 574.0: 0.001840933, 575.0: 0.0018, 576.0: 0.001766267, 577.0: 0.0017378, 578.0: 0.0017112, 579.0: 0.001683067, 580.0: 0.001650001, 581.0: 0.001610133, 582.0: 0.0015644, 583.0: 0.0015136, 584.0: 0.001458533, 585.0: 0.0014, 586.0: 0.001336667, 587.0: 0.00127, 588.0: 0.001205, 589.0: 0.001146667, 590.0: 0.0011, 591.0: 0.0010688, 592.0: 0.0010494, 593.0: 0.0010356, 594.0: 0.0010212, 595.0: 0.001, 596.0: 0.00096864, 597.0: 0.00092992, 598.0: 0.00088688, 599.0: 0.00084256, 600.0: 0.0008, 601.0: 0.00076096, 602.0: 0.00072368, 603.0: 0.00068592, 604.0: 0.00064544, 605.0: 0.0006, 606.0: 0.0005478667, 607.0: 0.0004916, 608.0: 0.0004354, 609.0: 0.0003834667, 610.0: 0.00034, 611.0: 0.0003072533, 612.0: 0.00028316, 613.0: 0.00026544, 614.0: 0.0002518133, 615.0: 0.00024, 616.0: 0.0002295467, 617.0: 0.00022064, 618.0: 0.00021196, 619.0: 0.0002021867, 620.0: 0.00019, 621.0: 0.0001742133, 622.0: 0.00015564, 623.0: 0.00013596, 624.0: 0.0001168533, 625.0: 0.0001, 626.0: 8.613333e-05, 627.0: 7.46e-05, 628.0: 6.5e-05, 629.0: 5.693333e-05, 630.0: 4.999999e-05, 631.0: 4.416e-05, 632.0: 3.948e-05, 633.0: 3.572e-05, 634.0: 3.264e-05, 635.0: 3e-05, 636.0: 2.765333e-05, 637.0: 2.556e-05, 638.0: 2.364e-05, 639.0: 2.181333e-05, 640.0: 2e-05, 641.0: 1.813333e-05, 642.0: 1.62e-05, 643.0: 1.42e-05, 644.0: 1.213333e-05, 645.0: 1e-05, 646.0: 7.733333e-06, 647.0: 5.4e-06, 648.0: 3.2e-06, 649.0: 1.333333e-06, 650.0: 0.0, 651.0: 0.0, 652.0: 0.0, 653.0: 0.0, 654.0: 0.0, 655.0: 0.0, 656.0: 0.0, 657.0: 0.0, 658.0: 0.0, 659.0: 0.0, 660.0: 0.0, 661.0: 0.0, 662.0: 0.0, 663.0: 0.0, 664.0: 0.0, 665.0: 0.0, 666.0: 0.0, 667.0: 0.0, 668.0: 0.0, 669.0: 0.0, 670.0: 0.0, 671.0: 0.0, 672.0: 0.0, 673.0: 0.0, 674.0: 0.0, 675.0: 0.0, 676.0: 0.0, 677.0: 0.0, 678.0: 0.0, 679.0: 0.0, 680.0: 0.0, 681.0: 0.0, 682.0: 0.0, 683.0: 0.0, 684.0: 0.0, 685.0: 0.0, 686.0: 0.0, 687.0: 0.0, 688.0: 0.0, 689.0: 0.0, 690.0: 0.0, 691.0: 0.0, 692.0: 0.0, 693.0: 0.0, 694.0: 0.0, 695.0: 0.0, 696.0: 0.0, 697.0: 0.0, 698.0: 0.0, 699.0: 0.0, 700.0: 0.0, 701.0: 0.0, 702.0: 0.0, 703.0: 0.0, 704.0: 0.0, 705.0: 0.0, 706.0: 0.0, 707.0: 0.0, 708.0: 0.0, 709.0: 0.0, 710.0: 0.0, 711.0: 0.0, 712.0: 0.0, 713.0: 0.0, 714.0: 0.0, 715.0: 0.0, 716.0: 0.0, 717.0: 0.0, 718.0: 0.0, 719.0: 0.0, 720.0: 0.0, 721.0: 0.0, 722.0: 0.0, 723.0: 0.0, 724.0: 0.0, 725.0: 0.0, 726.0: 0.0, 727.0: 0.0, 728.0: 0.0, 729.0: 0.0, 730.0: 0.0, 731.0: 0.0, 732.0: 0.0, 733.0: 0.0, 734.0: 0.0, 735.0: 0.0, 736.0: 0.0, 737.0: 0.0, 738.0: 0.0, 739.0: 0.0, 740.0: 0.0, 741.0: 0.0, 742.0: 0.0, 743.0: 0.0, 744.0: 0.0, 745.0: 0.0, 746.0: 0.0, 747.0: 0.0, 748.0: 0.0, 749.0: 0.0, 750.0: 0.0, 751.0: 0.0, 752.0: 0.0, 753.0: 0.0, 754.0: 0.0, 755.0: 0.0, 756.0: 0.0, 757.0: 0.0, 758.0: 0.0, 759.0: 0.0, 760.0: 0.0, 761.0: 0.0, 762.0: 0.0, 763.0: 0.0, 764.0: 0.0, 765.0: 0.0, 766.0: 0.0, 767.0: 0.0, 768.0: 0.0, 769.0: 0.0, 770.0: 0.0, 771.0: 0.0, 772.0: 0.0, 773.0: 0.0, 774.0: 0.0, 775.0: 0.0, 776.0: 0.0, 777.0: 0.0, 778.0: 0.0, 779.0: 0.0, 780.0: 0.0, 781.0: 0.0, 782.0: 0.0, 783.0: 0.0, 784.0: 0.0, 785.0: 0.0, 786.0: 0.0, 787.0: 0.0, 788.0: 0.0, 789.0: 0.0, 790.0: 0.0, 791.0: 0.0, 792.0: 0.0, 793.0: 0.0, 794.0: 0.0, 795.0: 0.0, 796.0: 0.0, 797.0: 0.0, 798.0: 0.0, 799.0: 0.0, 800.0: 0.0, 801.0: 0.0, 802.0: 0.0, 803.0: 0.0, 804.0: 0.0, 805.0: 0.0, 806.0: 0.0, 807.0: 0.0, 808.0: 0.0, 809.0: 0.0, 810.0: 0.0, 811.0: 0.0, 812.0: 0.0, 813.0: 0.0, 814.0: 0.0, 815.0: 0.0, 816.0: 0.0, 817.0: 0.0, 818.0: 0.0, 819.0: 0.0, 820.0: 0.0, 821.0: 0.0, 822.0: 0.0, 823.0: 0.0, 824.0: 0.0, 825.0: 0.0, 826.0: 0.0, 827.0: 0.0, 828.0: 0.0, 829.0: 0.0, 830.0: 0.0}}, 'CIE 1931 2$^\circ$ Standard Observer'))[source]

Returns the CIE UCS colourspace uv chromaticity coordinates from given correlated colour temperature \(T_{cp}\), \(\Delta_{uv}\) and colour matching functions using Ohno (2013) method.

Parameters:
  • CCT (numeric) – Correlated colour temperature \(T_{cp}\).
  • D_uv (numeric, optional) – \(\Delta_{uv}\).
  • cmfs (XYZ_ColourMatchingFunctions, optional) – Standard observer colour matching functions.
Returns:

CIE UCS colourspace uv chromaticity coordinates.

Return type:

ndarray

References

[4]Ohno, Y. (2014). Practical Use and Calculation of CCT and Duv. LEUKOS, 10(1), 47–55. doi:10.1080/15502724.2014.839020

Examples

>>> from colour import STANDARD_OBSERVERS_CMFS
>>> cmfs = STANDARD_OBSERVERS_CMFS['CIE 1931 2 Degree Standard Observer']
>>> CCT = 6507.4342201047066
>>> D_uv = 0.003223690901513
>>> CCT_to_uv_Ohno2013(CCT, D_uv, cmfs)  
array([ 0.1977999...,  0.3122004...])
colour.temperature.cct.uv_to_CCT_Robertson1968(uv)[source]

Returns the correlated colour temperature \(T_{cp}\) and \(\Delta_{uv}\) from given CIE UCS colourspace uv chromaticity coordinates using Roberston (1968) method.

Parameters:uv (array_like) – CIE UCS colourspace uv chromaticity coordinates.
Returns:Correlated colour temperature \(T_{cp}\), \(\Delta_{uv}\).
Return type:ndarray

References

[5]Wyszecki, G., & Stiles, W. S. (2000). DISTRIBUTION TEMPERATURE, COLOR TEMPERATURE, AND CORRELATED COLOR TEMPERATURE. In Color Science: Concepts and Methods, Quantitative Data and Formulae (pp. 224–229). Wiley. ISBN:978-0471399186
[6]Adobe Systems. (2013). Adobe DNG Software Development Kit (SDK) - 1.3.0.0 - dng_sdk_1_3/dng_sdk/source/dng_temperature.cpp:: dng_temperature::Set_xy_coord. Retrieved from https://www.adobe.com/support/downloads/dng/dng_sdk.html

Examples

>>> uv = np.array([0.193741375998230, 0.315221043940594])
>>> uv_to_CCT_Robertson1968(uv)  
array([  6.5000162...e+03,   8.3333289...e-03])
colour.temperature.cct.CCT_to_uv_Robertson1968(CCT, D_uv=0)[source]

Returns the CIE UCS colourspace uv chromaticity coordinates from given correlated colour temperature \(T_{cp}\) and \(\Delta_{uv}\) using Roberston (1968) method.

Parameters:
  • CCT (numeric) – Correlated colour temperature \(T_{cp}\).
  • D_uv (numeric) – \(\Delta_{uv}\).
Returns:

CIE UCS colourspace uv chromaticity coordinates.

Return type:

ndarray

References

[7]Wyszecki, G., & Stiles, W. S. (2000). DISTRIBUTION TEMPERATURE, COLOR TEMPERATURE, AND CORRELATED COLOR TEMPERATURE. In Color Science: Concepts and Methods, Quantitative Data and Formulae (pp. 224–229). Wiley. ISBN:978-0471399186
[8]Adobe Systems. (2013). Adobe DNG Software Development Kit (SDK) - 1.3.0.0 - dng_sdk_1_3/dng_sdk/source/dng_temperature.cpp:: dng_temperature::xy_coord. Retrieved from https://www.adobe.com/support/downloads/dng/dng_sdk.html

Examples

>>> CCT = 6500.0081378199056
>>> D_uv = 0.008333331244225
>>> CCT_to_uv_Robertson1968(CCT, D_uv)  
array([ 0.1937413...,  0.3152210...])
colour.temperature.cct.CCT_to_uv_Krystek1985(CCT)[source]

Returns the CIE UCS colourspace uv chromaticity coordinates from given correlated colour temperature \(T_{cp}\) using Krystek (1985) method.

Parameters:CCT (numeric) – Correlated colour temperature \(T_{cp}\).
Returns:CIE UCS colourspace uv chromaticity coordinates.
Return type:ndarray

Notes

  • Krystek (1985) method computations are valid for correlated colour temperature \(T_{cp}\) in domain [1000, 15000].

References

[9]Krystek, M. (1985). An algorithm to calculate correlated colour temperature. Color Research & Application, 10(1), 38–40. doi:10.1002/col.5080100109

Examples

>>> CCT_to_uv_Krystek1985(6504.38938305)  
array([ 0.1837669...,  0.3093443...])
colour.temperature.cct.UV_TO_CCT_METHODS = CaseInsensitiveMapping({u'Ohno 2013': <function uv_to_CCT_Ohno2013>, u'robertson1968': <function uv_to_CCT_Robertson1968>, u'ohno2013': <function uv_to_CCT_Ohno2013>, u'Robertson 1968': <function uv_to_CCT_Robertson1968>})

Supported CIE UCS colourspace uv chromaticity coordinates to correlated colour temperature \(T_{cp}\) computation methods.

UV_TO_CCT_METHODS : CaseInsensitiveMapping
{‘Ohno 2013’, ‘Robertson 1968’}

Aliases:

  • ‘ohno2013’: ‘Ohno 2013’
  • ‘robertson1968’: ‘Robertson 1968’
colour.temperature.cct.uv_to_CCT(uv, method=u'Ohno 2013', **kwargs)[source]

Returns the correlated colour temperature \(T_{cp}\) and \(\Delta_{uv}\) from given CIE UCS colourspace uv chromaticity coordinates using given method.

Parameters:
  • uv (array_like) – CIE UCS colourspace uv chromaticity coordinates.
  • method (unicode, optional) – {‘Ohno 2013’, ‘Robertson 1968’}, Computation method.
Other Parameters:
 
Returns:

Correlated colour temperature \(T_{cp}\), \(\Delta_{uv}\).

Return type:

ndarray

Examples

>>> from colour import STANDARD_OBSERVERS_CMFS
>>> cmfs = STANDARD_OBSERVERS_CMFS['CIE 1931 2 Degree Standard Observer']
>>> uv = np.array([0.1978, 0.3122])
>>> uv_to_CCT(uv, cmfs=cmfs)  
array([  6.5075128...e+03,   3.2233587...e-03])
colour.temperature.cct.CCT_TO_UV_METHODS = CaseInsensitiveMapping({u'Ohno 2013': <function CCT_to_uv_Ohno2013>, u'Krystek 1985': <function CCT_to_uv_Krystek1985>, u'robertson1968': <function CCT_to_uv_Robertson1968>, u'ohno2013': <function CCT_to_uv_Ohno2013>, u'Robertson 1968': <function CCT_to_uv_Robertson1968>})

Supported correlated colour temperature \(T_{cp}\) to CIE UCS colourspace uv chromaticity coordinates computation methods.

CCT_TO_UV_METHODS : CaseInsensitiveMapping
{‘Ohno 2013’, ‘Robertson 1968’, ‘Krystek 1985}

Aliases:

  • ‘ohno2013’: ‘Ohno 2013’
  • ‘robertson1968’: ‘Robertson 1968’
colour.temperature.cct.CCT_to_uv(CCT, method=u'Ohno 2013', **kwargs)[source]

Returns the CIE UCS colourspace uv chromaticity coordinates from given correlated colour temperature \(T_{cp}\) using given method.

Parameters:
  • CCT (numeric) – Correlated colour temperature \(T_{cp}\).
  • method (unicode, optional) – {‘Ohno 2013’, ‘Robertson 1968’, ‘Krystek 1985}, Computation method.
Other Parameters:
 
  • D_uv (numeric) – {CCT_to_uv_Ohno2013, CCT_to_uv_Robertson1968()}, \(\Delta_{uv}\).
  • cmfs (XYZ_ColourMatchingFunctions, optional) – {CCT_to_uv_Ohno2013()}, Standard observer colour matching functions.
Returns:

CIE UCS colourspace uv chromaticity coordinates.

Return type:

ndarray

Examples

>>> from colour import STANDARD_OBSERVERS_CMFS
>>> cmfs = STANDARD_OBSERVERS_CMFS['CIE 1931 2 Degree Standard Observer']
>>> CCT = 6507.4342201047066
>>> D_uv = 0.003223690901513
>>> CCT_to_uv(CCT, D_uv=D_uv, cmfs=cmfs)  
array([ 0.1977999...,  0.3122004...])
colour.temperature.cct.xy_to_CCT_McCamy1992(xy)[source]

Returns the correlated colour temperature \(T_{cp}\) from given CIE XYZ tristimulus values xy chromaticity coordinates using McCamy (1992) method.

Parameters:xy (array_like) – xy chromaticity coordinates.
Returns:Correlated colour temperature \(T_{cp}\).
Return type:numeric or ndarray

References

[10]Wikipedia. (n.d.). Approximation. Retrieved June 28, 2014, from http://en.wikipedia.org/wiki/Color_temperature#Approximation

Examples

>>> xy = np.array([0.31270, 0.32900])
>>> xy_to_CCT_McCamy1992(xy)  
6505.0805913...
colour.temperature.cct.xy_to_CCT_Hernandez1999(xy)[source]

Returns the correlated colour temperature \(T_{cp}\) from given CIE XYZ tristimulus values xy chromaticity coordinates using Hernandez-Andres et al. (1999) method.

Parameters:xy (array_like) – xy chromaticity coordinates.
Returns:Correlated colour temperature \(T_{cp}\).
Return type:numeric

References

[11]Hernández-Andrés, J., Lee, R. L., & Romero, J. (1999). Calculating correlated color temperatures across the entire gamut of daylight and skylight chromaticities. Applied Optics, 38(27), 5703–5709. doi:10.1364/AO.38.005703

Examples

>>> xy = np.array([0.31270, 0.32900])
>>> xy_to_CCT_Hernandez1999(xy)  
6500.7420431...
colour.temperature.cct.CCT_to_xy_Kang2002(CCT)[source]

Returns the CIE XYZ tristimulus values xy chromaticity coordinates from given correlated colour temperature \(T_{cp}\) using Kang et al. (2002) method.

Parameters:CCT (numeric or array_like) – Correlated colour temperature \(T_{cp}\).
Returns:xy chromaticity coordinates.
Return type:ndarray
Raises:ValueError – If the correlated colour temperature is not in appropriate domain.

References

[12]Kang, B., Moon, O., Hong, C., Lee, H., Cho, B., & Kim, Y. (2002). Design of advanced color: Temperature control system for HDTV applications. Journal of the Korean …, 41(6), 865–871. Retrieved from http://cat.inist.fr/?aModele=afficheN&cpsidt=14448733

Examples

>>> CCT_to_xy_Kang2002(6504.38938305)  
array([ 0.313426...,  0.3235959...])
colour.temperature.cct.CCT_to_xy_CIE_D(CCT)[source]

Converts from the correlated colour temperature \(T_{cp}\) of a CIE Illuminant D Series to the chromaticity of that CIE Illuminant D Series illuminant.

Parameters:CCT (numeric or array_like) – Correlated colour temperature \(T_{cp}\).
Returns:xy chromaticity coordinates.
Return type:ndarray
Raises:ValueError – If the correlated colour temperature is not in appropriate domain.

References

[13]Wyszecki, G., & Stiles, W. S. (2000). CIE Method of Calculating D-Illuminants. In Color Science: Concepts and Methods, Quantitative Data and Formulae (pp. 145–146). Wiley. ISBN:978-0471399186

Examples

>>> CCT_to_xy_CIE_D(6504.38938305)  
array([ 0.3127077...,  0.3291128...])
colour.temperature.cct.XY_TO_CCT_METHODS = CaseInsensitiveMapping({u'hernandez1999': <function xy_to_CCT_Hernandez1999>, u'Hernandez 1999': <function xy_to_CCT_Hernandez1999>, u'McCamy 1992': <function xy_to_CCT_McCamy1992>, u'mccamy1992': <function xy_to_CCT_McCamy1992>})

Supported CIE XYZ tristimulus values xy chromaticity coordinates to correlated colour temperature \(T_{cp}\) computation methods.

XY_TO_CCT_METHODS : CaseInsensitiveMapping
{‘McCamy 1992’, ‘Hernandez 1999’}

Aliases:

  • ‘mccamy1992’: ‘McCamy 1992’
  • ‘hernandez1999’: ‘Hernandez 1999’
colour.temperature.cct.xy_to_CCT(xy, method=u'McCamy 1992')[source]

Returns the correlated colour temperature \(T_{cp}\) from given CIE XYZ tristimulus values xy chromaticity coordinates using given method.

Parameters:
  • xy (array_like) – xy chromaticity coordinates.
  • method (unicode, optional) – {‘McCamy 1992’, ‘Hernandez 1999’}, Computation method.
Returns:

Correlated colour temperature \(T_{cp}\).

Return type:

numeric or ndarray

colour.temperature.cct.CCT_TO_XY_METHODS = CaseInsensitiveMapping({u'cie_d': <function CCT_to_xy_CIE_D>, u'CIE Illuminant D Series': <function CCT_to_xy_CIE_D>, u'kang2002': <function CCT_to_xy_Kang2002>, u'Kang 2002': <function CCT_to_xy_Kang2002>})

Supported correlated colour temperature \(T_{cp}\) to CIE XYZ tristimulus values xy chromaticity coordinates computation methods.

CCT_TO_XY_METHODS : CaseInsensitiveMapping
{‘Kang 2002’, ‘CIE Illuminant D Series’}

Aliases:

  • ‘kang2002’: ‘Kang 2002’
  • ‘cie_d’: ‘Hernandez 1999’
colour.temperature.cct.CCT_to_xy(CCT, method=u'Kang 2002')[source]

Returns the CIE XYZ tristimulus values xy chromaticity coordinates from given correlated colour temperature \(T_{cp}\) using given method.

Parameters:
  • CCT (numeric or array_like) – Correlated colour temperature \(T_{cp}\).
  • method (unicode, optional) – {‘Kang 2002’, ‘CIE Illuminant D Series’}, Computation method.
Returns:

xy chromaticity coordinates.

Return type:

ndarray