Skip to content

Commit

Permalink
added resulting graph
Browse files Browse the repository at this point in the history
  • Loading branch information
hykelvinlee42 committed Apr 18, 2021
1 parent 981b491 commit 9d319a7
Show file tree
Hide file tree
Showing 2 changed files with 3,006 additions and 3 deletions.
9 changes: 6 additions & 3 deletions photometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ def getMags(image_data_nosky, objects, noise, texp):
file_index += 1
print()

# Amplitude of collected data i.e. the difference between the max and min
amp = max(mags) - min(mags)
# Amplitude of collected data i.e. the half the difference between the max and min
amp = (max(mags) - min(mags)) / 2

plt.errorbar(times, mags, yerr=mags_err, fmt=".")
plt.title("RR Leo luminosity period relationship")
Expand All @@ -245,7 +245,10 @@ def getMags(image_data_nosky, objects, noise, texp):
text += "\n"
text += "ext_coeff: " + str(np.round(ext_coeff, 5))
text += "\n"
text += "period: 0.4524021 d"
period = file_index / 60.0 / 24
text += "observed period: " + str(np.round(period, 7)) + " d"
text += "\n"
text += "published period: 0.4524021 d"
plt.text(0.1, 0.07, text, transform=plt.gca().transAxes)
# plt.show()
plt.savefig("RRLeo_period.eps")
Expand Down
Loading

0 comments on commit 9d319a7

Please sign in to comment.