Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions tutorials/spherex/spherex_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,13 @@ The query results provide a lot of metadata about each spectral image. These col
results.colnames
```

The `'access_url'` column is particularly important because it tells you how to access the data. Let's look at the `'access_url'` value for the first row:
The `'access_url'` column is particularly important because it tells you how to access the data.
The order of the rows can change as new data are ingested, so rather than taking the first row, we pick one specific Detector 2 image by its observation ID and band.
This keeps the rest of the notebook describing the same file every time it is run.

```{code-cell} ipython3
spectral_image_url = results['access_url'][0]
row = (results['obs_id'] == '2025W19_1B_0166_1') & (results['energy_bandpassname'] == 'SPHEREx-D2')
spectral_image_url = results['access_url'][row][0]
print(spectral_image_url)
```

Expand Down Expand Up @@ -351,7 +354,7 @@ plt.title(f"Wavelength - Detector {detector}")
plt.show()
```

As expected, the wavelengths range from approximately 1.1=16 micron for Detector 2. You can see that the longest wavelengths are at the bottom and the shortest wavelengths are at the top. You can verify this is the case in the Firefly visualization, as well.
As expected, the wavelengths range from approximately 1.1-1.6 micron for Detector 2. You can see that the longest wavelengths are at the bottom and the shortest wavelengths are at the top. You can verify this is the case in the Firefly visualization, as well.

+++

Expand Down Expand Up @@ -480,6 +483,6 @@ print("Dimensions of VALUES array:", wavelengths.shape)
**Contact:** [IRSA Helpdesk](https://irsa.ipac.caltech.edu/docs/help_desk.html) with questions
or problems.

**Updated:** 5 March 2026
**Updated:** 4 December 2026

**Runtime:** approximately 30 seconds
Loading