Ejemplo n.º 1
0
def apogeePlate(dr=None):
    """
    NAME:
       apogeePlate
    PURPOSE:
       read the apogeePlate file
    INPUT:
       dr= return the file corresponding to this data release
    OUTPUT:
       apogeePlate file
    HISTORY:
       2013-11-04 - Written - Bovy (IAS)
    """
    filePath = path.apogeePlatePath(dr=dr)
    if not os.path.exists(filePath):
        download.apogeePlate(dr=dr)
    return fitsio.read(filePath)
Ejemplo n.º 2
0
def apogeePlate(dr=None):
    """
    NAME:
       apogeePlate
    PURPOSE:
       read the apogeePlate file
    INPUT:
       dr= return the file corresponding to this data release
    OUTPUT:
       apogeePlate file
    HISTORY:
       2013-11-04 - Written - Bovy (IAS)
    """
    filePath= path.apogeePlatePath(dr=dr)
    if not os.path.exists(filePath):
        download.apogeePlate(dr=dr)
    return fitsio.read(filePath)