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)
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)