From 68d5abd5d2834f838b19f6a372af4892638dda94 Mon Sep 17 00:00:00 2001 From: Jessica Krick Date: Fri, 4 Dec 2026 16:24:45 -0500 Subject: [PATCH] Pin spherex_intro to a specific Detector 2 image Co-Authored-By: Claude Opus 5.5 --- tutorials/spherex/spherex_intro.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tutorials/spherex/spherex_intro.md b/tutorials/spherex/spherex_intro.md index e8be4beb..cbed0084 100644 --- a/tutorials/spherex/spherex_intro.md +++ b/tutorials/spherex/spherex_intro.md @@ -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) ``` @@ -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. +++ @@ -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