colour.sd_rayleigh_scattering

colour.sd_rayleigh_scattering(shape=SpectralShape(360, 780, 1), CO2_concentration=300, temperature=288.15, pressure=101325, latitude=0, altitude=0, avogadro_constant=6.02214179e+23, n_s=<function air_refraction_index_Bodhaine1999>, F_air=<function F_air_Bodhaine1999>)[source]

Returns the Rayleigh spectral distribution for given spectral shape.

Parameters:
  • shape (SpectralShape, optional) – Spectral shape used to create the Rayleigh scattering spectral distribution.
  • CO2_concentration (numeric or array_like, optional) – \(CO_2\) concentration in parts per million (ppm).
  • temperature (numeric or array_like, optional) – Air temperature \(T[K]\) in kelvin degrees.
  • pressure (numeric or array_like) – Surface pressure \(P\) of the measurement site.
  • latitude (numeric or array_like, optional) – Latitude of the site in degrees.
  • altitude (numeric or array_like, optional) – Altitude of the site in meters.
  • avogadro_constant (numeric or array_like, optional) – Avogadro’s number (molecules \(mol^{-1}\)).
  • n_s (object) – Air refraction index \(n_s\) computation method.
  • F_air (object) – \((6+3_p)/(6-7_p)\), the depolarisation term \(F(air)\) or King Factor computation method.
Returns:

Rayleigh optical depth spectral distribution.

Return type:

SpectralDistribution

References

[Bodhaine1999a], [Wikipedia2001c]

Examples

