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
We start by filtering the image results for the W3 band images.
138
146
Then look at the header of one of the resulting W3 band images of our target star.
139
147
Finally, we create an interactive FITS display of the W3 image(s) by [using Firefly](https://caltech-ipac.github.io/firefly_client/index.html), an open-source interactive visualization tool for astronomical data.
140
-
To understand how to open the Firefly viewer in a new tab from your Python notebook, refer to [this documentation](https://caltech-ipac.github.io/firefly_client/usage/initializing-vanilla.html) on how to initialize FireflyClient.```
148
+
To understand how to open the Firefly viewer in a new tab from your Python notebook, refer to [this documentation](https://caltech-ipac.github.io/firefly_client/usage/initializing-vanilla.html) on how to initialize FireflyClient.
149
+
150
+
You can put the URL from the column "access_url" into a browser to download the file.
151
+
Or you can work with it in Python, as shown below.
141
152
142
153
```{code-cell} ipython3
143
-
# You can put the URL from the column "access_url" into a browser to download the file.
144
-
# Or you can work with it in Python, as shown below.
145
154
w3_mask = im_table['energy_bandpassname'] == 'W3'
146
155
w3_table = im_table[w3_mask]
147
156
```
148
157
158
+
Lets look at the access_url of the first one.
159
+
Then use Astropy to examine the header of the URL from the previous step,
160
+
and grab the data and wcs from the header.
161
+
149
162
```{code-cell} ipython3
150
-
# Lets look at the access_url of the first one:
151
163
image_url = w3_table['access_url'][0]
152
164
image_url
153
165
154
-
# Use Astropy to examine the header of the URL from the previous step,
155
-
# and grab the data and wcs from the header.
156
166
with fits.open(image_url, memmap=False) as hdul:
157
167
hdul.info()
158
168
data = hdul[0].data
159
169
wcs = WCS(hdul[0].header)
160
170
```
161
171
172
+
Visualize an image by sending its URL to the Firefly viewer.
173
+
Try using the interactive tools in the viewer to explore the data.
174
+
162
175
```{code-cell} ipython3
163
176
# Uncomment when opening a Firefly viewer in a tab within Jupyter Lab with jupyter_firefly_extensions installed
#Try use the interactive tools in the viewer to explore the data.
176
187
```
177
188
178
189
## 5. Extract a cutout and plot it
@@ -203,7 +214,6 @@ plt.ylabel("Pixel Y")
203
214
204
215
+++
205
216
206
-
207
217
## About this notebook
208
218
209
219
**Updated:** 2 March 2026
@@ -218,19 +228,11 @@ This runtime is dependent on archive servers which means runtime will vary for u
218
228
## Citations
219
229
220
230
**Astropy:**
221
-
To see the Bibtex references for this, uncomment the below cell
231
+
This work made use of [Astropy](http://www.astropy.org) a community-developed core Python package and an ecosystem of tools and resources for astronomy (Astropy Collaboration et al., 2013, Astropy Collaboration et al., 2018, Astropy Collaboration et al.,2022).
222
232
223
233
**Astroquery:**
224
-
To see the Bibtex references for this, uncomment the below cell
234
+
This work made use of [Astroquery](https://astroquery.readthedocs.io/en/latest/) a set of tools for querying astronomical web forms and databases (Ginsburg, Sipőcz, Brasseur et al 2019.).
225
235
226
236
**WISE:**
227
237
This publication makes use of data products from the Wide-field Infrared Survey Explorer, which is a joint project of the University of California, Los Angeles, and the Jet Propulsion Laboratory/California Institute of Technology, funded by the National Aeronautics and Space Administration."
228
238
Digital Object Identifier (DOI): [10.26131/IRSA153](https://www.ipac.caltech.edu/doi/irsa/10.26131/IRSA153)
0 commit comments