Installing MOOG the Easy Way™
|Info:||See the GitHub repository for the latest source|
|Author:||Andy Casey, University of Cambridge (email@example.com)|
|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!|
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
MOOGSILENT and place them in
$PATH. It will also install the required AquaTerm framework to
/Library/Frameworks/AquaTerm.framework/, and create a
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
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.
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/