>>> from colour.utilities import numpy_print_options
>>> with numpy_print_options(suppress=True):
...     sd_rayleigh_scattering()  # doctest: +ELLIPSIS
SpectralDistribution([[ 360.        ,    0.5991013...],
                      [ 361.        ,    0.5921706...],
                      [ 362.        ,    0.5853410...],
                      [ 363.        ,    0.5786105...],
                      [ 364.        ,    0.5719774...],
                      [ 365.        ,    0.5654401...],
                      [ 366.        ,    0.5589968...],
                      [ 367.        ,    0.5526460...],
                      [ 368.        ,    0.5463860...],
                      [ 369.        ,    0.5402153...],
                      [ 370.        ,    0.5341322...],
                      [ 371.        ,    0.5281354...],
                      [ 372.        ,    0.5222234...],
                      [ 373.        ,    0.5163946...],
                      [ 374.        ,    0.5106476...],
                      [ 375.        ,    0.5049812...],
                      [ 376.        ,    0.4993939...],
                      [ 377.        ,    0.4938844...],
                      [ 378.        ,    0.4884513...],
                      [ 379.        ,    0.4830934...],
                      [ 380.        ,    0.4778095...],
                      [ 381.        ,    0.4725983...],
                      [ 382.        ,    0.4674585...],
                      [ 383.        ,    0.4623891...],
                      [ 384.        ,    0.4573889...],
                      [ 385.        ,    0.4524566...],
                      [ 386.        ,    0.4475912...],
                      [ 387.        ,    0.4427917...],
                      [ 388.        ,    0.4380568...],
                      [ 389.        ,    0.4333856...],
                      [ 390.        ,    0.4287771...],
                      [ 391.        ,    0.4242302...],
                      [ 392.        ,    0.4197439...],
                      [ 393.        ,    0.4153172...],
                      [ 394.        ,    0.4109493...],
                      [ 395.        ,    0.4066391...],
                      [ 396.        ,    0.4023857...],
                      [ 397.        ,    0.3981882...],
                      [ 398.        ,    0.3940458...],
                      [ 399.        ,    0.3899576...],
                      [ 400.        ,    0.3859227...],
                      [ 401.        ,    0.3819402...],
                      [ 402.        ,    0.3780094...],
                      [ 403.        ,    0.3741295...],
                      [ 404.        ,    0.3702996...],
                      [ 405.        ,    0.366519 ...],
                      [ 406.        ,    0.3627868...],
                      [ 407.        ,    0.3591025...],
                      [ 408.        ,    0.3554651...],
                      [ 409.        ,    0.3518740...],
                      [ 410.        ,    0.3483286...],
                      [ 411.        ,    0.344828 ...],
                      [ 412.        ,    0.3413716...],
                      [ 413.        ,    0.3379587...],
                      [ 414.        ,    0.3345887...],
                      [ 415.        ,    0.3312609...],
                      [ 416.        ,    0.3279747...],
                      [ 417.        ,    0.3247294...],
                      [ 418.        ,    0.3215245...],
                      [ 419.        ,    0.3183593...],
                      [ 420.        ,    0.3152332...],
                      [ 421.        ,    0.3121457...],
                      [ 422.        ,    0.3090962...],
                      [ 423.        ,    0.3060841...],
                      [ 424.        ,    0.3031088...],
                      [ 425.        ,    0.3001699...],
                      [ 426.        ,    0.2972668...],
                      [ 427.        ,    0.2943989...],
                      [ 428.        ,    0.2915657...],
                      [ 429.        ,    0.2887668...],
                      [ 430.        ,    0.2860017...],
                      [ 431.        ,    0.2832697...],
                      [ 432.        ,    0.2805706...],
                      [ 433.        ,    0.2779037...],
                      [ 434.        ,    0.2752687...],
                      [ 435.        ,    0.2726650...],
                      [ 436.        ,    0.2700922...],
                      [ 437.        ,    0.2675500...],
                      [ 438.        ,    0.2650377...],
                      [ 439.        ,    0.2625551...],
                      [ 440.        ,    0.2601016...],
                      [ 441.        ,    0.2576770...],
                      [ 442.        ,    0.2552807...],
                      [ 443.        ,    0.2529124...],
                      [ 444.        ,    0.2505716...],
                      [ 445.        ,    0.2482581...],
                      [ 446.        ,    0.2459713...],
                      [ 447.        ,    0.2437110...],
                      [ 448.        ,    0.2414768...],
                      [ 449.        ,    0.2392683...],
                      [ 450.        ,    0.2370851...],
                      [ 451.        ,    0.2349269...],
                      [ 452.        ,    0.2327933...],
                      [ 453.        ,    0.2306841...],
                      [ 454.        ,    0.2285989...],
                      [ 455.        ,    0.2265373...],
                      [ 456.        ,    0.2244990...],
                      [ 457.        ,    0.2224838...],
                      [ 458.        ,    0.2204912...],
                      [ 459.        ,    0.2185211...],
                      [ 460.        ,    0.2165730...],
                      [ 461.        ,    0.2146467...],
                      [ 462.        ,    0.2127419...],
                      [ 463.        ,    0.2108583...],
                      [ 464.        ,    0.2089957...],
                      [ 465.        ,    0.2071536...],
                      [ 466.        ,    0.2053320...],
                      [ 467.        ,    0.2035304...],
                      [ 468.        ,    0.2017487...],
                      [ 469.        ,    0.1999865...],
                      [ 470.        ,    0.1982436...],
                      [ 471.        ,    0.1965198...],
                      [ 472.        ,    0.1948148...],
                      [ 473.        ,    0.1931284...],
                      [ 474.        ,    0.1914602...],
                      [ 475.        ,    0.1898101...],
                      [ 476.        ,    0.1881779...],
                      [ 477.        ,    0.1865633...],
                      [ 478.        ,    0.1849660...],
                      [ 479.        ,    0.1833859...],
                      [ 480.        ,    0.1818227...],
                      [ 481.        ,    0.1802762...],
                      [ 482.        ,    0.1787463...],
                      [ 483.        ,    0.1772326...],
                      [ 484.        ,    0.1757349...],
                      [ 485.        ,    0.1742532...],
                      [ 486.        ,    0.1727871...],
                      [ 487.        ,    0.1713365...],
                      [ 488.        ,    0.1699011...],
                      [ 489.        ,    0.1684809...],
                      [ 490.        ,    0.1670755...],
                      [ 491.        ,    0.1656848...],
                      [ 492.        ,    0.1643086...],
                      [ 493.        ,    0.1629468...],
                      [ 494.        ,    0.1615991...],
                      [ 495.        ,    0.1602654...],
                      [ 496.        ,    0.1589455...],
                      [ 497.        ,    0.1576392...],
                      [ 498.        ,    0.1563464...],
                      [ 499.        ,    0.1550668...],
                      [ 500.        ,    0.1538004...],
                      [ 501.        ,    0.1525470...],
                      [ 502.        ,    0.1513063...],
                      [ 503.        ,    0.1500783...],
                      [ 504.        ,    0.1488628...],
                      [ 505.        ,    0.1476597...],
                      [ 506.        ,    0.1464687...],
                      [ 507.        ,    0.1452898...],
                      [ 508.        ,    0.1441228...],
                      [ 509.        ,    0.1429675...],
                      [ 510.        ,    0.1418238...],
                      [ 511.        ,    0.1406916...],
                      [ 512.        ,    0.1395707...],
                      [ 513.        ,    0.1384610...],
                      [ 514.        ,    0.1373624...],
                      [ 515.        ,    0.1362747...],
                      [ 516.        ,    0.1351978...],
                      [ 517.        ,    0.1341316...],
                      [ 518.        ,    0.1330759...],
                      [ 519.        ,    0.1320306...],
                      [ 520.        ,    0.1309956...],
                      [ 521.        ,    0.1299707...],
                      [ 522.        ,    0.1289559...],
                      [ 523.        ,    0.1279511...],
                      [ 524.        ,    0.1269560...],
                      [ 525.        ,    0.1259707...],
                      [ 526.        ,    0.1249949...],
                      [ 527.        ,    0.1240286...],
                      [ 528.        ,    0.1230717...],
                      [ 529.        ,    0.1221240...],
                      [ 530.        ,    0.1211855...],
                      [ 531.        ,    0.1202560...],
                      [ 532.        ,    0.1193354...],
                      [ 533.        ,    0.1184237...],
                      [ 534.        ,    0.1175207...],
                      [ 535.        ,    0.1166263...],
                      [ 536.        ,    0.1157404...],
                      [ 537.        ,    0.1148630...],
                      [ 538.        ,    0.1139939...],
                      [ 539.        ,    0.1131331...],
                      [ 540.        ,    0.1122804...],
                      [ 541.        ,    0.1114357...],
                      [ 542.        ,    0.1105990...],
                      [ 543.        ,    0.1097702...],
                      [ 544.        ,    0.1089492...],
                      [ 545.        ,    0.1081358...],
                      [ 546.        ,    0.1073301...],
                      [ 547.        ,    0.1065319...],
                      [ 548.        ,    0.1057411...],
                      [ 549.        ,    0.1049577...],
                      [ 550.        ,    0.1041815...],
                      [ 551.        ,    0.1034125...],
                      [ 552.        ,    0.1026507...],
                      [ 553.        ,    0.1018958...],
                      [ 554.        ,    0.1011480...],
                      [ 555.        ,    0.1004070...],
                      [ 556.        ,    0.0996728...],
                      [ 557.        ,    0.0989453...],
                      [ 558.        ,    0.0982245...],
                      [ 559.        ,    0.0975102...],
                      [ 560.        ,    0.0968025...],
                      [ 561.        ,    0.0961012...],
                      [ 562.        ,    0.0954062...],
                      [ 563.        ,    0.0947176...],
                      [ 564.        ,    0.0940352...],
                      [ 565.        ,    0.0933589...],
                      [ 566.        ,    0.0926887...],
                      [ 567.        ,    0.0920246...],
                      [ 568.        ,    0.0913664...],
                      [ 569.        ,    0.0907141...],
                      [ 570.        ,    0.0900677...],
                      [ 571.        ,    0.0894270...],
                      [ 572.        ,    0.0887920...],
                      [ 573.        ,    0.0881627...],
                      [ 574.        ,    0.0875389...],
                      [ 575.        ,    0.0869207...],
                      [ 576.        ,    0.0863079...],
                      [ 577.        ,    0.0857006...],
                      [ 578.        ,    0.0850986...],
                      [ 579.        ,    0.0845019...],
                      [ 580.        ,    0.0839104...],
                      [ 581.        ,    0.0833242...],
                      [ 582.        ,    0.0827430...],
                      [ 583.        ,    0.082167 ...],
                      [ 584.        ,    0.0815959...],
                      [ 585.        ,    0.0810298...],
                      [ 586.        ,    0.0804687...],
                      [ 587.        ,    0.0799124...],
                      [ 588.        ,    0.0793609...],
                      [ 589.        ,    0.0788142...],
                      [ 590.        ,    0.0782722...],
                      [ 591.        ,    0.0777349...],
                      [ 592.        ,    0.0772022...],
                      [ 593.        ,    0.0766740...],
                      [ 594.        ,    0.0761504...],
                      [ 595.        ,    0.0756313...],
                      [ 596.        ,    0.0751166...],
                      [ 597.        ,    0.0746063...],
                      [ 598.        ,    0.0741003...],
                      [ 599.        ,    0.0735986...],
                      [ 600.        ,    0.0731012...],
                      [ 601.        ,    0.072608 ...],
                      [ 602.        ,    0.0721189...],
                      [ 603.        ,    0.0716340...],
                      [ 604.        ,    0.0711531...],
                      [ 605.        ,    0.0706763...],
                      [ 606.        ,    0.0702035...],
                      [ 607.        ,    0.0697347...],
                      [ 608.        ,    0.0692697...],
                      [ 609.        ,    0.0688087...],
                      [ 610.        ,    0.0683515...],
                      [ 611.        ,    0.0678981...],
                      [ 612.        ,    0.0674485...],
                      [ 613.        ,    0.0670026...],
                      [ 614.        ,    0.0665603...],
                      [ 615.        ,    0.0661218...],
                      [ 616.        ,    0.0656868...],
                      [ 617.        ,    0.0652555...],
                      [ 618.        ,    0.0648277...],
                      [ 619.        ,    0.0644033...],
                      [ 620.        ,    0.0639825...],
                      [ 621.        ,    0.0635651...],
                      [ 622.        ,    0.0631512...],
                      [ 623.        ,    0.0627406...],
                      [ 624.        ,    0.0623333...],
                      [ 625.        ,    0.0619293...],
                      [ 626.        ,    0.0615287...],
                      [ 627.        ,    0.0611312...],
                      [ 628.        ,    0.0607370...],
                      [ 629.        ,    0.0603460...],
                      [ 630.        ,    0.0599581...],
                      [ 631.        ,    0.0595733...],
                      [ 632.        ,    0.0591917...],
                      [ 633.        ,    0.0588131...],
                      [ 634.        ,    0.0584375...],
                      [ 635.        ,    0.0580649...],
                      [ 636.        ,    0.0576953...],
                      [ 637.        ,    0.0573286...],
                      [ 638.        ,    0.0569649...],
                      [ 639.        ,    0.0566040...],
                      [ 640.        ,    0.0562460...],
                      [ 641.        ,    0.0558909...],
                      [ 642.        ,    0.0555385...],
                      [ 643.        ,    0.0551890...],
                      [ 644.        ,    0.0548421...],
                      [ 645.        ,    0.0544981...],
                      [ 646.        ,    0.0541567...],
                      [ 647.        ,    0.053818 ...],
                      [ 648.        ,    0.0534819...],
                      [ 649.        ,    0.0531485...],
                      [ 650.        ,    0.0528176...],
                      [ 651.        ,    0.0524894...],
                      [ 652.        ,    0.0521637...],
                      [ 653.        ,    0.0518405...],
                      [ 654.        ,    0.0515198...],
                      [ 655.        ,    0.0512017...],
                      [ 656.        ,    0.0508859...],
                      [ 657.        ,    0.0505726...],
                      [ 658.        ,    0.0502618...],
                      [ 659.        ,    0.0499533...],
                      [ 660.        ,    0.0496472...],
                      [ 661.        ,    0.0493434...],
                      [ 662.        ,    0.0490420...],
                      [ 663.        ,    0.0487428...],
                      [ 664.        ,    0.0484460...],
                      [ 665.        ,    0.0481514...],
                      [ 666.        ,    0.0478591...],
                      [ 667.        ,    0.0475689...],
                      [ 668.        ,    0.0472810...],
                      [ 669.        ,    0.0469953...],
                      [ 670.        ,    0.0467117...],
                      [ 671.        ,    0.0464302...],
                      [ 672.        ,    0.0461509...],
                      [ 673.        ,    0.0458737...],
                      [ 674.        ,    0.0455986...],
                      [ 675.        ,    0.0453255...],
                      [ 676.        ,    0.0450545...],
                      [ 677.        ,    0.0447855...],
                      [ 678.        ,    0.0445185...],
                      [ 679.        ,    0.0442535...],
                      [ 680.        ,    0.0439905...],
                      [ 681.        ,    0.0437294...],
                      [ 682.        ,    0.0434703...],
                      [ 683.        ,    0.0432131...],
                      [ 684.        ,    0.0429578...],
                      [ 685.        ,    0.0427044...],
                      [ 686.        ,    0.0424529...],
                      [ 687.        ,    0.0422032...],
                      [ 688.        ,    0.0419553...],
                      [ 689.        ,    0.0417093...],
                      [ 690.        ,    0.0414651...],
                      [ 691.        ,    0.0412226...],
                      [ 692.        ,    0.0409820...],
                      [ 693.        ,    0.0407431...],
                      [ 694.        ,    0.0405059...],
                      [ 695.        ,    0.0402705...],
                      [ 696.        ,    0.0400368...],
                      [ 697.        ,    0.0398047...],
                      [ 698.        ,    0.0395744...],
                      [ 699.        ,    0.0393457...],
                      [ 700.        ,    0.0391187...],
                      [ 701.        ,    0.0388933...],
                      [ 702.        ,    0.0386696...],
                      [ 703.        ,    0.0384474...],
                      [ 704.        ,    0.0382269...],
                      [ 705.        ,    0.0380079...],
                      [ 706.        ,    0.0377905...],
                      [ 707.        ,    0.0375747...],
                      [ 708.        ,    0.0373604...],
                      [ 709.        ,    0.0371476...],
                      [ 710.        ,    0.0369364...],
                      [ 711.        ,    0.0367266...],
                      [ 712.        ,    0.0365184...],
                      [ 713.        ,    0.0363116...],
                      [ 714.        ,    0.0361063...],
                      [ 715.        ,    0.0359024...],
                      [ 716.        ,    0.0357000...],
                      [ 717.        ,    0.0354990...],
                      [ 718.        ,    0.0352994...],
                      [ 719.        ,    0.0351012...],
                      [ 720.        ,    0.0349044...],
                      [ 721.        ,    0.0347090...],
                      [ 722.        ,    0.0345150...],
                      [ 723.        ,    0.0343223...],
                      [ 724.        ,    0.0341310...],
                      [ 725.        ,    0.0339410...],
                      [ 726.        ,    0.0337523...],
                      [ 727.        ,    0.033565 ...],
                      [ 728.        ,    0.0333789...],
                      [ 729.        ,    0.0331941...],
                      [ 730.        ,    0.0330106...],
                      [ 731.        ,    0.0328284...],
                      [ 732.        ,    0.0326474...],
                      [ 733.        ,    0.0324677...],
                      [ 734.        ,    0.0322893...],
                      [ 735.        ,    0.0321120...],
                      [ 736.        ,    0.0319360...],
                      [ 737.        ,    0.0317611...],
                      [ 738.        ,    0.0315875...],
                      [ 739.        ,    0.0314151...],
                      [ 740.        ,    0.0312438...],
                      [ 741.        ,    0.0310737...],
                      [ 742.        ,    0.0309048...],
                      [ 743.        ,    0.0307370...],
                      [ 744.        ,    0.0305703...],
                      [ 745.        ,    0.0304048...],
                      [ 746.        ,    0.0302404...],
                      [ 747.        ,    0.0300771...],
                      [ 748.        ,    0.0299149...],
                      [ 749.        ,    0.0297538...],
                      [ 750.        ,    0.0295938...],
                      [ 751.        ,    0.0294349...],
                      [ 752.        ,    0.0292771...],
                      [ 753.        ,    0.0291203...],
                      [ 754.        ,    0.0289645...],
                      [ 755.        ,    0.0288098...],
                      [ 756.        ,    0.0286561...],
                      [ 757.        ,    0.0285035...],
                      [ 758.        ,    0.0283518...],
                      [ 759.        ,    0.0282012...],
                      [ 760.        ,    0.0280516...],
                      [ 761.        ,    0.0279030...],
                      [ 762.        ,    0.0277553...],
                      [ 763.        ,    0.0276086...],
                      [ 764.        ,    0.027463 ...],
                      [ 765.        ,    0.0273182...],
                      [ 766.        ,    0.0271744...],
                      [ 767.        ,    0.0270316...],
                      [ 768.        ,    0.0268897...],
                      [ 769.        ,    0.0267487...],
                      [ 770.        ,    0.0266087...],
                      [ 771.        ,    0.0264696...],
                      [ 772.        ,    0.0263314...],
                      [ 773.        ,    0.0261941...],
                      [ 774.        ,    0.0260576...],
                      [ 775.        ,    0.0259221...],
                      [ 776.        ,    0.0257875...],
                      [ 777.        ,    0.0256537...],
                      [ 778.        ,    0.0255208...],
                      [ 779.        ,    0.0253888...],
                      [ 780.        ,    0.0252576...]],
                     interpolator=SpragueInterpolator,
                     interpolator_args={},
                     extrapolator=Extrapolator,
                     extrapolator_args={...})