In [1]:
%matplotlib inline
from __future__ import division
import om10,os
import numpy as np
import matplotlib.pyplot as plt
import triangle
In [5]:
db = om10.DB(catalog='$OM10_DIR/data/qso_mock.fits')
db.lenses
Out[5]:
In [6]:
test_lens = db.get_lens(5924799)
test_lens
Out[6]:
In [7]:
om10.plot_lens(test_lens)
In [10]:
test_lens['XIMG'], test_lens['YIMG']
Out[10]:
In [8]:
input_cat = om10.DB(catalog='./input_cat_for_eric.fits')
In [10]:
test_sim = input_cat.get_lens(5924799)
test_sim
Out[10]:
In [11]:
plt.plot(3600*test_sim['RA'][0],3600*test_sim['DEC'][0],color='Orange',marker='+')
plt.plot(3600*test_sim['RA'][1:],3600*test_sim['DEC'][1:],color='Blue',marker='+',linestyle='None')
Out[11]:
input catalog is mirrored in RA from what it should be...
Update: now fixed. Let's commit this and close the issue.
In [ ]: