A package installer for the MOOG code
Fortran C Python
Latest commit 7ef845e Apr 22, 2014 Andy Casey Merge pull request #3 from bathompso/master
More universal data path - thanks @bathompso
Permalink
Failed to load latest commit information.
lib
moog
MANIFEST
README.rst
setup.py

README.rst

Installing MOOG the Easy Way™

Info:See the GitHub repository for the latest source
Author: Andy Casey, University of Cambridge (andy@astrowizici.st)
Website:astrowizici.st
License:Distribute to anyone you see fit, as long as you adhere to the licenses set by the dependencies (SuperMongo, MOOG, etc). Improvements are welcome!

Background

MOOG was written by Chris Sneden and has -- and continues to be -- an invaluable contribution to modern stellar astrophysics. From the MOOG website:

MOOG is a code that performs a variety of LTE line analysis and spectrum synthesis tasks. The typical use of MOOG is to assist in the determination of the chemical composition of a star.

The current MOOG version hosted by this repository is the February, 2013 version.

Installation (With Plotting)

Classically, MOOG has been difficult to install. Or at least, it has been for me because I'm bad at computers. Now it's easy-ier!

If you are on a Mac then you will need to ensure you have Xcode installed as well as the Command Line Tools first. Regardless of your operating system, you will need either gfortran (recommended) or g77 to compile MOOG. If you have either of these, just open a terminal and type:

sudo pip install moog (or sudo easy_install moog, if you must)

And that's it. Happy spectroscopy-ing!

The installer will compile MOOG and MOOGSILENT and place them in your $PATH. It will also install the required AquaTerm framework to /Library/Frameworks/AquaTerm.framework/, and create a ~/.moog directory to contain data files.

Note: If you're on Mavericks (OS X 10.9) then SuperMongo -- and subsequently MOOG -- can be notoriously difficult to install. Consider whether you need plotting functionality or not.

Installation (Batch Mode Only)

If you don't need the plotting functionality in MOOG then you can install just the batch version of MOOG, known as MOOGSILENT:

pip install moogsilent (or easy_install moogsilent, if you must)

If you're on OS X, you still need to ensure you have Xcode installed as well as the Command Line Tools first. Regardless of your operating system, you will need either gfortran (recommended) or g77 to compile MOOG. However you do not need to be sudo in order to install MOOGSILENT. The source code for the MOOGSILENT installer is kept in parallel on the batch branch.

Uninstall

Just type the following files to uninstall MOOG:

sudo pip uninstall moog (or pip uninstall moogsilent)

And to clean up completely:

sudo rm -Rf ~/.moog /Library/Frameworks/AquaTerm.framework/