Commit 81f9190e authored by Bence Becsy's avatar Bence Becsy
Browse files

Modified to fix MDC injection location marker.

git-svn-id: c56465c9-8126-4a4f-9d7d-ac845eff4865
parent 86595ceb
......@@ -165,6 +165,15 @@ def make_skyview(directory='.', mdc=None, NSIDE=64, ra=None, dec=None, results=N
# Shift the declination to match hp.projscatter conventions
decrad = np.pi*0.5 - decrad
if mdc is not None:
# Convert the right ascension to a reference angle from -pi to pi
# for mdc injections.
while injra > np.pi:
injra = injra - 2*np.pi
while injra < -np.pi:
injra = injra + 2*np.pi
# -- Plot the skymap and injection location
skymap = kde.as_healpix(NSIDE, nest=True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment