Skip to content

soylentdeen/moog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installing MoogStokes the Easy Way™
Info

See the GitHub repository for the latest source

Author

Casey Deen, Max Planck Insitute for Astronomy (deen@mpia.de)

Original Author

Andy Casey, Australian National University (andy@the.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.

MoogStokes is an extension of the original Moog code which includes the effects of magnetic fields via the Zeeman effect. MoogStokes allows the user to model emergent spectra of stars with strong magnetic fields.

The current MoogStokes version hosted by this repository is the June 2013 version (version 1.00).

Installation

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!

1) 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.

2) Download this repository, extract the files and type:

python setup.py install --prefix=/desired/path/to/MoogStokes/executable/

The installer will compile MoogStokes and MoogStokessilent and place them in defined in --prefix. If necessary, it will also install the required AquaTerm framework to /Library/Frameworks/AquaTerm.framework/, and create a ~/.moog directory to contain data files.

3) the ATLAS and LAPACK libraries included in the /lib directory may not be correctly tuned for your system. If this is the case, please download and install the libraries on your system, and copy the .a libraries into the /lib directory (overwriting the ones included in the tarball)

Uninstall

Just type the following files to uninstall MOOG:

sudo pip uninstall moog

And to clean up completely:

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

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 95.2%
  • C 1.9%
  • C++ 1.8%
  • Python 1.1%