Skip to content

Commit 89c8af8

Browse files
authored
Merge pull request #19 from Caltech-IPAC/raen/cleanup/formatting
2 parents 0d290c9 + 3ec781c commit 89c8af8

File tree

4 files changed

+20
-42
lines changed

4 files changed

+20
-42
lines changed

documentation/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPHEREx Archive at IRSA User Guide
22

3-
43
## Document Purpose and Scope
4+
55
The purpose of this document is to facilitate science with SPHEREx data by providing users with an overview of the SPHEREx data that are available at the NASA/IPAC Infrared Science Archive (IRSA) at Caltech, as well as instructions for accessing and downloading these data.
66
We also provide tips for exploring the data and getting help with any questions you may have.
77
This User Guide will evolve as the SPHEREx project delivers new data products and tools to IRSA to make available to the public.
@@ -22,7 +22,6 @@ The community will also mine SPHEREx data and combine it with synergistic data s
2222

2323
More information is available in the "Mission Overview" section of the SPHEREx Explanatory Supplement.
2424

25-
2625
## Additional Resources
2726

2827
[SPHEREx archive at IRSA](https://irsa.ipac.caltech.edu/Missions/spherex.html)

documentation/spherex_data_access.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ IRSA provides layered access to these data to support a variety of use cases and
66
These layers include:
77

88
* **Browsable Directories:** SPHEREx on-premises data products are laid out in directories that can be navigated with standard web browsers.
9-
These data products are mirrored on AWS.
9+
These data products are mirrored on AWS.
1010
* **Application Program Interfaces:** IRSA provides program-friendly Application Program Interfaces (APIs) to access SPHEREx Spectral Image data.
11-
The on-prem and cloud-hosted Quick Release 2 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)).
12-
Cutouts of the Spectral Image data held on-prem are available via IRSA's Cutout Service.
11+
The on-prem and cloud-hosted Quick Release 2 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)).
12+
Cutouts of the Spectral Image data held on-prem are available via IRSA's Cutout Service.
1313
* **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).
1414
* **SPHEREx Data Explorer:** IRSA provides a web-based Graphical User Interface (GUI) that makes it easy to search for, visualize, and download SPHEREx data.
15-
This tool provides access to the on-prem copy of the data.
15+
This tool provides access to the on-prem copy of the data.
1616

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

