You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/spherex_data_access.md
+39-15Lines changed: 39 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,23 @@
1
1
# SPHEREx Data Access
2
2
3
-
IRSA serves SPHEREx data on premises at IPAC.
3
+
IRSA serves SPHEREx data from two locations: (1) on premises at IPAC; and (2) on the cloud via Amazon Web Services (AWS).
4
4
IRSA provides layered access to these data to support a variety of use cases and users.
5
5
These layers include:
6
6
7
7
***Browsable Directories:** SPHEREx on-premises data products are laid out in directories that can be navigated with standard web browsers.
8
-
***Application Program Interfaces:** IRSA provides SPHEREx data access APIs, most of which are compliant with International Virtual Observatory Alliance (IVOA) standards.
9
-
***Python Packages:** SPHEREx data at IRSA are accessible via the Python packages pyvo and astroquery
8
+
These data products are mirrored on AWS.
9
+
***Application Program Interfaces:** IRSA provides program-friendly Application Program Interfaces (APIs) to access SPHEREx Spectral Image data.
10
+
The on-prem and cloud-hosted Quick Release Spectral Images that have been released thus far are accessible via the [Simple Image Access V2 protocol](https://ivoa.net/documents/SIA/20151223/) defined by the International Virtual Observatory Alliance ([IVOA](https://ivoa.net)).
11
+
Cutouts of the Spectral Image data held on-prem are available via IRSA's Cutout Service.
12
+
***Python Packages:** SPHEREx data at IRSA are accessible via the Python packages [pyvo](https://pyvo.readthedocs.io/en/latest/) and [astroquery](https://astroquery.readthedocs.io/en/latest/ipac/irsa/irsa.html).
10
13
***SPHEREx Data Explorer:** IRSA provides a web-based Graphical User Interface (GUI) that makes it easy to search for, visualize, and download SPHEREx data.
14
+
This tool provides access to the on-prem copy of the data.
11
15
12
16
Each of these data access layers is described in greater detail in the subsections below.
13
17
14
18
## Browsable Directories
15
-
SPHEREx data products are laid out in directories that can be navigated with standard web browsers.
19
+
20
+
SPHEREx on-prem data products are laid out in directories that can be navigated with standard web browsers.
16
21
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`.
17
22
18
23
The root of the SPHEREx data quick release data directories is:
@@ -28,20 +33,24 @@ The public data products are organized into subdirectories based on the followin
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](https://irsa.ipac.caltech.edu/data/SPHEREx/docs/SPHEREx_Expsupp_QR.pdf).
34
40
41
+
All of the data products listed above are also available on the cloud via AWS.
42
+
Please see our [instructions for accesssing cloud-hosted SPHEREx data](https://irsa.ipac.caltech.edu/cloud_access/).
35
43
36
44
## Application Program Interfaces (APIs)
37
45
38
-
### SPHEREx Spectral Image MEFs and Calibration Files are available through the IVOA Simple Image Access Protocol
46
+
### IVOA Simple Image Access V2 Protocol
39
47
40
-
IRSA provides API access to SPHEREx Spectral Images through version 2 of the VO Simple Image Access (SIA2) protocol.
48
+
IRSA provides API access to SPHEREx Spectral Image Multi-Extension FITS files (MEFs) and associated calibration files through [version 2 of the VO Simple Image Access (SIA2) protocol](https://ivoa.net/documents/SIA/20151223/).
41
49
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.
42
-
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.
50
+
The list returned by the service includes a data access URL for each image.
51
+
These can be used to retrieve the on-prem-hosted images using `wget` or `curl`. The returned list also returns cloud access information.
43
52
A brief summary of SIA2 for accessing SPHEREx data for IRSA is given below.
44
-
Additional [documentation on IRSA’s SIA2 service](https://irsa.ipac.caltech.edu/ibe/sia.html) can be found on the IRSA website:
53
+
Additional [documentation on IRSA’s SIA2 service](https://irsa.ipac.caltech.edu/ibe/sia.html) can be found on the IRSA website.
45
54
46
55
:::{note}
47
56
SPHEREx data are ingested on a weekly basis.
@@ -56,11 +65,12 @@ IRSA's generic SIA2 endpoint is:
56
65
Users must add a `COLLECTION` parameter to this endpoint to specify which dataset to search.
57
66
There are three SPHEREx-related SIA2 collections:
58
67
59
-
* SPHEREx Quick Release Spectral Image MEFs that are part of the SPHEREx **Wide Survey** can be accessed with: `COLLECTION=spherex_qr`
68
+
* SPHEREx Quick Release Spectral Image MEFs that are part of the SPHEREx **Wide Survey** can be accessed with: `COLLECTION=spherex_qr`.
69
+
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.
60
70
61
-
* SPHEREx Quick Release Spectral Image MEFs that are part of the SPHEREx **Deep Survey** can be accessed with: `COLLECTION=spherex_qr_deep`
71
+
* SPHEREx Quick Release Spectral Image MEFs that are part of the SPHEREx **Deep Survey** can be accessed with: `COLLECTION=spherex_qr_deep`.
62
72
63
-
* SPHEREx Quick Release **Calibration files** can be accessed with: `COLLECTION=spherex_qr_cal`
73
+
* SPHEREx Quick Release **Calibration files** can be accessed with: `COLLECTION=spherex_qr_cal`.
64
74
65
75
You can use `wget` or `curl` to submit SIA2 queries from the command line.
66
76
For example:
@@ -71,16 +81,19 @@ See the section on Python packages to learn how to use Python wrappers around IR
71
81
72
82
### Cutouts of SPHEREx Spectral Image MEFs
73
83
74
-
SPHEREx Spectral Image MEFs are available on premises at IPAC and on the cloud.
75
-
76
-
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:
84
+
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 here:
This cutout service is also invoked by the SPHEREx Data Collection Explorer Spectral Image Search when users select the cutout option upon download.
93
+
94
+
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](https://caltech-ipac.github.io/irsa-tutorials/spherex-cutouts/).
95
+
Information on how to work with the PSF extension in these cutouts is documented in the [Data Products section](https://caltech-ipac.github.io/spherex-archive-documentation/spherex-data-products#cutouts-of-spectral-image-mefs) of this User Guide and demonstrated in the Python Tutorial notebook titled [Understanding and Extracting the PSF Extension in a SPHEREx Cutout](https://caltech-ipac.github.io/irsa-tutorials/spherex-psf/).
96
+
84
97
## Python packages: PyVO & Astroquery
85
98
86
99
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:
@@ -91,7 +104,18 @@ If you would like to take advantage of IRSA’s SIA2 service for querying SPHERE
: 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.
93
106
94
-
Examples of data queries using both of these libraries can be found in [IRSA’s Python Notebook Tutorial Repository](https://caltech-ipac.github.io/irsa-tutorials/).
107
+
Examples of data queries using both of these libraries can be found in [IRSA’s Python Notebook Tutorial Repository](https://caltech-ipac.github.io/irsa-tutorials/). For example:
108
+
109
+
The notebook titled [Introduction to SPHEREx Spectral Images](https://caltech-ipac.github.io/irsa-tutorials/spherex-intro/) 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.
110
+
111
+
The notebook titled [Download a collection of SPHEREx Spectral Image cutouts as a multi-extension FITS file](https://caltech-ipac.github.io/irsa-tutorials/spherex-cutouts/#id-5-query-irsa-for-a-list-of-cutouts-that-satisfy-the-criteria-specified-above) demonstrates how to use the PyVO library to execute an IVOA Table Access Protocol (TAP) query for SPHEREx spectral images that cover the specified coordinates and match the specified bandpass.
112
+
113
+
114
+
:::{note}
115
+
SPHEREx data are ingested on a weekly basis.
116
+
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.
117
+
Availability via SIA2 and Python libraries like Astroquery and PyVO will lag on the order of a day.
Copy file name to clipboardExpand all lines: documentation/spherex_data_products.md
+18-6Lines changed: 18 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
# SPHEREx Data Products
2
2
3
-
A detailed description of SPHEREx data products available to the public is provided in the [SPHEREx Explanatory Supplement](https://irsa.ipac.caltech.edu/data/SPHEREx/docs/SPHEREx_Expsupp_QR.pdf).
3
+
IRSA began releasing SPHEREx Spectral Image data on a weekly basis in July 2025 (Quick Release 1; QR1).
4
+
In October 2025, IRSA began distributing SPHEREx Spectral Image data processed with substantially improved calibrations.
5
+
This new processing, referred to as QR2, includes reprocessed versions of all Spectral Image data acquired since the start of the mission.
6
+
Future quick releases will also use the QR2 pipeline.
7
+
IRSA will continue to provide access to QR1 data for reference.
8
+
However, QR2 supersedes QR1 and will be the default returned in the SPHEREx Data Explorer and by all IRSA program-friendly APIs.
9
+
QR1 data will remain available only through browsable directory listings.
10
+
11
+
A detailed description of SPHEREx quick release data products available to the public is provided in the [SPHEREx Explanatory Supplement](https://irsa.ipac.caltech.edu/data/SPHEREx/docs/SPHEREx_Expsupp_QR.pdf).
4
12
Here we provide a concise summary of the science, calibration, and additional data products available at IRSA.
5
13
This summary includes filenaming conventions, for which we adopt the following definitions:
6
14
@@ -30,6 +38,7 @@ Each Spectral MEF is approximately 70 MB and contains 6 extensions:
30
38
HDU 1: IMAGE
31
39
: Calibrated surface brightness flux density in units of MJy/sr, stored as a 2040 x 2040 image.
32
40
No zodiacal light subtraction is applied.
41
+
33
42
34
43
The SPHEREx focal plane is split with a dichroic to three short-wavelength and three long-wavelength detector arrays.
35
44
Two focal plane assemblies (FPAs) simultaneously image the sky through a dichroic beam splitter.
@@ -61,14 +70,16 @@ HDU 6: WCS-WAVE
61
70
: Spectral World Coordinate System (WCS) FITS-compliant lookup table that maps spectral image pixel coordinates to central wavelengths and bandwidths.
62
71
The lookup table consists of 1 row with 3 columns (X, Y, VALUES).
63
72
73
+
64
74
X and Y are each arrays defining a grid of control points in spectral image pixel space.
65
75
66
-
VALUES is an array of two-element arrays: at each (X, Y) control point, the two-element array contains the central wavelength and the corresponding bandwidth.
76
+
77
+
VALUES is an array of two-element arrays: at each (X, Y) control point, the two-element array contains the central wavelength and the corresponding bandwidth.
67
78
68
79
:::{note}
69
-
This was originally adopted to support the unique nature of the SPHEREx LVF filters, this rarely-used part of the FITS standard has yet to be implemented by all readers.
80
+
Adopted to support the unique nature of the SPHEREx LVF filters, this rarely-used part of the FITS standard has yet to be implemented by all readers.
70
81
71
-
If your FITS client software doesn't automatically recognize this, you can manually determine the central wavelength or bandwidth at an arbitrary pixel location by identifying the four nearest control points and applying bilinear interpolation.
82
+
If your FITS client software doesn't automatically recognize this WCS-WAVE, you can manually determine the central wavelength or bandwidth at an arbitrary pixel location by identifying the four nearest control points and applying bilinear interpolation.
72
83
This method yields values accurate to within approximately 1 nm.
73
84
The information in the WCS-WAVE extension of the Spectral Image MEF is also provided in a stand-alone data product described below in [](#data-products-spectral-wcs).
74
85
The fidelity of the WCS-WAVE lookup table is intended for visualization purposes.
@@ -85,8 +96,9 @@ HDU 6: WCS-WAVE
85
96
86
97
## Cutouts of Spectral Image MEFs
87
98
88
-
IRSA enables users to access rectangular cutouts of a SPHEREx Spectral Image MEF by simply appending a [query string](https://irsa.ipac.caltech.edu/ibe/cutouts.html) containing center and size parameters to the image URL.
89
-
These cutout MEFs contain the same HDUs as the original Spectral Images (IMAGE, FLAGS, VARIANCE, ZODI, PSF, WCS-WAVE). However, the IMAGE, FLAGS, VARIANCE, AND ZODI HDUs have been modified to include only those pixels within the specified cutout size.
99
+
IRSA's Cutout Service provides spatial subsets of the SPHEREx Spectral Image MEFs.
100
+
Information on how to use the Cutout Service is provided in the [Data Access](https://caltech-ipac.github.io/spherex-archive-documentation/spherex-data-access#cutouts-of-spherex-spectral-image-mefs) section of this User Guide.
101
+
The cutout MEFs returned from this service contain the same HDUs as the original Spectral Images (IMAGE, FLAGS, VARIANCE, ZODI, PSF, WCS-WAVE). However, the IMAGE, FLAGS, VARIANCE, AND ZODI HDUs have been modified to include only those pixels within the specified cutout size.
90
102
The WCS-WAVE HDU has also modified to provide the correct mapping between the pixels in the cutout to wavelength.
91
103
The PSF HDU from the original spectral image is included unmodified in the cutout MEF.
0 commit comments