A simple user interface provides access to the processed PanSTARRS images. Stack (combined) images are available for the grizy filters in the 3PI survey. The stack images are also combined to create color images. Images may be extracted using an RA+Dec position or using an object name. The resulting cutout images (postage stamps) are available as JPEG images within the web browser or as FITS images. The interface also provides access to download skycell images covering larger sky regions, along with an interactive display for browsing skycell images. Finally, there are web services that can be used for access to the images via scripts.
The starting point for the PS1 data archive is at Pan-STARRS1 data archive home page.
The web interface
The PS1 images are accessible through http://ps1images.stsci.edu/cgi-bin/ps1cutouts. The interface has a text box to enter a position or object name plus a few other options. Type an object name or position into the box and click Submit:
The search string can be a name that is recognized by NED or SIMBAD (e.g., "ring nebula" as above) or a position in various formats (RA and Dec in degrees, hh mm ss +dd mm ss, h:m:s d:m:s, etc.). A PanSTARRS image identifier (e.g., skycell.2069.026) is also accepted and is translated to the central position of that image.
The labels above each image identify the image type (always "stack" for the current DR1 release), the image identifier (these come from skycell.2069.026), and the filter.
Changing the parameters
The default parameters for the search return 240x240 pixel cutout images (=1x1 arcmin for the PS1 scale of 0.25 arcsec/pixel), including a color image and all five filters, grizy. The filters used for the color image are the reddest (y), the bluest (g), and the middle image (i).
The parameters allow changing the defaults:
|Filters||Select a subset of the filters using check boxes. If the color box is checked and two or more of the filters are checked, a color image is also shown using the selected filters.|
|Auxiliary data||Include ancillary images such as masks, weights, and exposure times. These will show up as separate rows in the results.|
|Cutout image size||Specify the extracted image size in pixels. The conversion to arcsec is shown. This sets the spatial size of the region that is extracted from the PS1 image. If this size is large, the cutout image may reach the edge of the PS1 image; in that case the pixels off the edge are filled with blanks. The skycell images are approximately 6000x6000 pixels, so sizes larger than that will always reach the edges of the images. The size is currently limited to 6000 pixels.|
|JPEG display size||Select the size for the displayed JPEG images. The cutout is scaled to the selected size. This can be used either to shrink the images when the cutout size is large (to fit larger fields on the web page) or to expand the image for small cutouts (to see finer details).|
The Submit button loads a new web page for the requested sky position and other parameters. Note that the URL of the page encodes all the parameters, so it is possible to copy it and save it for future access to the same image cutouts. The Reset button restores all parameters to their values when the current page was submitted. The Clear button restores all parameters to their default values from the original web page.
As an example, here are images for the Ring Nebula with the cutout image size increased to 512 pixels (128 arcsec), the JPEG display size set to 256 pixels (so the JPEG scale is 0.5 arcsec/pixel), and the gri filters selected (which changes the color image as well):
Access to FITS images
In addition to the titles that identify the cutouts, there are links above the images. Here is the result for NGC 7222:
The FITS link downloads the full skycell image for this field. In this example that is a 6240x6243 pixel image (~0.43 degrees across) of the g filter stack for skycell 1405.053. Note that these images are compressed using the FITS tile-compressed image convention. The format can be read by most FITS libraries or can be converted back to a standard uncompressed FITS image using the ftools package.
The FITS-cutout link downloads a FITS image of only the cutout region. These images are not resampled to the JPEG display size – they have the full resolution of the original images. So e.g. if the cutout image size is 900 pixels, the FITS cutout will be 900x900 pixels. FITS cutout images are not compressed.
The FITS links are not available for color images. Since the various filter images for a skycell are matched pixel-by-pixel, the individual FITS and FITS-cutout filter images can be downloaded separately and assembled into multi-band FITS images if desired.
Another quirk of these images is that they use the obsolete WCS keywords PC001001, PC001002, PC002001, PC002002 instead of the FITS standard keywords CD1_1, CD1_2, etc. Many software packages automatically handle the old PC keywords, but some require special processing (e.g., in IDL you should call the fits_cd_fix procedure to modify the header).
Interactive image display
The Display link opens an interactive FITS image viewer that allows browsing the skycell image. The interactive viewer (which was originally developed for the Hubble Legacy Archive) allows panning, zooming and changing the image contrast. It is also possible to overlay external catalogs such as SDSS and 2MASS on the image. There is a Help page that describes the standard functionality of this tool. Here is a screenshot of the display in the vicinity of NGC 7222:
The Display link is also available for color images. Note that the compressed storage format of the FITS image makes the interactive display somewhat sluggish, especially for the color images (which are reading FITS images for all 3 filters being used). Options are being explored to improve the performance (which is currently tolerable if not ideal).
There is one custom catalog available for the PS1 image display: the PS1 checkbox overlays objects from the PanSTARRS catalog.
When catalogs are overlaid on the image, you can click on individual sources to see magnitudes and other properties.
A useful option to speed up catalog loading, especially in crowded regions, is to change the Catalog Overlay Region. The default is to load all the sources that overlap the skycell. Click the Visible button and then the Set Region button to get only the catalog sources that are in the currently visible region of the image. That is much faster when only a small portion of the image is being viewed. The selected region remains fixed as you zoom and pan the image until you click the Set Region button again to change it to match the current viewport. When the region is changed, any catalogs that have been overlaid on the image are automatically reloaded.
Additional options for the PS1 catalog are available by clicking on PS1 controls. Currently the only option is to filter the catalog using the number of filters & epochs at which objects were detected. That is useful for filtering out single-epoch detections, which are often spurious. The default is nDetections>2, which produces a clean catalog but omits some faint objects.
Scripted image downloads and image cutout extractions
This section describe how to extract images using a script. In the near future an example Python script will be shown that finds and downloads FITS cutout images. Currently a high level description of the necessary web services is presented. Please ask email@example.com if you need more details.
There are three basic services for accessing the PS1 images:
|Get list of images||http://ps1images.stsci.edu/cgi-bin/ps1filenames.py||Returns a table with a list of available images at a given RA, Dec position or for a given skycell.|
|Download a file||http://ps1images.stsci.edu/<filename>||Directly access a single file identified using the above query.|
|Get image cutout||http://ps1images.stsci.edu/cgi-bin/fitscut.cgi||Extract a cutout image with a portion of a particular image. The image can be returned in FITS or JPEG format. For JPEG images, the image can be shrunk or expanded to a target output size.|
Image List Service
The image list service, http://ps1images.stsci.edu/cgi-bin/ps1filenames.py, has a few parameters to determine which images are returned:
|skycell||skycell=1405.053||Any PS1 mmmm.nnn skycell||Return images associated with a known PS1 skycell|
|ra, dec||ra=334.0&dec=2.0||J2000 RA & Dec in degrees||Alternative to skycell: Return the image that covers the specified RA/Dec position.|
|filters||filters=griz||Any subset of grizy||Return only images from the specified filters. Default is all 5 PS1 filters (grizy).|
|type||type=stack,stack.wt||Comma-separated list of many choices||Include various auxiliary images. Default is stack; some common choices include stack.wt (weight image), stack.mask, and stack.exp (exposure time). The other available options are stack.num, stack.expwt, stack.psf, stack.mdc, and stack.cmf. Currently we do not have documentation for the different file types.|
|sep||sep=,||tab, comma, space||Separator used between columns in the output table. Default is space.|
The Image List Service returns a table of values with a row of column headings followed by information on all images that match the requested criteria. If no images match, an empty table is returned. Here is a sample result from the query http://ps1images.stsci.edu/cgi-bin/ps1filenames.py?skycell=1405.053:
The projcell and subcell columns give the skycell information, and the RA and Dec are the position. If the query specified a skycell as input, the RA and Dec are the central position of the image. The next three columns give the filter, Modified Julian Date, and the type of this image (stack, stack.wt, etc.) The MJD is zero for stack images (which are a combination of images taken at many different epochs). The 8th column is the filename for the image (which typically is very long with lots of gibberish). The last column, shortname, is a short filename that we are adopting: it includes the skycell, information on the type of image, and the filter.
Currently if RA & Dec are specified, only the best skycell image (where the position is farthest from the edge) is included. A possible future enhancement would be to include other nearby images. Note that the naming and positions of the images follows a regular tessellation pattern so that it is fairly simple to determine the names of neighboring images.
Download a FITS File
The filename returned by the above service can be used to retrieve the FITS image directly from the web server by prepending the server name, "", before the "/data". So the URL to retrieve the first file in the table above is
Since the filenames are very long and complex, we recommend using the shortname when saving it. Then you will have a file with the same name when using a script as would be retrieved through the web interface.
The http://ps1images.stsci.edu/cgi-bin/fitscut.cgi interface can be used to retrieve cutout images in FITS or JPEG format. To get a single band image, use the filename from the above table as the red parameter of fitscut.cgi. Additional files using other filters can be specified for the green and blue parameters to get color JPEG images. (To get color FITS images, download the files directly.) The format parameter specifies the output format (fits or jpeg). This script has many additional parameters; see the HLA fitscut documentation for more details, including control of the position, cutout size, contrast, etc.
The image cutout interface works on any type of image (including masks, weights, etc.)
Plans for future additions & improvements
We plan to make a number of improvements and additions to this interface in the future. Suggestions for other additions are also welcome (send to firstname.lastname@example.org).
- Enable bulk downloads of files from the web interface (e.g., download all FITS cutouts on the web page as a tar file).
- Fill in blank pixels from neighboring skycells so that larger image cutouts are useful.
- Give the user the ability to select which filters are used to create the color image.
- Give the user the ability to adjust the contrast in the JPEG cutout images.
- Include more accurate footprints for the warp sky coverage in the database so that blank warp cutouts are rare.
- Speed up the interactive display and access to image cutouts either by recompressing the FITS skycell images to use blocks or by caching uncompressed versions of recently accessed images. Currently the images are compressed row by row, which is inefficient for access to randomly located blocks of pixels.
- Add documentation for all the different file types (stack.wt, etc.)
- Add a service that returns a model PSF at the search position.
Color 6.9x5.3 arcmin image of M8 using the PS1 riz filters created using the image cutout interface.
|PS1 Image Cutouts|