Skip to content

Commit 0103686

Browse files
committed
Use SpectrumDM service in 4_Euclid_intro_PHZ_catalog.md
1 parent f796d94 commit 0103686

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tutorials/euclid_access/4_Euclid_intro_PHZ_catalog.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -307,20 +307,18 @@ result_spectra
307307
Pull out the file name from the ``result_spectra`` table:
308308

309309
```{code-cell} ipython3
310-
file_uri = urllib.parse.urljoin(Irsa.tap_url, result_spectra['uri'][0])
311-
file_uri
310+
spectrum_path = f"https://irsa.ipac.caltech.edu/{result_spectra['path'][0]}"
311+
spectrum_path
312312
```
313313

314314
```{code-cell} ipython3
315-
with fits.open(file_uri) as hdul:
316-
spectrum = QTable.read(hdul[result_spectra['hdu'][0]], format='fits')
317-
spectrum_header = hdul[result_spectra['hdu'][0]].header
315+
spectrum = QTable.read(spectrum_path)
318316
```
319317

320318
### Now the data are read in, plot the spectrum
321319

322320
```{tip}
323-
As we use astropy.visualization’s quantity_support, matplotlib automatically picks up the axis units from the quantitites we plot.
321+
As we use astropy.visualization’s quantity_support, matplotlib automatically picks up the axis units from the quantities we plot.
324322
```
325323

326324
```{code-cell} ipython3
@@ -418,8 +416,8 @@ fc.show_table(uploaded_table)
418416

419417
## About this Notebook
420418

421-
**Author**: Tiffany Meshkat, Anahita Alavi, Anastasia Laity, Andreas Faisst, Brigitta Sipőcz, Dan Masters, Harry Teplitz, Jaladh Singhal, Shoubaneh Hemmati, Vandana Desai
419+
**Author**: Tiffany Meshkat, Anahita Alavi, Anastasia Laity, Andreas Faisst, Brigitta Sipőcz, Dan Masters, Harry Teplitz, Jaladh Singhal, Shoubaneh Hemmati, Vandana Desai, Troy Raen
422420

423-
**Updated**: 2025-04-10
421+
**Updated**: 2025-09-24
424422

425423
**Contact:** [the IRSA Helpdesk](https://irsa.ipac.caltech.edu/docs/help_desk.html) with questions or reporting problems.

0 commit comments

Comments
 (0)