Skip to content

Commit

Permalink
Fixed the handling of inclination data.
Browse files Browse the repository at this point in the history
  • Loading branch information
transientlunatic committed May 17, 2018
1 parent 1c656bc commit 5652cc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion minke/mdctools.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,12 +578,17 @@ def gravEn_row(self, row, frame):
energy = self.egw[row]
row = self.waveforms[row]
output = []

if not row.incl:
cosincl = ""
else:
cosincl = np.cos(row.incl)

output.append(self.name) # GravEn_SimID
output.append(strains[0]) # SimHrss
output.append(energy) # SimEgwR2
output.append(strains[0]) # GravEn_Ampl
output.append(np.cos(row.incl)) # Internal_x the cosine of the angle the LOS makes with axis of angular momentum
output.append(cosincl) # Internal_x the cosine of the angle the LOS makes with axis of angular momentum
output.append(row.phi) # Intenal_phi angle between source x-axis and the LOS
output.append(np.cos(np.pi/2.0 - row.dec)) # cos(External_x) # this needs to be the co-declination
output.append(row.ra if row.ra < np.pi else row.ra - 2*np.pi)
Expand Down

0 comments on commit 5652cc7

Please sign in to comment.