samvaughan / PyStaff

Spectral Fitting with CvD stellar population models
MIT License
5 stars 2 forks source link

PyStaff: Stellar Absorption Feature Fitting in python

Build Status Documentation Status

PyStaff (Python Stellar Absorption Feature Fitting) is a python code to recover stellar population parameters (such as Stellar Age, Metallicity and the Initial Mass Function) from visible and near-IR spectra of nearby galaxies. It's built to work with the newest version of the single stellar population models of Conroy, Villaume, van Dokkum & Lind (described here) which are available on request from Charlie Conroy's website.

The code has been used in Vaughan et. al 2018b, to measure the stellar population of NGC 1399 using data from MUSE.

You can read the docs at pystaff.readthedocs.io

A fit to the central spectrum of NGC 1399

Features:

Using the code on a different set of SSP models would be possible but would require a fair amount of work. It's something I'd like to make easier in future!

The code is being actively documented and updated.

Acknowledgements

A number of functions are imported from Michele Cappellari's fantastic Penalized Pixel Fitting code (pPXF: more info here, and available from PyPI). I'd also like to thank Charlie Conroy for making available the latest version of the SSP models.

Dependencies

You can also run pip install -r requirements.txt