q2 allows you to use MOOG (in its SILENT mode) to calculate elemental abundances of stars and/or determine their atmospheric parameters using the standard techniques of iron line excitation/ionization equilibrium. It also allows you to calculate other fundamental stellar parameters such as mass and age using isochrones. A tutorial is available here.
Find spectroscopic parameters of a sample of stars using the Sun as the reference star (strict line-by-line differential analysis):
import q2
data = q2.Data('stars.csv', 'lines.csv')
sp = q2.specpars.SolvePars(grid='marcs')
q2.specpars.solve_all(data, sp, 'solution.csv', 'Sun')
Measure elemental abundances of a sample of stars with respect to the solar abundances (line-by-line):
species_ids = ['CI', 'OI', 'BaII']
q2.abundances.get_all(data, species_ids, 'abundances.csv', 'Sun')
q2 needs a recent version of MOOGSILENT (>2003) installed in your system. It has been fully tested only with the FEB 2017 version.
You wont be able to use all the package features without the associated data, particularly the model atmospheres and isochrone grids. Use this link to download the data and make sure it is extracted into the q2/Data folder.
Ramirez et al. 2014, A&A, 572, A48
Ivan Ramirez ([email protected])