Skip to content

Commit

Permalink
Make skygrid plot work (units questionable)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeb245 committed Jul 26, 2023
1 parent d43af62 commit 1cb9643
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/pygrb/pycbc_pygrb_plot_skygrid
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import os
import logging
import numpy
import h5py
import numpy as np
from matplotlib import pyplot as plt
from matplotlib import rc
import pycbc.version
Expand Down Expand Up @@ -103,7 +104,8 @@ fig = plt.figure()
ax = fig.gca()
ax.set_xlabel(xlabel)#, fontsize=16)
ax.set_ylabel(ylabel)#, fontsize=16)
ax.plot(trig_data['network/longitude'][:], trig_data['network/latitude'][:],
# TODO: Check this conversion + all other sky position units
ax.plot(np.rad2deg(trig_data['network/ra']), np.rad2deg(trig_data['network/dec']),
'ko', markerfacecolor='blue')
# Wrap up
save_fig_with_metadata(fig, outfile, cmd=' '.join(sys.argv),
Expand Down

0 comments on commit 1cb9643

Please sign in to comment.