jbirky / apogee_tools

Modeling tools for SDSS/APOGEE spectra
http://apogee-tools.readthedocs.io/
MIT License
2 stars 3 forks source link

Problem reading in apVisit spectra #2

Closed jbirky closed 6 years ago

jbirky commented 7 years ago

I have all the visit spectra downloaded for 2M03290406+3117075. When I attempt to read in the first visit, I get an error:

Traceback (most recent call last): File "test.py", line 169, in data = ap.Spectrum(id='2M03122509+0021585-0', type='apvisit') File "/Users/admin/Desktop/astro_code/apogee_tools/apogee_tools/core.py", line 189, in init openFile = fits.open(self.file) File "/Users/admin/anaconda3/lib/python3.5/site-packages/astropy/io/fits/hdu/hdulist.py", line 166, in fitsopen lazy_load_hdus, kwargs) File "/Users/admin/anaconda3/lib/python3.5/site-packages/astropy/io/fits/hdu/hdulist.py", line 404, in fromfile lazy_load_hdus=lazy_load_hdus, kwargs) File "/Users/admin/anaconda3/lib/python3.5/site-packages/astropy/io/fits/hdu/hdulist.py", line 1044, in _readfrom raise IOError('Empty or corrupt FITS file') OSError: Empty or corrupt FITS file