BLACKBODY_RAD

Excel Usage

=BLACKBODY_RAD(T, wavelength)
  • T (float, required): Temperature (K)
  • wavelength (float, required): Wavelength (m)

Returns (float): Spectral radiance (W/(m^2srm))

Examples

Example 1: 800K at 4 micrometers

Inputs:

T wavelength
800 0.000004

Excel formula:

=BLACKBODY_RAD(800, 0.000004)

Expected output:

1311694129.74309

Example 2: Sun temperature at visible wavelength

Inputs:

T wavelength
5778 5e-7

Excel formula:

=BLACKBODY_RAD(5778, 5e-7)

Expected output:

26375671624491.227

Example 3: Long wavelength (infrared)

Inputs:

T wavelength
300 0.0001

Excel formula:

=BLACKBODY_RAD(300, 0.0001)

Expected output:

19353.47234

Example 4: Short wavelength UV

Inputs:

T wavelength
6000 1e-7

Excel formula:

=BLACKBODY_RAD(6000, 1e-7)

Expected output:

458894958.84679

Python Code

from ht.radiation import blackbody_spectral_radiance

def blackbody_rad(T, wavelength):
    """
    Spectral radiance of a blackbody.

    See: https://ht.readthedocs.io/en/latest/ht.radiation.html#ht.radiation.blackbody_spectral_radiance

    This example function is provided as-is without any representation of accuracy.

    Args:
        T (float): Temperature (K)
        wavelength (float): Wavelength (m)

    Returns:
        float: Spectral radiance (W/(m^2*sr*m))
    """
    try:
        return float(blackbody_spectral_radiance(T=float(T), wavelength=float(wavelength)))
    except Exception as e:
        return f"Error: {str(e)}"

Online Calculator