.. _mbb_funcs:

Modeling options
=======================

There are several modeling options that can be used for the :ref:`ModifiedBlackbody <mbbclass>` fitting. 
All of these follow the form of the `Casey (2012) <https://doi.org/10.1111/j.1365-2966.2012.21455.x>`_ and/or `Drew & Casey (2022) <https://iopscience.iop.org/article/10.3847/1538-4357/ac6270>`_ models, 
with optional mid-infrared powerlaw (slope defaults to ``alpha=2.0``) and the choice between assuming optically thin dust or the general opacity model (turnover wavelength defaults to ``l0 = 200``, in microns). 
The model includes the effects of the CMB as described in `Da Cunha et al. (2013) <https://iopscience.iop.org/article/10.1088/0004-637X/766/1/13>`_.

To choose a given model, use the ``pl`` (powerlaw), ``opthin`` (optically thin), and/or ``pl_piecewise`` (join power law piecewise?) flags when intializing a ModifiedBlackbody instance.

The documentation for the overall model is below:

.. automodule:: mbb.mbb_funcs
    :members:
    :exclude-members: planckbb
