Skip to content
/ moog Public
forked from andycasey/moog

A package installer for the MOOG code

Notifications You must be signed in to change notification settings

jobovy/moog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

A package installer for the MOOG code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 91.3%
  • DIGITAL Command Language 3.3%
  • Objective-C 2.2%
  • C 2.0%
  • Python 1.2%