Skip to content

Commit

Permalink
Phase example incorrect mag calculation (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlend authored Jun 21, 2024
1 parent 88a678f commit 6bd8942
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/examples/plot_phases.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
obj2earth = sun2earth - sun2obj
mags.append(
neospy.flux.hg_apparent_mag(
-sun2obj,
obj2earth,
neo_subset.g_phase.iloc[i],
sun2obj,
sun2earth,
neo_subset.h_mag.iloc[i],
neo_subset.g_phase.iloc[i],
)
)

Expand All @@ -63,7 +63,7 @@

plt.subplot(2, 1, 2)
plt.scatter(mags[elongs > 90], phases[elongs > 90], s=1)
plt.xlim(0, 25)
plt.xlim(10, 35)
plt.xlabel("Visible Mag")
plt.ylabel("Phase (Deg)")
plt.tight_layout()
Expand Down

0 comments on commit 6bd8942

Please sign in to comment.