Some quick FOV coordinate checks for HAP-HD.
See https://github.com/gammasky/hess-host-analyses/issues/12
In [1]:
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
plt.style.use('ggplot')
In [2]:
from astropy.table import Table
table = Table.read('hess_event_list_3.fits', hdu='EVENTS')
In [3]:
table.info('stats')
In [4]:
plt.plot(table['FOV_RADEC_LON'], table['FOV_RADEC_LON_DIFF'], 'o')
# plt.xlim(-10, 10)
# plt.ylim(-1, 1)
Out[4]:
In [5]:
plt.plot(table['FOV_RADEC_LAT'], table['FOV_RADEC_LAT_DIFF'], 'o')
Out[5]:
In [6]:
# mask = table['FOV_RADEC_THETA'] < 2
# t = table[mask][:10]
t = table[::50]
# t.pprint()
# print()
scale = 5e-3
plt.quiver(
t['FOV_RADEC_LON'].data, t['FOV_RADEC_LAT'].data,
scale * t['FOV_RADEC_LON_DIFF'].data, scale * t['FOV_RADEC_LAT_DIFF'].data,
scale=1,
)
plt.xlim(-3, 3)
plt.ylim(-3, 3)
Out[6]:
In [7]:
# mask = table['FOV_RADEC_THETA'] < 2
# t = table[mask][:10]
t = table[::50]
# t.pprint()
# print()
scale = 1e-5
plt.quiver(
t['FOV_ALTAZ_LON'].data, t['FOV_ALTAZ_LAT'].data,
scale * t['FOV_ALTAZ_LON_DIFF'].data, scale * t['FOV_ALTAZ_LAT_DIFF'].data,
scale=1,
)
plt.xlim(-3, 3)
plt.ylim(-3, 3)
Out[7]:
In [8]:
mask = np.abs(table['FOV_ALTAZ_LON']) < 0.3
table[mask].info('stats')
In [ ]: