Metadata-Version: 2.4
Name: mbb
Version: 0.5.3
Summary: Implementation of a modified blackbody (MBB) model, used for fitting the spectral energy distributions of dusty galaxies.
Author-email: Stephen McKay <sjmckay12@gmail.com>
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: matplotlib
Requires-Dist: astropy
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: emcee
Requires-Dist: corner
Requires-Dist: tqdm
Dynamic: license-file

# mbb


[![DOI](https://zenodo.org/badge/769329531.svg)](https://doi.org/10.5281/zenodo.17781466)


**mbb** is an implementation of a modified blackbody (MBB) model, commonly used for fitting the spectral energy distributions (SEDs) of dusty galaxies. 

Feel free to suggest updates/point out issues on the [GitHub page](https://github.com/mckay-sjm/mbb_model).

Author: Stephen McKay, 2023


## Installation

The simplest way to install `mbb` is with `pip`; e.g., `pip install mbb`.

## Usage

**mbb** can be used to generate mock SEDs based on a range of dust emission parameters, or it can be used to fit dust emission models to observed photometry and extract the best-fit parameters. The code is fully Bayesian, built with the [`emcee`](https://emcee.readthedocs.io/en/stable/) package. Uncertainties and upper limits are properly accounted for, and the code allows easy access to useful posterior metrics.

Documentation and examples available on [Read the Docs.](https://mbb.readthedocs.io/en/latest/)

<span>
<img src="docs/images/mbb_1.png" height="300px" title="mbb model"/>
<img src="docs/images/corner_1.png" height="300px" title="corner plot"/>
</span>
 
