Skip to article frontmatterSkip to article content
SPHEREx Archive at IRSA

SPHEREx Data Access

IRSA serves SPHEREx data on premises at IPAC. IRSA provides layered access to these data to support a variety of use cases and users. These layers include:

Each of these data access layers is described in greater detail in the subsections below.

Browsable Directories

SPHEREx data products are laid out in directories that can be navigated with standard web browsers. This is convenient for users to get a quick sense of the types of data products that are available, to quickly download some examples by clicking through the directory tree, and to script bulk downloads using wget or curl.

The root of the SPHEREx data quick release data directories is: https://irsa.ipac.caltech.edu/ibe/data/spherex/qr

The public data products are organized into subdirectories based on the following organizational scheme:

The content of each subdirectory is described in greater detail in the Data Products section of this user guide and in the SPHEREx Explanatory Supplement.

Application Program Interfaces (APIs)

SPHEREx Spectral Image MEFs and Calibration Files are available through the IVOA Simple Image Access Protocol

IRSA provides API access to SPHEREx Spectral Images through version 2 of the VO Simple Image Access (SIA2) protocol. SIA2 allows users to query for a list of images that satisfy constraints based on position(s) on the sky, band, time, ID, and instrument. The list returned by the service includes data access URLs, which can be used to retrieve some or all of the images in the list using wget or curl. A brief summary of SIA2 for accessing SPHEREx data for IRSA is given below. Additional documentation on IRSA’s SIA2 service can be found on the IRSA website:

IRSA’s generic SIA2 endpoint is:

https://irsa.ipac.caltech.edu/SIA?

Users must add a COLLECTION parameter to this endpoint to specify which dataset to search. There are three SPHEREx-related SIA2 collections:

You can use wget or curl to submit SIA2 queries from the command line. For example:

See the section on Python packages to learn how to use Python wrappers around IRSA’s SIA2 service.

Cutouts of SPHEREx Spectral Image MEFs

SPHEREx Spectral Image MEFs are available on premises at IPAC and on the cloud.

If you have identified the access URL for an on-premises Spectral Image, you can request a cutout of this MEF by appending a query string containing the center and size parameters. The parameters are described in more detail here:

https://irsa.ipac.caltech.edu/ibe/cutouts.html

Example:

curl -o cutout.fits "https://irsa.ipac.caltech.edu/ibe/data/spherex/qr/level2/2025W19_2B/l2b-v11-2025-163/3/level2_2025W19_2B_0073_2D3_spx_l2b-v11-2025-163.fits?center=156.09328159,-41.64466331&size=0.1"

Python packages: PyVO & Astroquery

If you would like to take advantage of IRSA’s SIA2 service for querying SPHEREx images, but prefer to use Python rather than the command line, you may be interested in using one of two Python libraries:

PyVO
This module lets you find and retrieve astronomical data available from archives that support standard IVOA protocols.
Astroquery
This module provides access to IRSA’s public astrophysics data from projects such as SPHEREx, Euclid, Spitzer, WISE/NEOWISE, SOFIA, IRTF, 2MASS, Herschel, IRAS, and ZTF.

Examples of data queries using both of these libraries can be found in IRSA’s Python Notebook Tutorial Repository.

SPHEREx Data Explorer Web Application

Users who prefer an interactive graphical user interface (GUI) for specifying search constraints, submitting queries, and visualizing the results should consider the SPHEREx Data Explorer, which includes its own context-sensitive help.