Getting SEGUE file data
First, a disclaimer: the full data volume of the DR12 sample is tens of terabytes (see this table for specifics). rsync (and http) are not designed for such large data transfers. If you really do need the full data set, please contact the Help Desk to talk to a data transfer expert who can arrange a custom transfer. This will be faster for you and easier on our servers.
Now, below is a typical rsync command:
rsync -av rsync://data.sdss3.org/dr12/boss/spectro/data/[MJD]/ [MJD]/
This particular command will give you an MJD’s data.
Getting the data: SEGUE-2
- All the plates in the list are SEGUE-2 plates, so no need to separate from MARVELS or BOSS plates.
- A plate is not available at until after it is finished. That means that once you download a plate directory, all you have to do is sort to get the version of the data files that have the latest MJD in the filename and you will get all the S/N there is to get for that plate.
There are a few exceptions to the latest-MJD-is-best rule. See “Notes on individual plates” below.
NOTE that there are “rerun” numbers, 104 for the spectra and 122 for the stellar parameters. Those rerun numbers are used to designate different versions of the pipeline software. If those get changed you will get many obtrusive announcements to tell you about it, but PLEASE do keep track. The rerun number for the spectra hasn’t changed since March 2010 (rerun 104), and is the same pipeline that was run for DR7. Rerun 122 for the SSPP is new for DR10, and has been run on all the SEGUE-1, SEGUE-2 and SDSS legacy plates. This rerun of the SSPP has several improvements over the version used for SSPP rerun 116 (from DR8) and rerun 104 (which was used for DR7).
The data model tells you what’s what in each file. Easiest is probably to use the file index link at the data model top page.
From the plate subdirectories, the most useful files are the spZbest files (containing parameters measured from the spectra, e.g. redshift, etc) and spPlate files (containing the spectra themselves). For the SSPP outputs, the ssppOut files contain all the stellar parameters, the ssppOut-*-lineindex.fit files contain the measured line indices, and the ssppOut-*.ps.gz files have the condensed plots for the SSPP diagnostic outputs. There are also SSPP diagnostic plots for each object, with instructions for getting them below.
You can get data from the Science Archive Mirror by substituting mirror.sdss3.org for data.sdss3.org in all the commands below.
To get the spectra you can use the following wget command. Warning, it will take a long time (10 minutes, last time we checked) to download a lot of index.html files before it gets to the actual data. It might hang, though in recent (Feb. 2010) testing of these wget commands this particular one didn’t hang. Others did.
wget -N -nv -r -nH -np --cut-dirs=4 -A spPlate"*".fits,spZbest"*".fits \ http://data.sdss3.org/sas/dr12/sdss/spectro/redux/104/segue2/
You can also use rsync. Note it will say “receiving file list …” for a long time while it sorts out the remote directory structure.
rsync -avzuL --include "*"/--include "*"/spPlate"*" --include "*"/spZbest"*" --exclude "*" \ rsync://data.sdss3.org/dr12/sdss/spectro/redux/104/segue2/ ./
Target and Field (all objects) photometry, astrometry, proper motion, and target selection information
You can also get the photometry, proper motions and other target selection information here. See the data model link again for what is in these files.
To get all the photometric information for the spectroscopic targets:
wget -N -nv -r -nH -np -A seguetsObjPlate"*" \ http://data.sdss3.org/sas/dr12/sdss/segue2/target/seguetsObj/
rsync -avzuL rsync://data.sdss3.org/sas/dr12/sdss/segue2/target/seguetsObj/ ./