This program serves as a wrapper for Turbospectrum, providing an interface that simplifies its use. It automates the invocation of Turbospectrum, enabling users to generate large volumes of synthetic stellar spectra without the need for manual intervention. Additionally, it includes functionality for generating stellar parameter sets needed as input to Turbospectrum, within ranges specified by the user.
requirements.txt
are installed.The program is developed for Unix systems and has not been tested on Windows systems.
Turbospectrum accepts many different types of parameters. This program, however, specifically supports inputting the following 5 parameters to Turbospectrum:
Additionally:
git clone https://github.com/littlepadawan/turbospectrum-wrapper.git
turbospectrum
directorygit clone https://github.com/bertrandplez/Turbospectrum_NLTE turbospectrum
Skip this step if you already have Turbospectrum installed. You can then choose to either move Turbospectrum to the turbospectrum
directory or change the file path in the configuration.cfg
fileinput/model_atmospheres
directory.input/linelists
directory.configuration.cfg
file, gfortran
is default.pip install -r requirements.txt
You can modify the file paths for Turbospectrum, model atmospheres, and linelists in the configuration.cfg
file if you prefer not to place them in the default directories
To run the program using the default settings in the provided configuration file, navigate to the rote of the project and execute the following command:
python3 -m source.main
If no changes are made to the configuration.cfg
file, the program will generate 10 randomly spaced parameter sets and invoke Turbospectrum once per parameter set.
For details on how to modify the configuration or how the program works, refer to the docs
directory.
This project is licensed under the MIT License - see the LICENSE file for details.
If you use this software in a publication or presentation, please acknowledge the original author by citing the project.