Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

SPHEREx Archive at IRSA User Guide

SPHEREx Data Access

IRSA serves SPHEREx data from two locations: (1) on-premises at IPAC; and (2) on the cloud via Amazon Web Services (AWS). IRSA provides layered access to these data to support a variety of use cases and users. The available access methods are summarized in Table 1 and described in the following sections.

Table 1:Data access overview

Access MethodDescription
Browsable DirectoriesBrowse directory structures and access individual files
Application Programming Interfaces (APIs)Access Spectral Images, All-Sky Cubes, and cutouts programmatically
Python PackagesSearch for, retrieve, and analyze SPHEREx data using Python
SPHEREx Data ExplorerInteractively search and visualize the data
FornaxAnalyze SPHEREx data on the cloud without downloading large datasets

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 on-premises data directories is: https://irsa.ipac.caltech.edu/ibe/data/spherex/. All of the data products are also available on the cloud via AWS. Please see our instructions for accessing on-cloud SPHEREx data. For large-scale analysis, we recommend using Fornax to work with the data on the cloud rather than downloading it.

There is one subdirectory per data release: dr1, qr3, and qr2. QR2 data remain available for direct download through February 2027 but are no longer searchable. Under each, the public data products are organized into subdirectories based on the organizational scheme listed below. The content of each subdirectory and the filename formats are described in greater detail in the Data Products section of this user guide and in the SPHEREx Explanatory Supplement.

Application Programming Interfaces (APIs)

IVOA Simple Image Access V2 Protocol (SIA2)

IRSA provides API access to SPHEREx Spectral Image Multi-Extension FITS files (MEFs) and All-Sky Cube FITS files 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 table returned by the SIA2 service includes an access_url column containing a data access URL for each image. These can be used to retrieve the on-premises images using wget or curl. The returned table also includes a cloud_access column containing cloud-hosted data access information. The Python tutorial notebooks IRSA Cloud Access Introduction and SPHEREx Source Discovery Tool include examples that show how to use the cloud_access information.

A brief summary of using SIA2 to access SPHEREx data at 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 five SPHEREx-related SIA2 collections:

DR1 and QR3 together supersede QR2, so to search all current SPHEREx Spectral Images, search both spherex_dr1 and spherex_qr3 (and the corresponding _deep collections if you want the deep fields). QR2 data are not searchable via SIA2.

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

wget -O spherex-example1.html "https://irsa.ipac.caltech.edu/SIA?COLLECTION=spherex_qr3&POS=circle+127.69444+-39.17760+0.01&RESPONSEFORMAT=HTML"

or:

curl -o spherex-example2.html "https://irsa.ipac.caltech.edu/SIA?COLLECTION=spherex_dr1&POS=circle+127.69444+-39.17760+0.01&RESPONSEFORMAT=HTML"

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

Cutouts of SPHEREx Spectral Image MEFs

If you have identified the access URL for an on-premises Spectral Image MEF using SIA2 as described above, 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 at https://irsa.ipac.caltech.edu/ibe/cutouts.html.

Example:

curl -o cutout.fits "https://irsa.ipac.caltech.edu/ibe/data/spherex/qr3/level2/2026W21_2A/l2b-v27-2026-268/1/level2_2026W21_2A_0001_2D1_spx_l2b-v27-2026-268.fits?center=337.8783221,-5.1891588&size=0.1"

This cutout service is also invoked by the SPHEREx Data Explorer when users select the cutout option upon download.

This cutout service can also be invoked via Python, as illustrated in the Python Tutorial notebook titled Download a collection of SPHEREx Spectral Image cutouts as a multi-extension FITS file. Information on how to work with the ePSF extension in DR1 and QR3 cutouts is provided in the Cutouts of Spectral Image MEFs section of this User Guide and demonstrated in the Python Tutorial notebook titled Understanding and Extracting the ePSF Extension in a SPHEREx Cutout.

Python Packages

For Python access to IRSA’s VO-compliant API services, we recommend the following libraries:

IRSA’s Python Tutorial Notebooks: SPHEREx contain many examples of how to access and analyze SPHEREx data. For example:

SPHEREx Data Explorer

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. Tools available there include:

Fornax

Fornax is a NASA cloud-based science platform that enables astronomers to analyze large datasets without downloading them to their local computers.

Fornax provides Jupyter notebooks and scalable computing resources for working with SPHEREx data alongside data from other astronomical archives. Users can:

Example Python notebooks are pre-loaded in users’ home directories under ~/fornax-notebooks/, including IRSA’s SPHEREx tutorials and the cross-mission Fornax demo notebooks.

See the Fornax Quick Start Guide to get started.