The python wrapper to run LTE spectra synthesis code MOOG.
Project description
pymoog
We present you a black-box.
pymoog
is a python3 wrapper for running the LTE spectrum synthesis part of the code MOOG by Chris Sneden.
The synthetic spectra from optical to near infrared region of the model stars in Kurucz model ATLAS can be generated by pymoog
in a few commands.
This package can be run in Linux or Mac system.
Part of the infrared observed (from BASS2000) and synthetic solar spectra by MOOG
There is also a stand-alone version of the MOOG used in this package.
Installation
Install gfortran compilar
gfortran is a free Fortran compiler as a part of GCC. Although it is possible to use other Fortran compiler to compile MOOG, using gfortran is (to my experience) the mose easy one and thus pymoog requires gcc to be installed before pip install.
- Check whether gfortran is installed in your computer
Type gfortran
in the terminal; if you get:
gfortran: fatal error: no input files
compilation terminated.
then gfortran is already installed and please go to Install pymoog.
If you get:
command not found: gfortran
then you need to install gfortran.
-
Linux:
sudo apt install gcc
-
Windows: please use Windows Subsystem for Linux and follow the instruction for Linux.
-
Mac: please refer to this post; the main point is using
brew
to install (brew install gcc
). I have no experience on using Mac so I haven't test it.
Install pymog
clone
this repository andcd
into the corresponding folder;pip install .
Tutorial
Once you are done with the installation, you can use the pymoog
package now on your code!
For tutorial, Please refer to this notebook.
Documentation is available in here.
Acknowledgement
This package has made use of the VALD database, operated at Uppsala University, the Institute of Astronomy RAS in Moscow, and the University of Vienna.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.