[Mesa-users] qpmg: Quickly Plot MESA or GYRE

Warrick Ball W.H.Ball at bham.ac.uk
Mon Sep 10 08:26:49 EDT 2018


Hi Alex,

I've always used the script as

     qpmg <filenames> <options>

but I've just noticed that the default usage statement suggests otherwise. 
I'll amend the help file to say this but glad it's working in the 
meantime.

Cheers,
Warrick


------------
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


On Mon, 10 Sep 2018, aserebryanskiy at yahoo.com wrote:

> Sorry, Warrick!
> 
> Somehow after\A0a couple of times of running, it starts to work as intended (mystery!)
> "qpmg -x log_Teff -y log_L LOGS/history.data"
> 
> 
> ===========================
> Aleksander Serebryanskiy, PhD
> Fesenkov Astrophysical Institute,
> Observatory 23, 050020 Almaty, Kazakhstan\A0
> tel: 8(747)9393892
> e-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.\A0 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".\A0 It should work with any files that
> follow the format of MESA profiles/histories or GYRE summaries/eigenfunction
> files.\A0 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].\A0 It's also available through the Python
> Package Index (PyPI) [2] so you can install it with
> 
> \A0 \A0 pip install --user qpmg
> 
> The script uses whatever your system calls `python` and should work with Python
> 2 or 3.\A0 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
> 
> \A0 \A0 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.\A0 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
> 
> 
>


More information about the Mesa-users mailing list