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: tutorials/cloud_access/euclid-cloud-access.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -277,10 +277,10 @@ spec_association_tbl
277
277
If you picked a target other than what this notebook uses, it's possible that there is no spectrum associated for your target's object ID. In that case, `spec_association_tbl` will contain 0 rows.
278
278
```
279
279
280
-
In above table, we can see that the `uri` column gives us location of spectra file on IBE. We can map it to S3 bucket key to retrieve spectra file from the cloud. This is a very big FITS spectra file with multiple extensions where each extension contains spectrum of one object. The `hdu` column gives us the extension number for our object. So let's extract both of these.
280
+
In above table, we can see that the `'path'` column gives us a url that can be used to call an IRSA service to get the spectrum of our object as SpectrumDM VOTable. We can map it to an S3 bucket key to retrieve a spectra file from the cloud. This is a very big FITS spectra file with multiple extensions where each extension contains spectrum of one object. The `'hdu'` column gives us the extension number for our object. So let's extract both of these.
**Author:** Jaladh Singhal (IRSA Developer) in conjunction with Vandana Desai, Brigitta Sipőcz, Tiffany Meshkatand the IPAC Science Platform team
316
+
**Author:** Jaladh Singhal (IRSA Developer) in conjunction with Vandana Desai, Brigitta Sipőcz, Tiffany Meshkat, Troy Raen, and the IRSA Data Science Team
315
317
316
-
**Updated:** 2025-03-17
318
+
**Updated:** 2025-09-23
317
319
318
320
**Contact:** the [IRSA Helpdesk](https://irsa.ipac.caltech.edu/docs/help_desk.html) with questions or reporting problems.
## 3. Read in the spectrum for only our specific object
108
106
109
-
Currently IRSA has the spectra stored in very large files containing multiple (14220) extensions with spectra of many targets within one tile. You can choose to read in the big file below to see what it looks like (takes a few mins to load) or skip this step and just read in the specific extension we want for the 1D spectra (recommended).
110
-
111
-
```{code-cell} ipython3
112
-
# hdul = fits.open(file_uri)
113
-
# hdul.info()
114
-
```
115
-
116
-
Open the large FITS file without loading it entirely into memory, pulling out just the extension we want for the 1D spectra of our object
107
+
`spectrum_path` is a url that will return a VOTable containing the spectrum of our object.
As we use astropy.visualization's ``quantity_support``, matplotlib automatically picks up the axis units from the quantitites we plot.
120
+
As we use astropy.visualization's ``quantity_support``, matplotlib automatically picks up the axis units from the quantities we plot.
137
121
```
138
122
139
123
```{code-cell} ipython3
@@ -143,15 +127,11 @@ quantity_support()
143
127
```{note}
144
128
The 1D combined spectra table contains 6 columns, below are a few highlights:
145
129
146
-
- WAVELENGTH is in Angstroms by default
147
-
- SIGNAL is the fluxand should be multiplied by the FSCALE factor in the header
130
+
- WAVELENGTH is in Angstroms by default.
131
+
- SIGNAL is the flux. The values are scaled and the scaling factor is included in the column's units. This value corresponds to the `'FSCALE'` entry in the HDU header of the original FITS file.
148
132
- MASK values can be used to determine which flux bins to discard. MASK = odd and MASK >=64 means the flux bins not be used.
0 commit comments