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)

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:

Note: SPHEREx data are ingested on a weekly basis. Due to the nature of the ingestion process, new SPHEREx data will first be available in the browsable directories and in the SPHEREx Data Explorer GUI. Availability via SIA2 and Python libraries like Astroquery and PyVO will lag on the order of a day.

IRSA’s generric 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 next section to learn how to use Python wrappers around IRSA’s SIA2 service.

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:

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.