Commit 7cbf28e8 authored by Tyson Littenberg's avatar Tyson Littenberg
Browse files

fix? to megasky for BayesWave internal injections


git-svn-id: https://svn.ligo.caltech.edu/svn/bayeswave/trunk@628 c56465c9-8126-4a4f-9d7d-ac845eff4865
parent c175af67
......@@ -82,6 +82,8 @@ def make_skyview(directory='.', mdc=None, NSIDE=128, ra=None, dec=None, results=
jobname = params.jobname
print "got job name"
print "params.ra {0}".format(params.ra)
# -- Input skymap data
# num, L, ralist, sin_dec, psi, e, dA, dphi, dt = np.loadtxt(filename, unpack=True)
......@@ -137,6 +139,7 @@ def make_skyview(directory='.', mdc=None, NSIDE=128, ra=None, dec=None, results=
injra = params.ra
injtheta = np.pi/2 - injdec
mdc = True
print "Psych! Got injection values from bayeswave.run"
# -- Make plots directory, if needed
plotsDir = './plots'
......@@ -171,7 +174,7 @@ def make_skyview(directory='.', mdc=None, NSIDE=128, ra=None, dec=None, results=
#fig = plt.figure(frameon=False)
fig = plt.figure(figsize=(8,6), frameon=False)
ax = plt.subplot(111, projection='astro mollweide')
ax = plt.subplot(111, projection='astro hours mollweide')
ax.cla()
ax.grid()
lp.healpix_heatmap(skymap, nest=True, vmin=0.0, vmax=np.max(skymap), cmap=plt.get_cmap('cylon'))
......
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