CometSpec is a Python package for modeling fluorescence emission in cometary spectra and fitting observed data using Markov Chain Monte Carlo (MCMC) methods.
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, C2, 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:
pip install cometspec
Then follow the Getting Started guide or explore the full API Reference.
API Reference
About