Skip to content

DanielAndreasen/SAP-ML

Repository files navigation

Say Thanks!

Build Status Updates Python 3

SAP-ML

Stellar Atmospheric Parameters - Machine Learning.

Installation

Using virtualenv and pip

$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

Usage

Input linelist should consists of wavelength in the first column and EW in the last column. The input file is read with np.loadtxt using standard settings. Note that there can be other columns, however the first and last have to be wavelength and EW, respectively.

This is useable in the optical and tested on nearly 600 FGK dwarf stars. The wavelengths can be seen in the file called linelist.lst.

Get parameters

$ python parametersML.py -l linelist.dat

Train the model

Note that a model is already provided (FASMA_ML.pkl)

$ python parametersML.py -t -c [linear,ridge,lasso]

Get help

$ python parametersML.py -h

Citation

Since we use a subset of the line list by Sousa+ 2008, we kindly ask you to cite this paper if you use this tool in your research.

We are also very interested if you find this tool useful, so do let us know.

Known issues

  • At the moment this does not include derivation of stellar parameters directly from a spectrum. We use a subset of the line list by Sousa+ 2008.

About

Stellar Atmospheric Parameters - Machine Learning

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages