MOOG has been through many iterations since this repository was created. I used to have time to keep this repository up-to-date so you could install MOOG(SILENT) easily. The installation instructions here still work for some people/systems, but not all. Importantly, though, this version of MOOG does not include fixes for all known bugs.
I strongly recommend that you instead use Alex Ji's hosted version of MOOG:
https://github.com/alexji/moog17scat
This should be easier to install than off-the-shelf MOOG, simply because it has gone through more trial and error. Ji's version also includes fixes for some known bugs, which to my knowledge have not yet made their way into the MOOG code base.
You can still use the repository below, but buyer beware.
Info: | See the GitHub repository for the latest source |
---|---|
Author: | Andy Casey, University of Cambridge ([email protected]) |
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! |
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.
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.
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.
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/