Firefly – A Full Spectral Fitting Code
13/01/2022: UPDATE to release 1.0.1
Description
FIREFLY is a chi-squared minimisation fitting code for deriving the stellar population properties of stellar systems, be these observed galaxy or star cluster spectra, or model spectra from simulations. FIREFLY fits combinations of single-burst stellar population models to spectroscopic data, following an iterative best-fitting process controlled by the Bayesian Information Criterion. No priors are applied, rather all solutions within a statistical cut are retained with their weight, which is arbitrary. Moreover, no additive or multiplicative polynomials are employed to adjust the spectral shape and no regularisation is imposed. This fitting freedom allows one to map out the effect of intrinsic spectral energy distribution (SED) degeneracies, such as age, metallicity, dust reddening on stellar population properties, and to quantify the effect of varying input model components on such properties. Dust attenuation is included using a new procedure, which employs 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. The fitting method has been extensively tested with a comprehensive suite of mock galaxies, real galaxies from the Sloan Digital Sky Survey and Milky Way globular clusters. The robustness of the derived properties was assessed as a function of signal-to-noise ratio and adopted wavelength range. FIREFLY is able to recover age, metallicity, stellar mass and even the star formation history remarkably well down to a S/N~5, for moderately dusty systems.
FIREFLY provides light- and mass-weighted stellar population properties – age, metallicity, E(B-V), stellar mass and its partition in remnants (white dwarfs, neutron stars, black-holes) – for the best fitting model and its components. The star formation rates for the individual components are given, the total past average can be easily obtained from the provided quantities. The star formation history can be easily derived by plotting the SSP contributions with their weights. Errors on these properties are obtained by the likelihood of solutions within the statistical cut.
The code can in principle fit any model to any spectrum at any spectral resolution and over any wavelength range. At present, the code has been applied to spectra from SDSS, integrated and from Integral field Unit (MANGA), the DEEP2 survey and globular clusters from various sources.
A full description of the code and results of the extensive testing is in Wilkinson et al. 2017. Updates to release v1.0.1, further performance tests, as well as comparative tests between different set-ups are can be found in Neumann et al. 2022.
At this webpage you can download the code and several additional files, plus the galaxy calculations that have been already performed.
For queries, please contact: firefly@port.ac.uk or any of the team members below.
The Firefly Team
Claudia Maraston, Daniel Thomas, Justus Neumann
&
Johan Comparat, Jianhui Lian, Violeta Gonzalez-Perez, Taniya Parikh, Lewis Hill & Alice Concas
&
Jascha A. Schewtschenko for computing/software support
Resources
1. Code and ancillary files.
- Download the Firefly code, readme and ancillary files from the dedicated GitHub repository or as a zipped file. The repository includes M11 and MaStar stellar population templates.
2. Galaxy products
- SDSS DR12 galaxy properties, i.e. age, metallicity, dust, both light and mass-weighted, stellar mass, and its components in remnants, plus 1,2,3 sigma errors, for three option models, M11-MILES, M11-STELIB, M11-ELODIE, and three initial mass functions (IMFs) – Salpeter, Kroupa and Chabrier – for each of the models.
- SDSS DR17 – IFU MaNGA
- SDSS DR16 – BOSS, eBOSS
- DEEP2 – DEEP2 spectra was fitted in a similar way to SDSS DR12. Derived parameters and information can be found in the DEEP2 fits file (340 Mb) and accompanying README file.