INNER CODE UNIT · Python
gaiarv
jobovy/gaia_tools · gaia_tools/load/__init__.py:274
def gaiarv(dr=2):
"""
NAME:
gaiarv
PURPOSE:
Load the RV subset of the Gaia data
INPUT:
dr= (2) data release
OUTPUT:
data table
HISTORY:
2018-04-25 - Written for DR2 - Bovy (UofT)
"""
filePaths= path.gaiarvPath(dr=dr,format='fits')
if not numpy.all([os.path.exists(filePath) for filePath in filePaths]):
download.gaiarv(dr=dr)
return numpy.lib.recfunctions.stack_arrays(\
[fitsread(filePath,ext=1) for filePath in filePaths],