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
lmfit
packageemcee
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.
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.
pip install ppxf
You can also run pip install -r requirements.txt