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/cosmos/sia_v1_cosmos.md
+99-75Lines changed: 99 additions & 75 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,20 @@ jupytext:
4
4
extension: .md
5
5
format_name: myst
6
6
format_version: 0.13
7
-
jupytext_version: 1.16.2
7
+
jupytext_version: 1.19.1
8
8
kernelspec:
9
-
display_name: Python 3 (ipykernel)
10
-
language: python
11
9
name: python3
10
+
display_name: python3
11
+
language: python
12
12
authors:
13
-
- name: David Shupe
14
-
- name: IRSA Science Team
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
15
21
---
16
22
17
23
# Searching for contributed COSMOS images
@@ -20,7 +26,6 @@ authors:
20
26
21
27
This notebook tutorial demonstrates the process of querying IRSA's Simple Image Access (SIA) service for the COSMOS images, making a cutout image (thumbnail), and displaying the cutout.
22
28
23
-
24
29
+++
25
30
26
31
## Learning Goals
@@ -40,11 +45,12 @@ The COSMOS Archive serves data taken for the Cosmic Evolution Survey with HST (C
The [NASA/IPAC Infrared Science Archive (IRSA)](https://irsa.ipac.caltech.edu) at Caltech is one of the archives for COSMOS images and catalogs. The COSMOS 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 SEIP 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 SIA service for a list of images that meet specified criteria, and standard Python libraries can be used to download and manipulate the images.
44
-
Other datasets at IRSA are available through other SIA services:
The [NASA/IPAC Infrared Science Archive (IRSA)](https://irsa.ipac.caltech.edu) at Caltech is one of the [archives](https://irsa.ipac.caltech.edu/Missions/cosmos.html) for COSMOS images and catalogs. The COSMOS 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.
47
49
50
+
```{note}
51
+
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 v1 for COSMOS images.
52
+
This SIA v1 service is based on an older set of SIA protocols and is limited to the COSMOS, WISE, 2MASS, and PTF datasets. It allows for only position-based searches to a single table. The IRSA SIA v1 search service has been superseded by the SIA v2 service for datasets other than COSMOS and PTF.
## Section 2 - Lookup and define a service for COSMOS images
97
-
98
-
+++
99
-
100
-
Start at STScI VAO Registry at https://vao.stsci.edu/keyword-search/
101
-
102
-
Limit by Publisher "NASA/IPAC Infrared Science Archive" and Capability Type "Simple Image Access Protocol" then search on "COSMOS"
103
-
104
-
Locate the SIA2 URL https://irsa.ipac.caltech.edu/cgi-bin/Atlas/nph-atlas?mission=COSMOS&hdr_location=%5CCOSMOSDataPath%5C&collection_desc=Cosmic+Evolution+Survey+with+HST+%28COSMOS%29&SIAP_ACTIVE=1&
# Look at a list of the column names included in this table
127
116
im_table.to_table().colnames
128
117
```
129
118
130
-
View the first ten entries of the table
131
-
132
119
```{code-cell} ipython3
133
-
im_table.to_table()[:10]
120
+
# Let's look at the unique values in one of the columns
121
+
print(np.unique(im_table['band_name']))
134
122
```
135
123
136
-
##Section 4 - Locate and download an image of interest
124
+
##
137
125
138
126
+++
139
127
140
-
Locate the first image in the band_name of i+
128
+
## 4.Locate and visualize an image of interest
129
+
130
+
We start by filtering the image results for the first IRAC1 band images.
131
+
Then look at the header of one of the resulting image of our target star.
132
+
Finally, we create an interactive FITS display of the IRAC1 image by using [Firefly](https://caltech-ipac.github.io/firefly_client/index.html), an open-source interactive visualization tool for astronomical data.
133
+
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.
141
134
142
135
```{code-cell} ipython3
143
-
for i in range(len(im_table)):
144
-
if im_table[i]['band_name'] == 'i+':
145
-
break
146
-
print(im_table[i].getdataurl())
147
-
```
136
+
# You can put the URL from the column "sia_url" into a browser to download the file.
137
+
# Or you can work with it in Python, as shown below.
To see the Bibtex references for this, uncomment the below cell
200
217
218
+
**COSMOS:**
201
219
If you use COSMOS ACS imaging data in published research, please cite the dataset Digital Object Identifier (DOI): [10.26131/IRSA178](https://www.ipac.caltech.edu/doi/irsa/10.26131/IRSA178).
0 commit comments