[mesa-users] New tool for MESA analysis in Ruby/Tioga

Bill Wolf wmwolf at physics.ucsb.edu
Tue Jan 29 01:55:08 EST 2013


Helo, MESA users!

For those of you that use Ruby and/or Tioga for analyzing your MESA data, I'm releasing MESA_Reader, a suite of exactly one tool, the MESAData class, that I hope will grow in the future to a whole module of useful methods and classes for your MESA analysis needs. If you don't currently use ruby or tioga, perhaps you should take a look into them now.

In short, the MESAData class allows easy access to all information in a given history or profile file. I've relegated the details to the README, but the basic operation is this: after "requiring" the MESA_Reader file in your ruby script (or irb), you can create a MESAData object via

s = MESAData.new('LOGS/history.data')

And then call Dvectors of relevant data as easily as

xs = s.data('log_Teff')
ys = s.data('log_L')

and boom, you've got all of your HR diagram data ready. If you've used Rich Townshend's IDL tool or mesa.py, you'll notice some similar behaviors.

I've attached the main file, MESA_Reader.rb, an example Tioga script for creating an HR diagram by using a MESAData object, and a README with simple instructions regarding installation and the few methods available for this class. All these are also available on mesastar.org, where I will try to keep them up to date as I add more methods and possibly classes.

Let me know if you have any small suggestions or bugs, and I hope you find this a useful and time-saving tool!

Regards,

Bill
________________________
William Wolf
wmwolf at physics.ucsb.edu

UCSB Department of Physics


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20130128/4beefecd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MESA_Reader.rb
Type: text/x-ruby-script
Size: 3595 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20130128/4beefecd/attachment.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20130128/4beefecd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample_plot.rb
Type: text/x-ruby-script
Size: 1830 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20130128/4beefecd/attachment-0001.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20130128/4beefecd/attachment-0002.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: README.txt
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20130128/4beefecd/attachment.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20130128/4beefecd/attachment-0003.html>


More information about the Mesa-users mailing list