blackbody_nu¶
-
astropy.modeling.blackbody.blackbody_nu(in_x, temperature)[source]¶ Deprecated since version 4.0: BlackBody provides the same capabilities
Calculate blackbody flux per steradian, \(B_{\nu}(T)\).
Note
Use
numpy.errstateto suppress Numpy warnings, if desired.Warning
Output values might contain
nanandinf.Parameters: in_x : number, array_like, or
QuantityFrequency, 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 :
QuantityBlackbody monochromatic flux in \(erg \; cm^{-2} s^{-1} Hz^{-1} sr^{-1}\).
Raises: ValueError
Invalid temperature.
- ZeroDivisionError
Wavelength is zero (when converting to frequency).
- temperature : number, array_like, or