skip to navigation
skip to content

smh 0.1

Spectroscopy Made Hard

Latest Version: Unknown

Spectroscopy Made Hard

:Info: See the `GitHub repository <http:"" andycasey="" smh="" tree="" master="">`_ for the latest source
:Author: `Andy Casey <>`_ (
:License: Don't distribute. This code is only given out to good friends.

This code can be used to measure the stellar parameters and detailed
chemical abundances of a star from high-resolution spectroscopic data,
using a traditional curve-of-growth analysis, and incorporating `MOOG
<http:"" ~chris="" moog.html="">`_.


- You will require the `Enthought Python Distribution
<http:"" products="" edudownload.php="">`_ (use the
32-bit version only). This code is free for academic use, but you may
need to `register using your institution email address
<https:"" accounts="" register="" ?next="/licenses/academic">`_.

- The non-interactive version of `MOOG
<http:"" ~chris="" moog.html="">`_, known as ``MOOGSILENT``. As
long as you have the appropriate command line tools, you can install
``MOOG`` and ``MOOGSILENT`` using ``pip``:

``sudo pip install moog``

(If you don't have ``pip`` installed, you can install it with
``easy_install pip`` and then use ``easy_install`` any time you would
have used ``pip``, `see here why
<http:"" questions="" 3220404="" why-use-pip-over-easy-install="">`_.)


The best way to download the code is to use ``git``. If you don't have
``git``, you can `download it for free <http:"" downloads="">`_.
Make sure you follow the setup instructions `here <https:"" articles="" set-up-git="">`_
to make things easier for yourself in the future. If you are asked for a
password when trying to use the ``sudo`` command, then you should enter
your administrator password for your machine, not your GitHub
account password. Once ``git`` is set up, use the following command in a

``git clone smh``

That will clone the entire repository into a fresh folder called ``smh``.
Whenever there is a new version of the code or a bug-fix, you can download
the latest copy by ``cd``'ing to your ``smh`` directory then using:

``git pull``

And that's it! If you encounter unexpected bugs, please copy the entire
stack trace (error log) you get into a new `GitHub issue
<https:"" andycasey="" smh="" issues="" new="">`_ along with
a detailed description of what you were trying to do when the error


Unless you've set up an alias, just ``cd`` to your ``smh`` directory then use:



There is an `incomplete Wiki <https:"" andycasey="" smh="" wiki="">`_ (that you can contribute to) which takes you
through all the analysis steps in SMH.  
File Type Py Version Uploaded on Size
smh-0.1.tar.gz (md5) Source 2014-01-26 131KB