code: def bb_spectrum(wavelength, bbTemp=5000):
      """
      Calculate, by Planck's radiation law, the emittance of a black body
      of temperature bbTemp at the given wavelength (in metres).  */
      """
      wlm = wavelength * 1e-9  # Convert to metres
      return (3.74183e-16 * math.pow(wlm, -5.0)) / (
          math.exp(1.4388e-2 / (wlm * bbTemp)) - 1.0
      )
  
      """  Built-in test program which displays the x, y, and Z and RGB
      values for black body spectra from 1000 to 10000 degrees kelvin.
      When run, this program should produce the following output:
  
      Temperature       x      y      z       R     G     B
      -----------    ------ ------ ------   ----- ----- -----
         1000 K      0.6528 0.3444 0.0028   1.000 0.007 0.000 (Approximation)
         1500 K      0.5857 0.3931 0.0212   1.000 0.126 0.000 (Approximation)
         2000 K      0.5267 0.4133 0.0600   1.000 0.234 0.010
         2500 K      0.4770 0.4137 0.1093   1.000 0.349 0.067
         3000 K      0.4369 0.4041 0.1590   1.000 0.454 0.151
         3500 K      0.4053 0.3907 0.2040   1.000 0.549 0.254
         4000 K      0.3805 0.3768 0.2428   1.000 0.635 0.370
         4500 K      0.3608 0.3636 0.2756   1.000 0.710 0.493
         5000 K      0.3451 0.3516 0.3032   1.000 0.778 0.620
         5500 K      0.3325 0.3411 0.3265   1.000 0.837 0.746
         6000 K      0.3221 0.3318 0.3461   1.000 0.890 0.869
         6500 K      0.3135 0.3237 0.3628   1.000 0.937 0.988
         7000 K      0.3064 0.3166 0.3770   0.907 0.888 1.000
         7500 K      0.3004 0.3103 0.3893   0.827 0.839 1.000
         8000 K      0.2952 0.3048 0.4000   0.762 0.800 1.000
         8500 K      0.2908 0.3000 0.4093   0.711 0.766 1.000
         9000 K      0.2869 0.2956 0.4174   0.668 0.738 1.000
         9500 K      0.2836 0.2918 0.4246   0.632 0.714 1.000
        10000 K      0.2807 0.2884 0.4310   0.602 0.693 1.000
  """
  
file_path: vispy/examples/demo/gloo/galaxy/galaxy_specrend.py
imports: import math
label_desc: Use image node_id 10 for calling a global function with example usage: bb_spectrum(wavelength, bbTemp) and returns: unknown