Skip to main content

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.

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.8.tar.gz (51.7 MB view details)

Uploaded Source

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

Hashes for pymoog-0.0.8.tar.gz
Algorithm Hash digest
SHA256 b8c21f96f115a89dcc7068c192ed01fc78666c496b471a5a758bbacc844e0078
MD5 84b4f4a20eda94b107ab01d9668425dc
BLAKE2b-256 a71ae90528422661f3bd1ed8c67dd535308eb5bd17bda7d3714091a99cc551a9

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.0

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

0.0.28

1 file

0.0.27

1 file

0.0.26

1 file

0.0.25

1 file

0.0.24

1 file

0.0.23

1 file

0.0.22

1 file

0.0.21

1 file

0.0.20

1 file

0.0.19

1 file

0.0.18

1 file

0.0.17

1 file

0.0.16

1 file

0.0.15

1 file

0.0.14

1 file

0.0.13

1 file

0.0.12

1 file

0.0.11

1 file

0.0.10

1 file

0.0.9

1 file

This release

0.0.8 This release

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page