.. py:module:: cometspec .. raw:: html

CometSpec

Fluorescence modeling & MCMC fitting for cometary spectra

GitHub PyPI License: MIT Python ≥3.9
comet animation
**CometSpec** is a Python package for modeling fluorescence emission in cometary spectra and fitting observed data using Markov Chain Monte Carlo (MCMC) methods. .. raw:: html

Fluorescence Modeling

Physics-based fluorescence equilibrium model with solar radiative pumping, spontaneous and stimulated emission, and collisional excitation.

MCMC Fitting

Bayesian parameter estimation via emcee with flexible priors and multi-isotopologue support.

Multi-Isotopologue

Simultaneous modeling of 12C14N, 13C14N, and 12C15N, 12C2, 13C2, 12C13C, and Fe. Additinally custom line list are supported.

Production Rates

Derive production rates from fitted column densities using the Haser coma model or asumming a ρ-1 profile

Roadmap ------- CometSpec is under active development. Planned additions include: - **Dust and solar continuum** — model the underlying continuum alongside emission lines - **More molecules** — extend beyond CN, C\ :sub:`2`, Fe to other cometary species and polishing of existing line lists. - **Non-equilibrium and non-LTE models** — go beyond fluorescence equilibrium to model more complex excitation conditions - **Nested sampling** — add nested sampling as an alternative or complement to MCMC for posterior estimation If you are interested in collaborating, feel free to reach out at `baltasarluco@uc.cl `_. Getting Started --------------- Install CometSpec and run your first model in minutes: .. code-block:: bash pip install cometspec Then follow the :doc:`getting_started/index` guide or explore the full :doc:`api/index`. .. toctree:: :maxdepth: 3 :caption: User Guide installation getting_started/index .. toctree:: :maxdepth: 2 :caption: API Reference api/index .. toctree:: :maxdepth: 1 :caption: About citation