- Tutorials
- Getting Started
- Quick Look
- Get an Image
- Get a Spectrum
- Clean Photometry
- Finding Chart
- Search by Position
- Image Search
- Supernovae
- Cross-match objects
- Get random subset
- Find close pairs
- Spectra by color
- Spectra in bulk
- Stripe 82 Images
- Get FITS images
- Reading par files
- Spectrum files in IRAF
- Reading atlas images
- Reading PSF images
- APOGEE Examples
- SEGUE Basics
- SEGUE SQL Cookbook
- Help
Catalog Tutorial
How do I...
Get redshift catalogs with corresponding photometric information?
If you are interested in the full redshift catalogs in flat file
format then you want to be using the specObj
file. This file has all of the spectroscopic catalog information
included within it, and exactly corresponds to the
specObjAll
table in the CAS.
Photometric information for each spectroscopic object is also
available in flat file format, in the photoPlate
file.
These and other files are described in the spectroscopic data access page.
Get all the spectra
If you are interested in a handful of SDSS spectra (less than a few thousand) in FITS format, an excellent way to retrieve them is using the Science Archive Server. However, if you want to look at tens of thousands of spectra or more, it becomes more sensible to simply download the entire spectroscopic data set.
Thus, we supply all of the spectra as bulk FITS files (one file per
plate), called spPlate.
A general description of how to use rsync
to retrieve
these files is given in the data access
page.
An example rsync command that retrieves all the
spPlate
files (but excludes other, less important
ancillary information) would be:
rsync -nrtkvz --include "26" --include "103" --include "104" \ --include "v5_5_12" --include "[0-9][0-9][0-9][0-9]" \ --include "spPlate*fits" --include "spZ*fits" \ --exclude "*" rsync://data.sdss3.org/dr10/sdss/spectro/redux/ redux/
Notice that we have put a "-n" flag in, so in fact this command just reports what it would copy; to actually copy the files, use just "-rtkvz" in front. However, think before doing so if you only need a subset of plates, since this full rsync is almost 1 TB of data.
We also have a
list of URLs
pointing to all spPlate
files in text format. This
could be used with e.g. wget to retrieve all spPlate
files.
This list can also be created with the following Python commands:
import os import os.path import yanny par = yanny.yanny(os.path.join(os.getenv('SPECTRO_REDUX'),'plates-dr10.par')) base = 'http://data.sdss3.org/sas/dr10/sdss/spectro/redux/{0}/{1:04d}/spPlate-{1:04d}-{2:5d}.fits\n' url = [base.format( par['PLATES']['run2d'][k], par['PLATES']['plate'][k], par['PLATES']['mjd'][k]) for k in range(par.size('PLATES'))] with open('spPlate.txt','w') as f: f.writelines(url)
Software in idlspec2d can be used to
read and plot the data in these files, in particular
readspec
and plotspec
.
Please note that these directories contain some reductions and plates considered very bad, and that are not included in the official list of DR10 plates. Do not trust any results from a plate-mjd that is not in that official list (and pay attention to the quality and comments listed in that file too!).
What about objects not observed due to fiber collisions?
You will want the tiling information.