blackbody_nu

astropy.analytic_functions.blackbody.blackbody_nu(in_x, temperature)[source] [edit on github]

Deprecated since version 2.0: The blackbody_nu function is deprecated and may be removed in a future version. Use astropy.modeling.blackbody.blackbody_nu instead.

Calculate blackbody flux per steradian, B_{\nu}(T).

Note

Use numpy.errstate to suppress Numpy warnings, if desired.

Warning

Output values might contain nan and inf.

Parameters:

in_x : number, array-like, or Quantity

Frequency, wavelength, or wave number. If not a Quantity, it is assumed to be in Hz.

temperature : number, array-like, or Quantity

Blackbody temperature. If not a Quantity, it is assumed to be in Kelvin.

Returns:

flux : Quantity

Blackbody monochromatic flux in erg \; cm^{-2} s^{-1} Hz^{-1} sr^{-1}.

Raises:

ValueError

Invalid temperature.

ZeroDivisionError

Wavelength is zero (when converting to frequency).