Daily Study Log (2019-04-11)

Research

Mass-Radius Relation of Neutron Stars

  • To distinguish the energy density, I need to introduce the color bar in Python code. What I need to do on the graph are
  1. Draw a scatter plot with color bar
  2. Remove the border of the marker
  3. Put a title on the color bar

plt.scatter(radius,mass, c=eps, linewidth='0', vmin=1.0E15, vmax=5.0E15, cmap=plt.cm.get_cmap("jet"), alpha=0.8)

plt.title('Mass & Radius Relation')
plt.xlabel(r'Radius ($km$)')
plt.ylabel(r'Maximum Baryon Mass ($M_{\odot}$)')

cbar = plt.colorbar()
cbar.set_label('Central Energy Density')

 

  • The calculation for the rotating neutron star is done. Now I also put them into the plot. To do this, I need to do some modification to output files.
  1. Remove rows including ‘nan’ values.
  2. Remove first four rows (header)

#!/bin/bash

for FILE in `ls EOS*`; do
sed -i '/nan/d' ./$FILE
sed -i '1,4d' ./$FILE
done

 

  • Using the results, I successfully made a plot. I really want to show you the result, but I think I can do it after the publication. I still have lots of things to do. But I’m feeling that I’ve done something, finally.

Study

Astronomy & Astrophysics

English

  • I have read the 5 things on CNN.
  • I have read the front page of today’s The New York Times.
  • I have added 8 words.
  • I have studied 46 words and 9 sentences using Anki.

General Science

Leave a Reply