Skip to main content

The python wrapper to run LTE spectra synthesis code MOOG.

Project description

pymoog

Documentation Status

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 and cd 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.

Development progress

  • synth
  • [] plotit
  • abfind
  • blends
  • [] binary
  • cog
  • [] grdisyn
  • weedout
  • [] cogsyn
  • [] ewfind
  • [] calmod
  • [] doflux
  • [] synpop
  • [] abpop
  • [] mydriver
  • [ ] plotit
  • abfind
  • blends
  • binary
  • cog
  • [ ] grdisyn
  • weedout
  • cogsyn
  • ewfind
  • calmod
  • doflux
  • synpop
  • abpop
  • mydriver

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymoog-0.0.18.tar.gz (65.8 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page