Giter Club home page Giter Club logo

moog's Introduction

Installing MOOG the Easy Way™

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!

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/

moog's People

Contributors

andycasey avatar bathompso avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.