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.

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.2.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymoog-0.0.2-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file pymoog-0.0.2.tar.gz.

File metadata

  • Download URL: pymoog-0.0.2.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.8

File hashes

Hashes for pymoog-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4ea91091a325b45f81e4133cb1be023be1b29b8318df2c105a36e92653430f09
MD5 f0b7d48ca71c654ef6da5ed091b1166b
BLAKE2b-256 745231f570a9bbc0715035630ea58ebbc9ebe8324dd6938cac60b7f1bd929607

See more details on using hashes here.

File details

Details for the file pymoog-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pymoog-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.8

File hashes

Hashes for pymoog-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 54ab78fe25c4cf7b2750faa5c3df2e84252edfe872993b923afb7b8acd4a6986
MD5 bbff474459926ffd1ff1a40bfef24e3a
BLAKE2b-256 99dd9be719b2a0b521e7a174600c56d3a6191588bfd8f5a330902bc33274807a

See more details on using hashes here.

Supported by

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