Welcome to the FIREFLY python documentation

FIREFLY is a chi-squared minimisation fitting code that for a given input Spectral Energy Distribution (SED), compares combinations of single-burst stellar population models (SSP), following an iterative best-fitting process until convergence is achieved. The weight of each component can be arbitrary and no regularization or additional prior than the adopted model grid is applied. Dust attenuation is added in a novel way, using a High-Pass Filter (HPF) in order to rectify the continuum before fitting. The returned attenuation array is then matched to known analytical approximations to return an E(B-V) value. This procedure allows for removal of large scale modes of the spectrum associated with dust and/or poor flux calibration. FIREFLY provides light- and mass-weighted stellar population properties (age and metallicity), E(B-V) values and stellar mass for the most likely best fitting model. Errors on these properties are obtained by the likelihood of solutions within the statistical cut (of order 100-1000).

The code can fit a wide range of stellar population models and galaxy spectra. At present, the code contains functionality to fit the observed galaxy spectra from SDSS, DEEP2, and MaNGA.



If you use this code as a resource to produce a scientific result, please cite accordingly :


git clone https://github.com/FireflySpectra/firefly_release

dependencies :
  • python 3 and its main packages all installable through pip: numpy, scipy, matplotlib, math …
  • astro dependencies: astropy, installable with pip

Add all the python folders from the FF_DIR to your pythonpath.

The Maraston 2011 models available via the command

Current run

Our current runs on

Indices and tables