INNER CODE UNIT · Python
xmatch
jobovy/gaia_tools · gaia_tools/load/__init__.py:67
xmatch= (None) if set, cross-match against a Vizier catalog (e.g., vizier:I/345/gaia2 for Gaia DR2 or vizier:I/350/gaiaedr3 for Gaia EDR3) using gaia_tools.xmatch.cds and return the overlap
+gaia_tools.xmatch.cds keywords
OUTPUT:
allStar data[,xmatched table]
HISTORY:
2013-09-06 - Written - Bovy (IAS)
2018-05-09 - Add xmatch - Bovy (UofT)
"""
if not _APOGEE_LOADED:
_warn_apogee_fallback()
dr= kwargs.get('dr',14)
filePath= path.apogeePath(dr=dr)
if not os.path.exists(filePath):
download.apogee(dr=dr)
data= fitsread(filePath,1)
#Add astroNN? astroNN files matched line-by-line to allStar,
#so match here [ages not matched line-by-line...]
if kwargs.get('use_astroNN',False) or kwargs.get('astroNN',False) \