σ
ίΘ[c           @` s    d  Z  d d l m Z m Z m Z m Z d d l m Z d d l	 m
 Z
 d d g Z e j Z e j Z e
 d d	 d
 d    Z e
 d d	 d d    Z d S(   u)   Functions related to blackbody radiation.i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsi   (   t	   blackbody(   t
   deprecatedu   blackbody_nuu   blackbody_lambdau   2.0t   alternativeu'   astropy.modeling.blackbody.blackbody_nuc         C` s   t  j |  |  S(   uq  Calculate blackbody flux per steradian, :math:`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 `~astropy.units.Quantity`
        Frequency, wavelength, or wave number.
        If not a Quantity, it is assumed to be in Hz.

    temperature : number, array-like, or `~astropy.units.Quantity`
        Blackbody temperature.
        If not a Quantity, it is assumed to be in Kelvin.

    Returns
    -------
    flux : `~astropy.units.Quantity`
        Blackbody monochromatic flux in
        :math:`erg \; cm^{-2} s^{-1} Hz^{-1} sr^{-1}`.

    Raises
    ------
    ValueError
        Invalid temperature.

    ZeroDivisionError
        Wavelength is zero (when converting to frequency).

    (   t   _bbt   blackbody_nu(   t   in_xt   temperature(    (    sC   lib/python2.7/site-packages/astropy/analytic_functions/blackbody.pyR      s    %u+   astropy.modeling.blackbody.blackbody_lambdac         C` s   t  j |  |  S(   uI  Like :func:`blackbody_nu` but for :math:`B_{\lambda}(T)`.

    Parameters
    ----------
    in_x : number, array-like, or `~astropy.units.Quantity`
        Frequency, wavelength, or wave number.
        If not a Quantity, it is assumed to be in Angstrom.

    temperature : number, array-like, or `~astropy.units.Quantity`
        Blackbody temperature.
        If not a Quantity, it is assumed to be in Kelvin.

    Returns
    -------
    flux : `~astropy.units.Quantity`
        Blackbody monochromatic flux in
        :math:`erg \; cm^{-2} s^{-1} \mathring{A}^{-1} sr^{-1}`.

    (   R   t   blackbody_lambda(   R	   R
   (    (    sC   lib/python2.7/site-packages/astropy/analytic_functions/blackbody.pyR   :   s    N(   t   __doc__t
   __future__R    R   R   R   t   modelingR   R   t   utils.decoratorsR   t   __all__t   FNUt   FLAMR   R   (    (    (    sC   lib/python2.7/site-packages/astropy/analytic_functions/blackbody.pyt   <module>   s   "		(