@@ -54,7 +54,8 @@ The content of each subdirectory and the filename formats are described in great
5454
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/).
5555
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.
5656
The list returned by the service includes a data access URL for each image.
57-
These can be used to retrieve the on-prem-hosted images using `wget` or `curl`. The returned list also returns cloud access information.
57+
These can be used to retrieve the on-prem-hosted images using `wget` or `curl`.
58+
The returned list also returns cloud access information.
5859
A brief summary of SIA2 for accessing SPHEREx data for IRSA is given below.
5960
Additional [documentation on IRSA’s SIA2 service](https://irsa.ipac.caltech.edu/ibe/sia.html) can be found on the IRSA website.
6061

@@ -110,7 +111,8 @@ If you would like to take advantage of IRSA’s SIA2 service for querying SPHERE
110111
[Astroquery](https://github.com/astropy/astroquery)
111112
: 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.
112113

113-
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:
114+
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/).
115+
For example:
114116

115117
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.
116118

documentation/spherex_data_products.md

Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,15 @@ Here we provide a concise summary of the science, calibration, and additional da
1414
This summary includes filenaming conventions, for which we adopt the following definitions:
1515

1616
- `Planning Period` designates the survey plan uploaded to the spacecraft, e.g. `2025W18_2B`.
17-
Each planning period covers approximately 3.5 days of operation.
18-
17+
Each planning period covers approximately 3.5 days of operation.
1918
- `Observation ID` includes the survey planning period and the large and small slew counters.
20-
For example, `2025W18_2B_0001_1` contains the planning period (`2025W18_2B`), the large slew counter (`0001`), and the small slew counter (`1`).
21-
Each large slew has a maximum of 4 small slews, so the allowed small slew counter range is 1 to 4.
22-
Some large slews will have fewer than 4 small slews.
23-
19+
For example, `2025W18_2B_0001_1` contains the planning period (`2025W18_2B`), the large slew counter (`0001`), and the small slew counter (`1`).
20+
Each large slew has a maximum of 4 small slews, so the allowed small slew counter range is 1 to 4.
21+
Some large slews will have fewer than 4 small slews.
2422
- `Detector` is an integer from 1 through 6.
25-
2623
- `Version` is the version of this file, e.g. 'l2' for "level 2" data products.
27-
2824
- `Processing Date` includes the year and the number of days into the year, e.g. `2025-164`.
2925

30-
3126
## Main Science Data Product: Spectral Image Multi-Extension FITS Files (MEF)
3227

3328
The main Quick Release data product is the Level 2 Spectral Image MEF, as described in Section 2.1 of the [Explanatory Supplement](https://irsa.ipac.caltech.edu/data/SPHEREx/docs/SPHEREx_Expsupp_QR.pdf).
@@ -40,7 +35,6 @@ HDU 1: IMAGE
4035
: Calibrated surface brightness flux density in units of MJy/sr, stored as a 2040 x 2040 image.
4136
No zodiacal light subtraction is applied.
4237

43-
4438
The SPHEREx focal plane is split with a dichroic to three short-wavelength and three long-wavelength detector arrays.
4539
Two focal plane assemblies (FPAs) simultaneously image the sky through a dichroic beam splitter.
4640
Each FPA contains three 2K x 2K detector arrays placed behind a set of linear variable filters (LVFs), providing narrow-band response with a band center that varies along one axis of the array.
@@ -71,11 +65,9 @@ HDU 6: WCS-WAVE
7165
: Spectral World Coordinate System (WCS) FITS-compliant lookup table that maps spectral image pixel coordinates to central wavelengths and bandwidths.
7266
The lookup table consists of 1 row with 3 columns (X, Y, VALUES).
7367

74-
7568
X and Y are each arrays defining a grid of control points in spectral image pixel space.
7669

77-
78-
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.
70+
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.
7971

8072
:::{note}
8173
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.
@@ -100,12 +92,14 @@ VALUES is an array of two-element arrays: at each (X, Y) control point, the two-
10092

10193
IRSA's Cutout Service provides spatial subsets of the SPHEREx Spectral Image MEFs.
10294
Information on how to use the Cutout Service is provided in the {ref}`access-spectral-image-cutouts` section of this User Guide.
103-
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.
95+
The cutout MEFs returned from this service contain the same HDUs as the original Spectral Images (IMAGE, FLAGS, VARIANCE, ZODI, PSF, WCS-WAVE).
96+
However, the IMAGE, FLAGS, VARIANCE, AND ZODI HDUs have been modified to include only those pixels within the specified cutout size.
10497
The WCS-WAVE HDU has also modified to provide the correct mapping between the pixels in the cutout to wavelength.
10598
The PSF HDU from the original spectral image is included unmodified in the cutout MEF.
10699

107100
The spatially-varying PSF is represented as an image cube with 121 planes.
108-
Each plane is a 101x101 pixel image representing a PSF for a different region of the detector. Users interested in performing photometry on a cutout using the information in the cutout PSF HDU will need to understand how to find the most applicable PSF cube plane for each pixel in the cutout.
101+
Each plane is a 101x101 pixel image representing a PSF for a different region of the detector.
102+
Users interested in performing photometry on a cutout using the information in the cutout PSF HDU will need to understand how to find the most applicable PSF cube plane for each pixel in the cutout.
109103
The basic steps are described below, and a [Python notebook tutorial](https://caltech-ipac.github.io/irsa-tutorials/spherex-psf/) is provided to help users get started with a simple implementation.
110104

111105
1. Determine the 0-based pixel coordinates of the position of interest in the IMAGE HDU of the cutout.
@@ -126,7 +120,6 @@ To determine if a pixel in the original Spectral Image falls within a PSF zone,
126120

127121
The Absolute Gain Matrix products are ~16 MB FITS image files (one per detector) with dimensions 2,040 × 2,040 and units of (MJy/sr) / (e−/s).
128122

129-
130123
*Filename Format:*
131124

132125
- `abs_gain_matrix_D[Detector]_spx_cal-agm-v[Version]-[Processing Date].fits`
@@ -135,15 +128,13 @@ The Absolute Gain Matrix products are ~16 MB FITS image files (one per detector)
135128

136129
- `abs_gain_matrix_D1_spx_cal-agm-v4-2025-161.fits`
137130

138-
139131
## Calibration Product: Exposure-Averaged Point Spread Functions (PSFs)
140132

141133
The Exposure-Averaged Point Spread Functions (PSFs) are ~6 MB FITS cubes (one for each detector) with dimensions 101 × 101 × 121.
142134
Each of the 121 layers represents a "super-resolution" PSF estimate in a different region (defined by an 11x11 grid) of the detector.
143135
Each PSF is a two-dimensional array with size of 101 × 101 pixels.
144136
The PSFs are oversampled such that 10 PSF pixels cover the same spatial extent as one spectral image pixel (0.615 arcsec).
145137

146-
147138
*Filename Format:*
148139

149140
- `average_psf_D[Detector]_spx_cal-psf-v[Version]-[Processing Date].fits`
@@ -152,12 +143,10 @@ The PSFs are oversampled such that 10 PSF pixels cover the same spatial extent a
152143

153144
- `average_psf_D1_spx_cal-psf-v4-2025-161.fits`
154145

155-
156146
## Calibration Product: Dark Current
157147

158148
The Dark Current products are ~16 MB FITS image files (one per detector) with dimensions 2,040 x 2,040 and units of electron/s.
159149

160-
161150
*Filename Format:*
162151

163152
- `dark_D[Detector]_spx_cal-drk-v[Version]-[Processing Date].fits`
@@ -166,15 +155,13 @@ The Dark Current products are ~16 MB FITS image files (one per detector) with di
166155

167156
- `dark_D1_spx_cal-drk-v4-2025-161.fits`
168157

169-
170158
## Calibration Product: Dichroic
171159

172160
The Dichroic products are ~16 MB FITS image files with dimensions 2,040 x 2,040.
173161
The pixel value is 0 for pixels that are unaffected by flux attenuation due to the dicroic filter and 1 for impacted pixels.
174162
A pixel is considered impacted if the flux attenuation is 50% or higher.
175163
Note that only bands 3 and 4 have any non-zero values.
176164

177-
178165
*Filename Format:*
179166

180167
- `dichroic_D[Detector]_spx_base-[Processing Date].fits`
@@ -183,12 +170,10 @@ Note that only bands 3 and 4 have any non-zero values.
183170

184171
- `dichroic_D1_spx_base-2025-158.fits`
185172

186-
187173
## Calibration Product: Electronic Gain Factors
188174

189175
The Electronic Gain Factor product is a single YAML file that includes the provenance information for the detectors and a list of 32 gain values per detector.
190176

191-
192177
*Filename Format:*
193178

194179
- `gain_factors_spx_base-[Processing Date].yaml`
@@ -197,13 +182,11 @@ The Electronic Gain Factor product is a single YAML file that includes the prove
197182

198183
- `gain_factors_spx_base-2025-158.yaml`
199184

200-
201185
## Additional Product: Nonfunctional Pixels
202186

203187
The Nonfunctional Pixel products are ~32 MB FITS image files (one per detector) with dimensions 2,040 x 2,040.
204188
Pixel values are 1 for pixels known to be permanently non-functioning and 0 otherwise.
205189

206-
207190
*Filename Format:*
208191

209192
- `nonfunc_D[Detector]_spx_base-[Processing Date].fits`
@@ -212,14 +195,12 @@ Pixel values are 1 for pixels known to be permanently non-functioning and 0 othe
212195

213196
- `nonfunc_D1_spx_base-2025-158.fits`
214197

215-
216198
## Additional Product: Nonlinearity Parameters
217199

218200
The Nonlinearity Parameter products are ~79 MB multi-extension FITS files (one per detector).
219201
Each file contains 5 extensions (Q_nl, b1, b2, b3, Qmax), each of which is an image with dimensions 2,040 x 2,040.
220202
These extensions are described in Section 3.2.1 of the [SPHEREx Explanatory Supplement](https://irsa.ipac.caltech.edu/data/SPHEREx/docs/SPHEREx_Expsupp_QR.pdf).
221203

222-
223204
*Filename Format:*
224205

225206
- `nonlinear_pars_D[Detector]_spx_base-[Processing Date].fits`
@@ -228,14 +209,12 @@ These extensions are described in Section 3.2.1 of the [SPHEREx Explanatory Supp
228209

229210
- `nonlinear_pars_D1_spx_base-2025-158.fits`
230211

231-
232212
## Additional Product: Read Noise Parameters
233213

234214
The Read Noise Parameters products are ~48 MB multi-extension FITS files (one per detector).
235215
Each file has 2 extensions: READNOISE-1 and READNOISE-2.
236216
Each extension is an image with dimensions 2040 × 2040 and units of electrons.
237217

238-
239218
*Filename Format:*
240219

241220
- `readnoise_pars_D[Detector]_spx_base-[Processing Date].fits`
@@ -244,7 +223,6 @@ Each extension is an image with dimensions 2040 × 2040 and units of electrons.
244223

245224
- `readnoise_pars_D1_spx_base-2025-158.fits`
246225

247-
248226
## Additional Product: Solid Angle Pixel Map
249227

250228
The Solid Angle Pixel Map products are ~16 MB FITS image files (one per detector) with dimensions 2,040 x 2,040.
@@ -258,7 +236,6 @@ Pixel values measure the solid angle in units of squared arcsec.
258236

259237
- `solid_angle_pixel_map_D4_spx_cal-sapm-v2-2025-164.fits`
260238

261-
262239
(data-products-spectral-wcs)=
263240
## Additional Product: Spectral WCS
264241

@@ -275,8 +252,8 @@ It contains the bandwidth in microns for each pixel.
275252
WCS-WAVE is a table with 3 columns (X, Y, VALUES) and 1 row.
276253
This is equivalent to the WCS-WAVE extension in the Spectral Image MEF file described above.
277254

278-
279255
*Filename Format:*
256+
280257
- QR2: `spectral_wcs_D[Detector]_spx_cal-wcs-v[Version]-[Processing Date].fits`
281258
- QR1: `spectral_wcs_D[Detector]_spx_base-[Processing Date].fits`
282259

myst.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 1
33
project:
44
title: SPHEREx Archive at IRSA
55
subject: SPHEREx Archive at IRSA
6-
date: 2025-10-10
6+
date: 2025-10-31
77
# description:
88
# keywords: []
99
authors: [Caltech/IPAC-IRSA]

0 commit comments

Comments
 (0)