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
This notebook tutorial demonstrates the process of querying IRSA's Simple Image Access (SIA) service for AllWISE Atlas images, making a cutout image (thumbnail), and displaying the cutout.
23
+
# Searching for AllWISE Images with SIA v2
22
24
23
25
+++
24
26
25
-
26
-
27
27
## Learning Goals
28
28
29
29
By the end of this tutorial, you will:
30
30
31
-
* Learn how to search the NASA Astronomical Virtual Observatory Directory web portal for a service that provides access to IRSA's WISE AllWISE Atlas (L3a) coadded images.
32
-
*Use the Python pyvo package to identify which of IRSA's AllWISE Atlas images cover a specified coordinate.
33
-
*Download one of the identified images.
31
+
* 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.
34
34
* Create and display a cutout of the downloaded image.
35
35
36
36
+++
@@ -41,51 +41,49 @@ The AllWISE program builds upon the work of the successful Wide-field Infrared S
41
41
42
42
https://irsa.ipac.caltech.edu/Missions/wise.html
43
43
44
-
The [NASA/IPAC Infrared Science Archive (IRSA)](https://irsa.ipac.caltech.edu) at Caltech is the archive for AllWISE images and catalogs. The AllWISE Atlas images that are the subject of this tutorial are made accessible via the [International Virtual Observatory Alliance (IVOA)](https://ivoa.net)[Simple Image Access (SIA)](https://wiki.ivoa.net/internal/IVOA/SiaInterface/SIA-V2-Analysis.pdf) protocol. IRSA's AllWISE SIA service is registered in the NASA Astronomical Virtual Observatory (NAVO) [Directory](https://vao.stsci.edu). Based on the registered information, the Python package [pyvo](https://pyvo.readthedocs.io) can be used to query the SEIP SIA service for a list of images that meet specified criteria, and standard Python libraries can be used to download and manipulate the images.
45
-
Other datasets at IRSA are available through other SIA services:
44
+
The [NASA/IPAC Infrared Science Archive (IRSA)](https://irsa.ipac.caltech.edu) at Caltech is the archive for AllWISE images and catalogs. The AllWISE Atlas images that are the subject of this tutorial are made accessible via the [International Virtual Observatory Alliance (IVOA)](https://ivoa.net)[Simple Image Access (SIA)](https://www.ivoa.net/documents/SIA/) protocol.
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.
49
+
```
49
50
50
51
+++
51
52
52
53
## Imports
53
-
54
-
-`pyvo` for querying IRSA's AllWISE Atlas SIA service
54
+
-`numpy` for working with tables
55
55
-`astropy.coordinates` for defining coordinates
56
56
-`astropy.nddata` for creating an image cutout
57
57
-`astropy.wcs` for interpreting the World Coordinate System header keywords of a fits file
58
58
-`astropy.units` for attaching units to numbers passed to the SIA service
59
59
-`matplotlib.pyplot` for plotting
60
-
-`astropy.utils.data` for downloading files
61
60
-`astropy.io` to manipulate FITS files
61
+
-`firefly_client` for visuzlizing images
62
+
-`astroquery.ipac.irsa` for IRSA data access
63
+
-`astropy.visualization` for color stretch display
62
64
63
65
```{code-cell} ipython3
64
66
# Uncomment the next line to install dependencies if needed.
## Section 2 - Lookup and define a service for AllWISE Atlas images
95
+
## 2. Discover AllWISE Atlas images
98
96
99
97
+++
100
98
101
-
Start at STScI VAO Registry at https://vao.stsci.edu/keyword-search/
102
-
103
-
Limit by Publisher "NASA/IPAC Infrared Science Archive" and Capability Type "Simple Image Access Protocol" then search on "AllWISE Atlas"
104
-
105
-
Locate the SIA2 URL https://irsa.ipac.caltech.edu/ibe/sia/wise/allwise/p3am_cdd?
99
+
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).
100
+
This tutorial uses SIA v2 for AllWISE Atlas images.
101
+
To search for other datasets on SIA v2, try changing the filter string.
102
+
Or remove the filter keyword altogether to get a full list of available SIA v2 datasets at IRSA.
# Look at a list of the column names included in this table
128
+
im_table.colnames
129
129
```
130
130
131
131
```{code-cell} ipython3
132
-
im_table.to_table()['sia_bp_id']
132
+
# Let's look at the unique values in one of the columns
133
+
print(np.unique(im_table['energy_bandpassname']))
133
134
```
134
135
135
-
## Section 4 - Locate and download an image of interest
136
+
## 4.Locate and visualize an image of interest
136
137
137
-
+++
138
-
139
-
Let's search the image results for the W3 band image.
138
+
We start by filtering the image results for the W3 band images.
139
+
Then look at the header of one of the resulting W3 band images of our target star.
140
+
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.
141
+
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.```
140
142
141
143
```{code-cell} ipython3
142
-
for i in range(len(im_table)):
143
-
if im_table[i]['sia_bp_id'] == 'W3':
144
-
break
145
-
print(im_table[i].getdataurl())
144
+
# You can put the URL from the column "access_url" into a browser to download the file.
145
+
# Or you can work with it in Python, as shown below.
Please include the following in any published material that makes use of the WISE data products:
221
+
**Astropy:**
222
+
To see the Bibtex references for this, uncomment the below cell
205
223
206
-
"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."
224
+
**Astroquery:**
225
+
To see the Bibtex references for this, uncomment the below cell
207
226
208
-
Please also cite the dataset Digital Object Identifier (DOI): [10.26131/IRSA153](https://www.ipac.caltech.edu/doi/irsa/10.26131/IRSA153)
227
+
**WISE:**
228
+
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."
229
+
Digital Object Identifier (DOI): [10.26131/IRSA153](https://www.ipac.caltech.edu/doi/irsa/10.26131/IRSA153)
0 commit comments