[Mesa-users] qpmg: Quickly Plot MESA or GYRE
Alex Serebryanskiy
aserebryanskiy at yahoo.com
Mon Sep 10 08:15:27 EDT 2018
Sorry, Warrick!
Somehow after a couple of times of running, it starts to work as intended (mystery!)"qpmg -x log_Teff -y log_L LOGS/history.data"
===========================Aleksander Serebryanskiy, PhDFesenkov Astrophysical Institute,Observatory 23, 050020 Almaty, Kazakhstan
tel: 8(747)9393892e-mail: alex at aphi.kz, aserebryanskiy at yahoo.com
On Monday, September 10, 2018, 3:02:11 PM GMT+6, Warrick Ball via Mesa-users <mesa-users at lists.mesastar.org> wrote:
Hi everyone,
For a while I've been using a fairly simple Python script to quickly inspect my
MESA (and sometimes GYRE) output files. I've finally (I hope?) packaged it
into something that the outside world might be able to use. I've dubbed it
"qpmg" for "Quickly Plot MESA or GYRE". It should work with any files that
follow the format of MESA profiles/histories or GYRE summaries/eigenfunction
files. It just allows you to plot columns that are in the given files, though
it should be able to work out it can use logarithms appropriately (so it'll
compute `log_L` from `L` if `log_L` isn't available).
The code is hosted on GitHub [1]. It's also available through the Python
Package Index (PyPI) [2] so you can install it with
pip install --user qpmg
The script uses whatever your system calls `python` and should work with Python
2 or 3. It only requires NumPy and Matplotlib.
Those two links and the readme provide details but, for a quick example, you
can get a simple HR track with
qpmg LOGS/history.data -x log_Teff -y log_L --flip-x
assuming `log_Teff` and `log_L` are columns in the history, which they are
in the defaults. Calling `qpmg` on a file without any further arguments
will produce an error that lists the available columns.
Cheers,
Warrick
[1] https://github.com/warrickball/qpmg/
[2] https://pypi.org/project/qpmg/
------------
Warrick Ball
Postdoc, School of Physics and Astronomy
University of Birmingham, Edgbaston, Birmingham B15 2TT
W.H.Ball at bham.ac.uk
+44 (0)121 414 4552
_______________________________________________
mesa-users at lists.mesastar.org
https://lists.mesastar.org/mailman/listinfo/mesa-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20180910/2c3b2d22/attachment.html>
More information about the Mesa-users
mailing list