FITS Tutorial
How do I...
Retrieve FITS Images of Objects?
This procedure describes how to download a set of FITS images corresponding to a list of objects that you provide. The input file, which you will provide, contains the ra and dec of each object in your object list. The Imaging Query Server is used to retrieve object information and the DAS Retrieval Form is used to retrieve the actual FITS image files.
- Prepare a three-column comma-separated value (CSV) list of your objects. The first two columns should
contain the ra and dec coordinates of your objects. The last column
should be set to 1 (which is a separation parameter in arcsec). For example:
ra,dec,sep 4.2142,-1.2248,1 227.6103,61.1158,1 205.9245,67.0318,1 199.3531,0.0437,1
- Access the SDSS Imaging Query Server (IQS)
- Under Parameters to Return, select "minimal" for the desired set of parameters for your query
from the scroll box. This will return a csv with the following parameters
- run
- rerun
- camcol
- field
- obj
- Under "Filter names to return (for use by the DAS)", unselect all filters.
- Under Parameters to Return, select "Best Imaging" (note that although you can retrieve "Target Imaging" parameters, we only provide the "best" images).
- Under Position Constraints, click on the Proximity Search button.
- Cut and paste the CSV file into the Proximity Search scroll box found under the heading "List of ra, dec, [sep]."
- Click on "Submit Request" at the top of the web form to submit your query.
- Look at the results in the html table, or save the resulting CSV file.
- Note that the paths to the corrected frames are
http://data.sdss3.org/sas/dr8/groups/boss/photoObj/frames/[rerun]/[run]/[camcol]/frame-[band]-[run6]-[camcol]-[field].fits.bz2
(there are also some JPG files there).
To get fits images, e.g., of your targets:
- Select csv output and save the csv file to disk.
- Go to the DAS imaging data retrieval form.
- Select "All data" for the data release choice, because the CSV generated by the "minimal" columns as instructed above includes the rerun.
- Select the result csv file from above in the "select file to upload" box.
- Click on "Submit Request" at the bottom of the page.
- Under "File types," select the types of files you want to download (fpC or drC for fits images, for example).
- Since either "wget" or "rsync" under the "Download Selection" section, depending on how you want to download your data.
- Hit the "request" button at the bottom of the page. When queried by your browser, choose where to save the file.
- Follow the instructions in the Interactive download tools section of the DAS home page to download the files you requested.