Metadata-Version: 2.1
Name: mesmer
Version: 0.0.4.dev0
Summary: mesmer sees through foregrounds
Home-page: https://github.com/bthorne93/mesmer
Author: Ben Thorne
Author-email: bn.thorne@googlemail.com
Requires-Python: >=3.8,<3.9
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Provides-Extra: docs
Provides-Extra: test
Requires-Dist: astropy (>=4.0.1,<5.0.0)
Requires-Dist: h5py (>=2.10.0,<3.0.0)
Requires-Dist: jax (==0.1.74)
Requires-Dist: jaxlib (==0.1.52)
Requires-Dist: matplotlib (>=3.0.0,<4.0.0)
Requires-Dist: nbsphinx (>=0.7.1,<0.8.0); extra == "docs"
Requires-Dist: numpy (>=1.17,<2.0)
Requires-Dist: pandoc (>=1.0.2,<2.0.0); extra == "docs"
Requires-Dist: pytest (>=5,<6); extra == "test"
Requires-Dist: pytest-astropy (>=0.8.0,<0.9.0); extra == "test"
Requires-Dist: pyyaml (>=5.3.1,<6.0.0)
Requires-Dist: recommonmark (>=0.6.0,<0.7.0); extra == "docs"
Requires-Dist: sphinx (>=3.1.2,<4.0.0); extra == "docs"
Requires-Dist: sphinx-argparse (>=0.2.5,<0.3.0); extra == "docs"
Requires-Dist: sphinx-astropy (>=1.3,<2.0); extra == "docs"
Requires-Dist: sphinx-math-dollar (>=1.1.1,<2.0.0); extra == "docs"
Requires-Dist: tox-pyenv (>=1.1.0,<2.0.0)
Project-URL: Repository, https://github.com/bthorne93/mesmer
Description-Content-Type: text/markdown

[![astropy](http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat)](http://www.astropy.org/)
[![mesmer-master Actions Status](https://github.com/bthorne93/mesmer/workflows/mesmer-master/badge.svg)](https://github.com/bthorne93/mesmer/actions)

# mesmer

Package to calculate the log probability of foregrounds.

## Description

Given a dataset $\mathbf{d}$, this package calculates, and samples from, the maximum 
likelihood set of foreground parameters, $P(\mathbf{\theta}}\mathbf{d})$.

This approach has been used in these papers:

1. [Simulated forecasts for primordial B-mode searches in ground-based experiments](https://arxiv.org/abs/1608.00551)
2. [The Simons Observatory: Science goals and forecasts](https://arxiv.org/abs/1808.07445)
3. [Removal of Galactic foregrounds for the Simons Observatory primordial gravitational wave search](https://arxiv.org/abs/1905.08888)

## Useage

[An example note book](examples/example.ipynb) is in the `notebooks` folder.

To add SEDs, edit [the SED functions file](mesmer/seds.py). The likelihood is defined in [the likelihood file](mesmer/likelihood.py).

# License

This project is Copyright (c) Ben Thorne and licensed under
the terms of the BSD 3-Clause license. This package is based upon
the [Astropy package template](https://github.com/astropy/package-template)
which is licensed under the BSD 3-clause license. See the licenses folder for
more information.

