|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 | 4 | "cell_type": "markdown",
|
5 |
| - "id": "0d3abc7a", |
| 5 | + "id": "8cf5c1a4", |
6 | 6 | "metadata": {},
|
7 | 7 | "source": [
|
8 | 8 | "# Querying CosmoDC2 Mock v1 catalogs\n",
|
|
15 | 15 | {
|
16 | 16 | "cell_type": "code",
|
17 | 17 | "execution_count": 1,
|
18 |
| - "id": "42e0d2ad", |
| 18 | + "id": "1ff94858", |
19 | 19 | "metadata": {},
|
20 | 20 | "outputs": [],
|
21 | 21 | "source": [
|
|
26 | 26 | {
|
27 | 27 | "cell_type": "code",
|
28 | 28 | "execution_count": 2,
|
29 |
| - "id": "835fc176", |
| 29 | + "id": "e85d1b82", |
30 | 30 | "metadata": {},
|
31 | 31 | "outputs": [],
|
32 | 32 | "source": [
|
|
36 | 36 | {
|
37 | 37 | "cell_type": "code",
|
38 | 38 | "execution_count": 3,
|
39 |
| - "id": "0d3efa36", |
| 39 | + "id": "e49b56d1", |
40 | 40 | "metadata": {},
|
41 | 41 | "outputs": [],
|
42 | 42 | "source": [
|
|
45 | 45 | },
|
46 | 46 | {
|
47 | 47 | "cell_type": "markdown",
|
48 |
| - "id": "b3a39ed1", |
| 48 | + "id": "045cb2df", |
49 | 49 | "metadata": {},
|
50 | 50 | "source": [
|
51 | 51 | "## List the available DC2 tables"
|
|
54 | 54 | {
|
55 | 55 | "cell_type": "code",
|
56 | 56 | "execution_count": 4,
|
57 |
| - "id": "28ae1536", |
| 57 | + "id": "c021c9fb", |
58 | 58 | "metadata": {},
|
59 | 59 | "outputs": [
|
60 | 60 | {
|
|
66 | 66 | "\n",
|
67 | 67 | "cosmodc2mockv1_heavy\n",
|
68 | 68 | " CosmoDC2MockV1 Catalog - stellar mass > 10^7 Msun\n",
|
| 69 | + "\n", |
69 | 70 | "cosmodc2mockv1_new\n",
|
70 | 71 | " CosmoDC2MockV1 Catalog - unabridged\n"
|
71 | 72 | ]
|
72 |
| - }, |
73 |
| - { |
74 |
| - "name": "stdout", |
75 |
| - "output_type": "stream", |
76 |
| - "text": [ |
77 |
| - "cosmodc2mockv1_new\n", |
78 |
| - " CosmoDC2MockV1 Catalog - unabridged\n", |
79 |
| - "\n" |
80 |
| - ] |
81 | 73 | }
|
82 | 74 | ],
|
83 | 75 | "source": [
|
|
90 | 82 | },
|
91 | 83 | {
|
92 | 84 | "cell_type": "markdown",
|
93 |
| - "id": "c4eaa809", |
| 85 | + "id": "4a0abd7a", |
94 | 86 | "metadata": {},
|
95 | 87 | "source": [
|
96 | 88 | "## Choose the DC2 catalog you want to work with.\n",
|
|
109 | 101 | {
|
110 | 102 | "cell_type": "code",
|
111 | 103 | "execution_count": 5,
|
112 |
| - "id": "3c806be2", |
| 104 | + "id": "8d339595", |
113 | 105 | "metadata": {},
|
114 | 106 | "outputs": [],
|
115 | 107 | "source": [
|
|
121 | 113 | },
|
122 | 114 | {
|
123 | 115 | "cell_type": "markdown",
|
124 |
| - "id": "19c1f1e5", |
| 116 | + "id": "71adb49f", |
125 | 117 | "metadata": {},
|
126 | 118 | "source": [
|
127 | 119 | "## How many rows are in the chosen table?\n",
|
|
132 | 124 | {
|
133 | 125 | "cell_type": "code",
|
134 | 126 | "execution_count": 6,
|
135 |
| - "id": "ffc61581", |
| 127 | + "id": "a8ff7d91", |
136 | 128 | "metadata": {},
|
137 | 129 | "outputs": [
|
138 | 130 | {
|
|
156 | 148 | {
|
157 | 149 | "cell_type": "code",
|
158 | 150 | "execution_count": 7,
|
159 |
| - "id": "fd231904", |
| 151 | + "id": "1c86750e", |
160 | 152 | "metadata": {},
|
161 | 153 | "outputs": [
|
162 | 154 | {
|
|
182 | 174 | },
|
183 | 175 | {
|
184 | 176 | "cell_type": "markdown",
|
185 |
| - "id": "c2b8cf27", |
| 177 | + "id": "4f350069", |
186 | 178 | "metadata": {},
|
187 | 179 | "source": [
|
188 | 180 | "The above query shows that there are 597,488,849 redshifts in this table. \n",
|
|
192 | 184 | },
|
193 | 185 | {
|
194 | 186 | "cell_type": "markdown",
|
195 |
| - "id": "cfd4a90f", |
| 187 | + "id": "8c9fd79b", |
196 | 188 | "metadata": {},
|
197 | 189 | "source": [
|
198 | 190 | "## What is the default maximum number of rows returned by the service?\n",
|
|
203 | 195 | {
|
204 | 196 | "cell_type": "code",
|
205 | 197 | "execution_count": 8,
|
206 |
| - "id": "41f6c1d4", |
| 198 | + "id": "2965926f", |
207 | 199 | "metadata": {},
|
208 | 200 | "outputs": [
|
209 | 201 | {
|
|
223 | 215 | },
|
224 | 216 | {
|
225 | 217 | "cell_type": "markdown",
|
226 |
| - "id": "c8247e5a", |
| 218 | + "id": "98381e2e", |
227 | 219 | "metadata": {},
|
228 | 220 | "source": [
|
229 | 221 | "This default maximum can be changed, and there is no hard upper limit to what it can be changed to."
|
|
232 | 224 | {
|
233 | 225 | "cell_type": "code",
|
234 | 226 | "execution_count": 9,
|
235 |
| - "id": "3ac397c4", |
| 227 | + "id": "8b755f83", |
236 | 228 | "metadata": {},
|
237 | 229 | "outputs": [
|
238 | 230 | {
|
|
249 | 241 | },
|
250 | 242 | {
|
251 | 243 | "cell_type": "markdown",
|
252 |
| - "id": "c8b629be", |
| 244 | + "id": "b9ea3226", |
253 | 245 | "metadata": {},
|
254 | 246 | "source": [
|
255 | 247 | "## List the columns in the chosen table\n",
|
|
260 | 252 | {
|
261 | 253 | "cell_type": "code",
|
262 | 254 | "execution_count": 10,
|
263 |
| - "id": "106e5893", |
| 255 | + "id": "fd922c75", |
264 | 256 | "metadata": {},
|
265 | 257 | "outputs": [
|
266 | 258 | {
|
|
278 | 270 | },
|
279 | 271 | {
|
280 | 272 | "cell_type": "markdown",
|
281 |
| - "id": "ba48f64f", |
| 273 | + "id": "0e33a4c3", |
282 | 274 | "metadata": {},
|
283 | 275 | "source": [
|
284 | 276 | "Let's learn a bit more about them."
|
|
287 | 279 | {
|
288 | 280 | "cell_type": "code",
|
289 | 281 | "execution_count": 11,
|
290 |
| - "id": "60d1a54f", |
| 282 | + "id": "8c30137f", |
291 | 283 | "metadata": {},
|
292 | 284 | "outputs": [
|
293 | 285 | {
|
|
605 | 597 | },
|
606 | 598 | {
|
607 | 599 | "cell_type": "markdown",
|
608 |
| - "id": "07ea6bd5", |
| 600 | + "id": "1aa252bb", |
609 | 601 | "metadata": {},
|
610 | 602 | "source": [
|
611 | 603 | "## Create a histogram of redshifts\n",
|
|
616 | 608 | {
|
617 | 609 | "cell_type": "code",
|
618 | 610 | "execution_count": 12,
|
619 |
| - "id": "daaaa544", |
| 611 | + "id": "694e2712", |
620 | 612 | "metadata": {},
|
621 | 613 | "outputs": [
|
622 | 614 | {
|
|
637 | 629 | },
|
638 | 630 | {
|
639 | 631 | "cell_type": "markdown",
|
640 |
| - "id": "d59af8eb", |
| 632 | + "id": "d80bd981", |
641 | 633 | "metadata": {},
|
642 | 634 | "source": [
|
643 | 635 | "Now we can use the previously-defined service to execute the query with the spatial contraint."
|
|
646 | 638 | {
|
647 | 639 | "cell_type": "code",
|
648 | 640 | "execution_count": 13,
|
649 |
| - "id": "09fe3855", |
| 641 | + "id": "34384b04", |
650 | 642 | "metadata": {},
|
651 | 643 | "outputs": [],
|
652 | 644 | "source": [
|
|
656 | 648 | {
|
657 | 649 | "cell_type": "code",
|
658 | 650 | "execution_count": 14,
|
659 |
| - "id": "ad1dc355", |
| 651 | + "id": "d5eefba0", |
660 | 652 | "metadata": {},
|
661 | 653 | "outputs": [
|
662 | 654 | {
|
|
697 | 689 | },
|
698 | 690 | {
|
699 | 691 | "cell_type": "markdown",
|
700 |
| - "id": "511bffc9", |
| 692 | + "id": "cf2fd887", |
701 | 693 | "metadata": {},
|
702 | 694 | "source": [
|
703 | 695 | "We can easily see form this plot that the simulated galaxies go out to z = 3."
|
704 | 696 | ]
|
705 | 697 | },
|
706 | 698 | {
|
707 | 699 | "cell_type": "markdown",
|
708 |
| - "id": "d3deb177", |
| 700 | + "id": "ac8a0158", |
709 | 701 | "metadata": {},
|
710 | 702 | "source": [
|
711 | 703 | "## Visualize galaxy colors at z ~ 0.5\n",
|
|
718 | 710 | {
|
719 | 711 | "cell_type": "code",
|
720 | 712 | "execution_count": 15,
|
721 |
| - "id": "a9055c8e", |
| 713 | + "id": "22c253ee", |
722 | 714 | "metadata": {},
|
723 | 715 | "outputs": [],
|
724 | 716 | "source": [
|
|
730 | 722 | {
|
731 | 723 | "cell_type": "code",
|
732 | 724 | "execution_count": 16,
|
733 |
| - "id": "33225193", |
| 725 | + "id": "0d7bc1e1", |
734 | 726 | "metadata": {},
|
735 | 727 | "outputs": [
|
736 | 728 | {
|
|
751 | 743 | {
|
752 | 744 | "cell_type": "code",
|
753 | 745 | "execution_count": 17,
|
754 |
| - "id": "a7df2c75", |
| 746 | + "id": "d643abcf", |
755 | 747 | "metadata": {},
|
756 | 748 | "outputs": [
|
757 | 749 | {
|
|
785 | 777 | },
|
786 | 778 | {
|
787 | 779 | "cell_type": "markdown",
|
788 |
| - "id": "5d166d4b", |
| 780 | + "id": "8c30dbec", |
789 | 781 | "metadata": {},
|
790 | 782 | "source": [
|
791 | 783 | "***\n",
|
|
0 commit comments