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/cosmodc2/cosmoDC2_TAP_access.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,11 @@ kernelspec:
14
14
15
15
16
16
17
-
This tutorial demonstrates how to access the CosmoDC2 Mock V1 catalogs. More information about these catalogs can be found here: https://irsa.ipac.caltech.edu/Missions/cosmodc2.html
17
+
# CosmoDC2 Mock v1 catalogs with IRSA TAP
18
18
19
-
# Use IRSA's Virtual Observatory Table Access Protocol (TAP) Service to access these catalogs.
19
+
This tutorial demonstrates how to access the CosmoDC2 Mock V1 catalogs. More information about these catalogs can be found here: https://irsa.ipac.caltech.edu/Missions/cosmodc2.html
20
20
21
-
This catalog can be accessed through IRSA's Table Access Protocol (TAP) service. See https://www.ivoa.net/documents/TAP/ for details on the protocol. This service can be accessed through Python using the pvyo library.
21
+
These catalogs can be accessed through IRSA's Virtual Ovservatory Table Access Protocol (TAP) service. See https://www.ivoa.net/documents/TAP/ for details on the protocol. This service can be accessed through Python using the PyVO library.
With TAP, you can query catalogs with constraints specified in IVOA Astronomical Data Query Language (ADQL; https://www.ivoa.net/documents/latest/ADQL.html), which is based on SQL.
63
63
64
64
```{code-cell} ipython3
65
-
# For example, this snippet of ADQL counts the number of elements in
65
+
# For example, this snippet of ADQL counts the number of elements in
66
66
# the redshift column of the table we chose.
67
67
adql = f"SELECT count(redshift) FROM {tablename}"
68
68
adql
@@ -131,7 +131,7 @@ import matplotlib.pyplot as plt
131
131
132
132
num_bins = 20
133
133
# the histogram of the data
134
-
n, bins, patches = plt.hist(cone_results['redshift'], num_bins,
134
+
n, bins, patches = plt.hist(cone_results['redshift'], num_bins,
0 commit comments