This repository provides a python class to download SDSS-V spectra based on information in the spAll file. Currently, the class sdss5_spectra.SDSSV_Spectra will download data via rsync.
There is a short example in the file example_get_high_pm_spectra.py
, but in summary a BOSS spectrum for some catalogid can be downloaded by:
from sdss5_spectra.sdss5_spectra import SDSSV_Spectra
catalogid = 27021597911984196
spec = SDSSV_Spectra(catalogid=[catalogid],
update_spAll=True)
paths = spec.rsync()
APOGEE spectra on the other hand use astra
data products and can be downloaded by:
from sdss5_spectra.sdss5_spectra import SDSSV_Spectra
sdss_id = 114986844
spec = SDSSV_Spectra(instrument='APOGEE', release='ipl3',
catalogid=[sdss_id])
paths = spec.rsync()