1
0
Fork
You've already forked synhtesis-plotter
0
Plot synthetic spectra with MOOG
  • AMPL 54.7%
  • Python 45.3%
Find a file
Daniel Thaagaard Andreasen 9f7390cb81
Merge pull request #1 from DanielAndreasen/dependabot/pip/numpy-1.22.0
Bump numpy from 1.16.3 to 1.22.0
2022年06月22日 08:37:00 +02:00
doc Initial commit 2019年05月05日 11:38:52 +02:00
example Initial commit 2019年05月05日 11:38:52 +02:00
src Remove unused imports 2020年06月24日 22:11:58 +02:00
.gitignore Remove egg stuff from VCS 2019年05月28日 22:17:15 +02:00
README.md Add some spacing before figure 2019年05月05日 11:42:09 +02:00
requirements.txt Bump numpy from 1.16.3 to 1.22.0 2022年06月21日 21:56:37 +00:00
setup.py Use spaces and normal unix linebreaks 2019年05月28日 19:10:45 +02:00

Synthesis plotter

This little piece of software can plot synthetic spectra (generated on the fly with MOOG) on top of your input spectrum.

Installation

This is a fairly standard scientific package and require normal packages. Just do the following:

$ pip install git+https://github.com/DanielAndreasen/MOOGly
$ pip install git+https://github.com/DanielAndreasen/synthesis-plotter

The first package is used to run and read MOOG.

Moreover, you will need to have MOOGSILENT in your PATH.

If the above installation is successfull you should now have a executable in your PATH called plotter.py (you may have to start a new terminal to see this).

Example

To run you simply execute the script as:

$ plotter.py -i <input-spectrum> -l <linelist-for-MOOG> -a <atmosphere-model>

The input spectrum is assumed to be a text file with first column as wavelength and second column as normalized flux.

After you run the script you will see a plot like below (set the cursor in one of the boxes and hit enter). Now you can change the element (only one element is possible) and the abundances (seperated with a comma), hit enter and see the updated plot.

alt text

Getting started

There are some example files in the example folder to get you started. Enjoy!