Closed aburgasser closed 8 years ago
Update: fixed my .nrec file and made sure I had login set properly, but didn't fix issue:
In [1]: from apogee.modelatm import atlas9 ...: atm= atlas9.Atlas9Atmosphere(teff=4750.,logg=2.5,metals=-0.25,am=0.25,cm ...: =0.25)
CalledProcessError Traceback (most recent call last) /Users/adam/projects/FAST/apogee/apogee/tools/download.py in _download_file(downloadPath, filePath, dr, verbose, spider) 569 if spider: cmd.append('--spider') --> 570 subprocess.check_call(cmd) 571 if not spider: shutil.move(tmp_savefilename,filePath)
/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py in check_call(_popenargs, *_kwargs) 560 cmd = popenargs[0] --> 561 raise CalledProcessError(retcode, cmd) 562 return 0
CalledProcessError: Command '['wget', 'https://data.sdss.org/sas/apogeework/apogee/spectro/redux/speclib/kurucz_filled/mm02cp02op02/amm02cp02op02t4750g25v20.mod', '-O', '/var/folders/xz/cpj3dz_52vg83dmxjgzxx4nh0000gn/T/tmp8a7j8d5t', '--read-timeout=10', '--tries=3', '-q']' returned non-zero exit status 8
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
Turned out to be another Python 3 error, because Python 3 round 0.5 differently from Python 2:
http://stackoverflow.com/questions/10825926/python-3-x-rounding-behavior
trouble reading in models - the file name it generates here (mm02cp02op02/amm02cp02op02t4750g25v20.mod) isn't on the webpage it calls
In [32]: atm= atlas9.Atlas9Atmosphere(teff=4750.,logg=2.5,metals=-0.25,am=0.25,c ...: m=0.25)
CalledProcessError Traceback (most recent call last) /Users/adam/projects/FAST/apogee/apogee/tools/download.py in _download_file(downloadPath, filePath, dr, verbose, spider) 568 if spider: cmd.append('--spider') --> 569 subprocess.check_call(cmd) 570 if not spider: shutil.move(tmp_savefilename,filePath)
/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py in check_call(*popenargs, **kwargs) 560 cmd = popenargs[0] --> 561 raise CalledProcessError(retcode, cmd) 562 return 0
CalledProcessError: Command '['wget', 'https://data.sdss.org/sas/apogeework/apogee/spectro/redux/speclib/kurucz_filled/mm02cp02op02/amm02cp02op02t4750g25v20.mod', '-O', '/var/folders/xz/cpj3dz_52vg83dmxjgzxx4nh0000gn/T/tmpo08648kq', '--read-timeout=10', '--tries=3', '-q']' returned non-zero exit status 6
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)