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
brewto install (brew install gcc). I have no experience on using Mac so I haven't test it.
Install pymog
clonethis repository andcdinto 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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pymoog-0.0.8.tar.gz.
File metadata
- Download URL: pymoog-0.0.8.tar.gz
- Upload date:
- Size: 51.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8c21f96f115a89dcc7068c192ed01fc78666c496b471a5a758bbacc844e0078
|
|
| MD5 |
84b4f4a20eda94b107ab01d9668425dc
|
|
| BLAKE2b-256 |
a71ae90528422661f3bd1ed8c67dd535308eb5bd17bda7d3714091a99cc551a9
|