Skip to content

Commit 1597fbd

Browse files
jkrickbsipocz
authored andcommitted
updating text and citations
1 parent f037e5d commit 1597fbd

1 file changed

Lines changed: 33 additions & 43 deletions

File tree

tutorials/irsa-sia-examples/sia_allwise_atlas.md

Lines changed: 33 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The [NASA/IPAC Infrared Science Archive (IRSA)](https://irsa.ipac.caltech.edu) a
3636

3737

3838
```{note}
39-
IRSA supports both SIA v1 and SIA v2 protocols. The version used depends on the specific dataset. This IRSA [website](https://irsa.ipac.caltech.edu/ibe/sia.html) provides information on which version each service uses and how to access them. Further information on how to access IRSA data with different techniques is available [here](https://irsa.ipac.caltech.edu/docs/program_interface/api_images.html)
39+
IRSA supports both SIA v1 and SIA v2 protocols. The version used depends on the specific dataset. This IRSA [website](https://irsa.ipac.caltech.edu/ibe/sia.html) provides information on which version each service uses and how to access them. Further information on how to access IRSA data with different techniques is available [here](https://irsa.ipac.caltech.edu/docs/program_interface/api_images.html). This tutorial uses SIA v2 for AllWISE Atlas images.
4040
```
4141

4242
+++
@@ -49,7 +49,7 @@ IRSA supports both SIA v1 and SIA v2 protocols. The version used depends on the
4949
- `matplotlib.pyplot` for plotting
5050
- `astropy.io` to manipulate FITS files
5151
- `firefly_client` for visuzlizing images
52-
- `astroquery/ipac.irsa` for data access
52+
- `astroquery.ipac.irsa` for IRSA data access
5353

5454
```{code-cell} ipython3
5555
# Uncomment the next line to install dependencies if needed.
@@ -83,35 +83,35 @@ pos = SkyCoord(ra=ra, dec=dec, unit='deg')
8383

8484
+++
8585

86-
IRSA provides Simple Image Access (SIA) services for various datasets. A list of available datasets and their access URLs can be found at:
87-
88-
https://irsa.ipac.caltech.edu/ibe/sia.html
89-
86+
IRSA provides Simple Image Access (SIA) services for various datasets. A list of available datasets and their access URLs can be found [here](https://irsa.ipac.caltech.edu/ibe/sia.html).
9087
This tutorial uses SIA v2 for AllWISE Atlas images.
88+
To search for other datasets on SIA v2, try changing the filter string.
89+
Or remove the filter keyword altogether to get a full list of available SIA v2 datasets at IRSA.
9190

9291
```{code-cell} ipython3
92+
#first we need to know the name of the dataset on the IRSA system
9393
names = Irsa.list_collections(filter="allwise")
9494
names
9595
9696
# We see from the resulting table that the dataset collection we are interested in is called "wise_allwise"
9797
```
9898

99-
## 3. Search for images
99+
## 3. Search for images
100+
Which images in the IRSA allwise dataset include our target of interest?
100101

101102
```{code-cell} ipython3
102103
#get a table of all images within 1 arcsecond of our target position
103-
104-
dataset_name = names['collection'][0]
104+
dataset_name = names['collection'][0] #name of our favorite dataset = "wise_allwise"
105105
im_table = Irsa.query_sia(pos=(pos, 1 * u.arcsec), collection=dataset_name)
106106
```
107107

108-
Inspect the table that is returned
109-
110108
```{code-cell} ipython3
109+
# Inspect the table that is returned
111110
im_table
112111
```
113112

114113
```{code-cell} ipython3
114+
# Look at a list of the column names included in this table
115115
im_table.colnames
116116
```
117117

@@ -122,54 +122,43 @@ im_table['energy_bandpassname']
122122

123123
## 4.Locate and visualize an image of interest
124124

125-
+++
126-
127-
Let's search the image results for the W3 band image.
125+
We start by filtering the image results for the W3 band images.
126+
Then look at the header of one of the resulting W3 band images of our target star.
127+
Finally, we use the open-source astronomy data visualization software Firefly to display the fits image in a new tab.
128128

129129
```{code-cell} ipython3
130130
# You can put the URL from the column "access_url" into a browser to download the file.
131131
# Or you can work with it in Python, as shown below.
132132
w3_mask = im_table['energy_bandpassname'] == 'W3'
133133
w3_table = im_table[w3_mask]
134134
135+
```
136+
137+
```{code-cell} ipython3
135138
# Lets look at the access_url of the first one:
136139
image_url = w3_table['access_url'][0]
137140
image_url
138-
```
139141
140-
```{code-cell} ipython3
141142
#Use Astropy to examine the header of the URL from the previous step.
142-
143143
hdulist = fits.open(image_url)
144144
hdulist.info()
145145
```
146146

147-
Download the image and open it in Astropy
148-
149147
```{code-cell} ipython3
150-
## 7. Visualize a SPHEREx Spectral Image MEF using the Firefly Python Client.
151-
152-
153-
# We will use the open-source astronomy data visualization software Firefly.
154-
# Firefly has a Python client.
155-
156-
#Open a Firefly viewer in a tab within jupyterlab.
157-
158-
fc = FireflyClient.make_client(url="https://irsa.ipac.caltech.edu/irsaviewer")
148+
# Open a Firefly viewer in a tab within jupyterlab.
159149
fc = FireflyClient.make_lab_client()
160150
161151
# Visualize an image by sending its URL to the viewer.
162-
163152
fc.show_fits_image(file_input=image_url,
164153
plot_id="image",
165154
Title="Image"
166155
)
167156
168157
#Try use the interactive tools in the viewer to explore the data.
169-
170158
```
171159

172160
## 5. Extract a cutout and plot it
161+
If you want to see just a cutout of a certain region around the target, we do that below using astropy's Cutout2D.
173162

174163
```{code-cell} ipython3
175164
data = hdulist[0].data
@@ -196,13 +185,9 @@ plt.colorbar()
196185

197186
## About this notebook
198187

199-
+++
200-
201-
## About this notebook
202-
203188
**Authors:** IRSA Data Science Team, including Troy Raen, Brigitta Sipőcz, Jessica Krick, Andreas Faisst, Jaladh Singhal, Vandana Desai, Dave Shupe
204189

205-
**Updated:** 16 February 2026
190+
**Updated:** 19 February 2026
206191

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

@@ -213,16 +198,21 @@ This runtime is dependent on archive servers which means runtime will vary for u
213198

214199
## Citations
215200

216-
+++
201+
**Astropy:**
202+
To see the Bibtex references for this, uncomment the below cell
217203

218-
If you use `astropy` for published research, please cite the authors. Follow these links for more information about citing `astropy`:
204+
**Astroquery:**
205+
To see the Bibtex references for this, uncomment the below cell
219206

220-
* [Citing `astropy`](https://www.astropy.org/acknowledging.html)
207+
**WISE:**
208+
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."
209+
Digital Object Identifier (DOI): [10.26131/IRSA153](https://www.ipac.caltech.edu/doi/irsa/10.26131/IRSA153)
221210

222-
+++
223211

224-
Please include the following in any published material that makes use of the WISE data products:
225-
226-
"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."
212+
```{code-cell} ipython3
213+
#import astropy
214+
#import astroquery
227215
228-
Please also cite the dataset Digital Object Identifier (DOI): [10.26131/IRSA153](https://www.ipac.caltech.edu/doi/irsa/10.26131/IRSA153)
216+
#astropy.__citation__
217+
#astroquery.__citation__
218+
```

0 commit comments

Comments
 (0)