sx_pix.shape[0]


"""
Explanation: 51 secs down to 158ms, thats
End of explanation
"""


from astropy.coordinates import SkyCoord
from astropy import units as u
c = SkyCoord(ra=fcat['RA'][0:len(fcat)//2]*u.degree, dec=fcat['Dec'][0:len(fcat)//2]*u.degree)  
import pymoc
moc2=pymoc.util.catalog.catalog_to_moc(c,100,15)

%%timeit
ind=xidplus.moc_routines.check_in_moc(ra, dec, moc2)

"""
Explanation: 640 hours estimated time, if is the size of moc thats the problem? test. If using moc in tiles, not problem,
End of explanation
"""


