Skip to content

Commit 9f06a35

Browse files
committed
typos, citations, moving text out of code cells
1 parent 9d84a44 commit 9f06a35

1 file changed

Lines changed: 40 additions & 38 deletions

File tree

tutorials/wise/sia_allwise_atlas.md

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
---
2+
authors:
3+
- name: IRSA Data Science Team
4+
- name: Troy Raen
5+
- name: "Brigitta Sip\u0151cz"
6+
- name: Jessica Krick
7+
- name: Andreas Faisst
8+
- name: Jaladh Singhal
9+
- name: Vandana Desai
10+
- name: Dave Shupe
211
jupytext:
312
text_representation:
413
extension: .md
@@ -9,15 +18,6 @@ kernelspec:
918
name: python3
1019
display_name: python3
1120
language: python
12-
authors:
13-
- name: IRSA Data Science Team
14-
- name: Troy Raen
15-
- name: Brigitta Sipőcz
16-
- name: Jessica Krick
17-
- name: Andreas Faisst
18-
- name: Jaladh Singhal
19-
- name: Vandana Desai
20-
- name: Dave Shupe
2121
---
2222

2323
# Searching for AllWISE Images with SIA v2
@@ -29,8 +29,8 @@ authors:
2929
By the end of this tutorial, you will:
3030

3131
* Learn how to access IRSA's WISE AllWISE Atlas (L3a) coadded images via the Simple Image Access (SIA) service.
32-
* identify which of IRSA's AllWISE Atlas images cover a specified coordinate.
33-
* Visualize one of the identified images using Forefly.
32+
* Identify which of IRSA's AllWISE Atlas images cover a specified coordinate.
33+
* Visualize one of the identified images using Firefly.
3434
* Create and display a cutout of the downloaded image.
3535

3636
+++
@@ -58,7 +58,7 @@ IRSA supports both SIA v1 and SIA v2 protocols. The version used depends on the
5858
- `astropy.units` for attaching units to numbers passed to the SIA service
5959
- `matplotlib.pyplot` for plotting
6060
- `astropy.io` to manipulate FITS files
61-
- `firefly_client` for visuzlizing images
61+
- `firefly_client` for visualizing images
6262
- `astroquery.ipac.irsa` for IRSA data access
6363
- `astropy.visualization` for color stretch display
6464

@@ -101,34 +101,42 @@ This tutorial uses SIA v2 for AllWISE Atlas images.
101101
To search for other datasets on SIA v2, try changing the filter string.
102102
Or remove the filter keyword altogether to get a full list of available SIA v2 datasets at IRSA.
103103

104+
First we need to know the name of the dataset on the IRSA system.
105+
104106
```{code-cell} ipython3
105-
#first we need to know the name of the dataset on the IRSA system
106107
names = Irsa.list_collections(filter="allwise")
107108
names
108-
109-
# We see from the resulting table that the dataset collection we are interested in is called "wise_allwise"
110109
```
111110

111+
We see from the resulting table that the dataset collection we are interested in is called "wise_allwise".
112+
Use this collection name in query below.
113+
114+
+++
115+
112116
## 3. Search for images
113117
Which images in the IRSA allwise dataset include our target of interest?
114118

119+
Get a table of all images within 1 arcsecond of our target position.
120+
115121
```{code-cell} ipython3
116-
#get a table of all images within 1 arcsecond of our target position
117122
im_table = Irsa.query_sia(pos=(pos, 1 * u.arcsec), collection='wise_allwise')
118123
```
119124

125+
Inspect the table that is returned.
126+
120127
```{code-cell} ipython3
121-
# Inspect the table that is returned
122128
im_table
123129
```
124130

131+
Look at a list of the column names included in this table.
132+
125133
```{code-cell} ipython3
126-
# Look at a list of the column names included in this table
127134
im_table.colnames
128135
```
129136

137+
Look at the unique values in one of the columns.
138+
130139
```{code-cell} ipython3
131-
# Let's look at the unique values in one of the columns
132140
print(np.unique(im_table['energy_bandpassname']))
133141
```
134142

@@ -137,28 +145,33 @@ print(np.unique(im_table['energy_bandpassname']))
137145
We start by filtering the image results for the W3 band images.
138146
Then look at the header of one of the resulting W3 band images of our target star.
139147
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.
141152

142153
```{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.
145154
w3_mask = im_table['energy_bandpassname'] == 'W3'
146155
w3_table = im_table[w3_mask]
147156
```
148157

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+
149162
```{code-cell} ipython3
150-
# Lets look at the access_url of the first one:
151163
image_url = w3_table['access_url'][0]
152164
image_url
153165
154-
# Use Astropy to examine the header of the URL from the previous step,
155-
# and grab the data and wcs from the header.
156166
with fits.open(image_url, memmap=False) as hdul:
157167
hdul.info()
158168
data = hdul[0].data
159169
wcs = WCS(hdul[0].header)
160170
```
161171

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+
162175
```{code-cell} ipython3
163176
# Uncomment when opening a Firefly viewer in a tab within Jupyter Lab with jupyter_firefly_extensions installed
164177
# fc = FireflyClient.make_lab_client()
@@ -171,8 +184,6 @@ fc.show_fits_image(file_input=image_url,
171184
plot_id="image",
172185
Title="Image"
173186
)
174-
175-
#Try use the interactive tools in the viewer to explore the data.
176187
```
177188

178189
## 5. Extract a cutout and plot it
@@ -203,7 +214,6 @@ plt.ylabel("Pixel Y")
203214

204215
+++
205216

206-
207217
## About this notebook
208218

209219
**Updated:** 2 March 2026
@@ -218,19 +228,11 @@ This runtime is dependent on archive servers which means runtime will vary for u
218228
## Citations
219229

220230
**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).
222232

223233
**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.).
225235

226236
**WISE:**
227237
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."
228238
Digital Object Identifier (DOI): [10.26131/IRSA153](https://www.ipac.caltech.edu/doi/irsa/10.26131/IRSA153)
229-
230-
```{code-cell} ipython3
231-
#import astropy
232-
#import astroquery
233-
234-
#astropy.__citation__
235-
#astroquery.__citation__
236-
```

0 commit comments

Comments
 (0)