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 Method | Description |
|---|---|
| Browsable Directories | Browse directory structures and access individual files |
| Application Programming Interfaces (APIs) | Access Spectral Images, All-Sky Cubes, and cutouts programmatically |
| Python Packages | Search for, retrieve, and analyze SPHEREx data using Python |
| SPHEREx Data Explorer | Interactively search and visualize the data |
| Fornax | Analyze 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://
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.
Spectral Image Multi-Extension FITS Files (MEFs):
level2/[Planning Period]/l2b-v[Version]-[Processing Date]/[Detector]/All-Sky Cube: (DR1 only)
hips5_cube/hips_20261026/Norder5/Dir[Directory Number]/Absolute Gain Matrix:
abs_gain_matrix/cal-agm-v[Version]-[Processing Date]/[Detector]/Auroral Line Template: (DR1 and QR3 only)
aurora_template/base-[Processing Date]/[Detector]/Exposure-Averaged Point Spread Functions (PSFs): (QR2 only)
average_psf/cal-psf-v[Version]-[Processing Date]/[Detector]/Dark Current:
dark/cal-drk-v[Version]-[Processing Date]/[Detector]/Dichroic:
dichroic/base-[Processing Date]/[Detector]/Effective Point Spread Functions (ePSFs): (DR1 and QR3 only)
epsf/cal-epsf-v[Version]-[Processing Date]/[Detector]/Electronic Gain Factors:
gain_factors/base-[Processing Date]/He Emission Template: (DR1 and QR3 only)
he_template/base-[Processing Date]/[Detector]/Flux Corrections: (DR1 and QR3 only)
l3_flux_corrections/cal-flxc-v[Version]-[Processing Date]/[Detector]/Nonfunctional Pixels:
nonfunc_v2/base-[Processing Date]/[Detector]/(DR1 and QR3) ornonfunc/base-[Processing Date]/[Detector]/(QR2)Nonlinearity Parameters:
nonlinear_pars/base-[Processing Date]/[Detector]/Read Noise Parameters:
readnoise_pars/base-[Processing Date]/[Detector]/Shuttle Glow Template: (DR1 and QR3 only)
shuttle_glow_template/base-[Processing Date]/[Detector]/Simple Imaging Polynomials (SIP):
sip/cal-sip-v[Version]-[Processing Date]/[Detector]/Solid Angle Pixel Map:
solid_angle_pixel_map/cal-sapm-v[Version]-[Processing Date]/[Detector]/Spectral Channels:
spectral_channels/cal-sch-v[Version]-[Processing Date]/Spectral WCS:
spectral_wcs/cal-wcs-v[Version]-[Processing Date]/[Detector]/Crosstalk Parameters: (DR1 and QR3 only)
xtalk_class[Crosstalk Type]/base-[Processing Date]/[Detector]/Zodi Scaling: (DR1 and QR3 only)
zodi_scaling_v[Version]/cal-zodi-v[Version]-[Processing Date]/[Detector]/
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:
SPHEREx DR1 Spectral Image MEFs that are part of the SPHEREx Wide Survey can be accessed with:
COLLECTION=spherex_dr1. Use this collection if you are interested in more uniform coverage across the entire sky and want to ignore the additional coverage in the deep fields.SPHEREx DR1 Spectral Image MEFs that are part of the SPHEREx Deep Survey can be accessed with:
COLLECTION=spherex_dr1_deep.SPHEREx DR1 All-Sky Cube FITS files can be accessed with:
COLLECTION=spherex_dr1_cube.SPHEREx QR3 Spectral Image MEFs that are part of the SPHEREx Wide Survey can be accessed with:
COLLECTION=spherex_qr3. Use this collection if you are interested in more uniform coverage across the entire sky and want to ignore the additional coverage in the deep fields.SPHEREx QR3 Spectral Image MEFs that are part of the SPHEREx Deep Survey can be accessed with:
COLLECTION=spherex_qr3_deep.
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://
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:
Astroquery: The
astroquery.ipac.irsamodule provides convenient functions for searching IRSA’s images (SIA2), catalogs (TAP), and spectra (SSA), including the SPHEREx collections listed in APIs. We recommend it for most users.PyVO: PyVO is a general-purpose library for VO services at IRSA and at any other archive that supports the standard IVOA protocols. Use PyVO when you want lower-level access to the services than Astroquery provides, or want to use the same code to query several archives.
IRSA’s Python Tutorial Notebooks: SPHEREx contain many examples of how to access and analyze SPHEREx data. For example:
Introduction to SPHEREx Spectral Images shows how to use the Astroquery library to execute an IVOA Simple Image Access (SIA2) query for SPHEREx Spectral Images that cover the specified coordinates and collection.
SPHEREx Standalone Spectrophotometry Tool runs forced photometry on SPHEREx Spectral Images at the specified coordinates to build a 0.75–5 µm spectrum.
SPHEREx Source Discovery Tool demonstrates how to use the included Python package to discover, extract, and visualize sources from SPHEREx Spectral Images.
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:
Spectral Image Search
Spectrophotometry Tool
Mosaic Tool
Results visualization
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:
Explore and analyze SPHEREx Spectral Images and All-Sky Cubes using Python.
Combine SPHEREx data with observations from other missions and surveys.
Develop and share reproducible analysis workflows in Jupyter notebooks.
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.