INNER CODE UNIT · Python
astroNNDistances
jobovy/gaia_tools · gaia_tools/load/__init__.py:226
def astroNNDistances(**kwargs):
"""
NAME:
astroNNDistances
PURPOSE:
read the astroNNDistances file (Leung & Bovy 2019b)
INPUT:
dr= data reduction to load the catalog for (automatically set based on APOGEE_REDUX if not given explicitly)
OUTPUT:
astroNN data
HISTORY:
2019-02-15 - Written - Bovy (UofT)
"""
if not _APOGEE_LOADED:
_warn_apogee_fallback()
dr= kwargs.get('dr',14)
filePath= path.astroNNDistancesPath(dr=dr)
if not os.path.exists(filePath):